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:
Marc Poulhiès 2022-10-08 08:48:50 +02:00 committed by Tshepang Mbambo
parent c84821c697
commit 68a5db2eb7
1 changed files with 2 additions and 2 deletions

View File

@ -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=`