Commit 76b9b59
Enforce default byte alignment in CMABI for LLVM 11+
Starting from LLVM 11, `alloca`/`load`/`store` instructions require an
explicit `align` value. At the same time, commit 5eb2fa4fb7
implies that for non-aligned globals, no `align` argument will be set
for such user instructions.
Since `align 1` is effect-free, use LLVM APIs & IGC's LLVM wrapper
to automatically add `align 1` starting from LLVM 11, while retaining
the old behavior for earlier LLVM versions.1 parent 374ec0c commit 76b9b59
File tree
3 files changed
+17
-13
lines changed- IGC
- VectorCompiler/lib/GenXOpts/CMTrans
- WrapperLLVM/include/llvmWrapper/Support
3 files changed
+17
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| 406 | + | |
406 | 407 | | |
| 408 | + | |
407 | 409 | | |
408 | 410 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | 411 | | |
413 | | - | |
| 412 | + | |
| 413 | + | |
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
775 | 776 | | |
776 | 777 | | |
777 | 778 | | |
778 | | - | |
| 779 | + | |
| 780 | + | |
779 | 781 | | |
780 | 782 | | |
781 | 783 | | |
| |||
1151 | 1153 | | |
1152 | 1154 | | |
1153 | 1155 | | |
1154 | | - | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
1155 | 1159 | | |
1156 | 1160 | | |
1157 | 1161 | | |
1158 | 1162 | | |
1159 | | - | |
| 1163 | + | |
| 1164 | + | |
1160 | 1165 | | |
1161 | 1166 | | |
1162 | 1167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
65 | 63 | | |
| 64 | + | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
| |||
0 commit comments