Use llvm subdomain for compiler-explorer link
Using `llvm.godbolt.org` subdomain should automatically select the correct LLVM-IR language.
This commit is contained in:
parent
c84821c697
commit
68a5db2eb7
|
|
@ -222,9 +222,9 @@ really helpful for this.
|
||||||
|
|
||||||
1. Once you have some LLVM IR for the problematic code (see above), you can
|
1. Once you have some LLVM IR for the problematic code (see above), you can
|
||||||
create a minimal working example with Godbolt. Go to
|
create a minimal working example with Godbolt. Go to
|
||||||
[gcc.godbolt.org](https://gcc.godbolt.org).
|
[llvm.godbolt.org](https://llvm.godbolt.org).
|
||||||
|
|
||||||
2. Choose `LLVM-IR` as programming language.
|
2. Choose `LLVM-IR` as programming language if not already selected.
|
||||||
|
|
||||||
3. Use `llc` to compile the IR to a particular target as is:
|
3. Use `llc` to compile the IR to a particular target as is:
|
||||||
- There are some useful flags: `-mattr` enables target features, `-march=`
|
- There are some useful flags: `-mattr` enables target features, `-march=`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue