Skip to content

Commit 66bf907

Browse files
committed
Fix cpu-features.ll opt invocation
1 parent 0402dfa commit 66bf907

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/src/devdocs/llvm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ environment. In addition, it exposes the `-julia` meta-pass, which runs the
7979
entire Julia pass-pipeline over the IR. As an example, to generate a system
8080
image, one could do:
8181
```
82-
opt -enable-new-pm=0 -load libjulia-internal.so -julia -o opt.bc unopt.bc
82+
opt -enable-new-pm=0 -load libjulia-codegen.so -julia -o opt.bc unopt.bc
8383
llc -o sys.o opt.bc
8484
cc -shared -o sys.so sys.o
8585
```

test/llvmpasses/cpu-features.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -load libjulia-internal%shlibext -CPUFeatures -simplifycfg -S %s | FileCheck %s
1+
; RUN: opt -enable-new-pm=0 -load libjulia-codegen%shlibext -CPUFeatures -simplifycfg -S %s | FileCheck %s
22

33
declare i1 @julia.cpu.have_fma.f64()
44
declare double @with_fma(double %0, double %1, double %2)

0 commit comments

Comments
 (0)