[cfe-dev] Getting LLVM IR from clang
Alexey Bataev via cfe-dev
cfe-dev at lists.llvm.org
Wed Nov 28 14:27:55 PST 2018
Use -O0 -Xclang -disable-llvm-optzns
Best regards,
Alexey Bataev
> 28 нояб. 2018 г., в 17:22, David Greene via cfe-dev <cfe-dev at lists.llvm.org> написал(а):
>
> How do I get the LLVM IR produced by clang? I know that -emit-llvm
> produces IR but it seems to be after processing by LLVM (things are
> optimized out, for example). Is there an "official" way to get the IR
> coming right out of clang's codegen? I can do a hack with -mllvm
> -print-before-all but that's icky.
>
> Thanks!
>
> -David
>
More information about the cfe-dev
mailing list