Commit e4215bc
Allow passing LLVM downstream args to LLVMBuilder (#9491)
This allows the user to directly set LLVM backend options, e.g.
`-Xllvm... -unroll-count=0 -vectorize-loops=false -X.`. These parameters
are the ones you can set with `-mllvm` in Clang, i.e. the LLVM backend
parameters instead of Clang frontend parameters.
(I'm trying to get Slang's LLVM emitter to produce object code that I
can run on the Raspberry Pi Pico 2's Cortex M33 and need access to these
options for that purpose, but I think these will also be useful for
debugging the LLVM optimization passes later on.)
---------
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>1 parent 0528cdf commit e4215bc
File tree
3 files changed
+39
-3
lines changed- source
- slang-llvm
- slang
3 files changed
+39
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
| |||
502 | 507 | | |
503 | 508 | | |
504 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
505 | 534 | | |
506 | 535 | | |
507 | 536 | | |
| |||
2244 | 2273 | | |
2245 | 2274 | | |
2246 | 2275 | | |
2247 | | - | |
| 2276 | + | |
2248 | 2277 | | |
2249 | 2278 | | |
2250 | 2279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
792 | | - | |
| 792 | + | |
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
798 | | - | |
| 798 | + | |
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
| |||
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
831 | 837 | | |
832 | 838 | | |
833 | 839 | | |
| |||
0 commit comments