2 ms·
I learned a lot about LLVM by looking at the compiler output from Clang: clang -emit-llvm -S sample.cpp The article mentions Clang's AST, which can also be
by chrisaycock 5y ago
I learned a lot about LLVM by looking at the compiler output from Clang:
clang -emit-llvm -S sample.cpp
The article mentions Clang's AST, which can also be emitted:
clang -Xclang -ast-dump -fsyntax-only sample.cpp
And for checking compiler outputs across lots of languages and implementations, there's always Matt Godbolt's Compiler Explorer:
https://godbolt.org