[cfe-dev] Wanna learn LLVM IR fast by compiling C++ tests into LLVM IR using Clang

Hal Finkel via cfe-dev cfe-dev at lists.llvm.org
Sun Oct 30 00:31:15 PDT 2016


----- Original Message -----
> From: "Pavel Senatorov via cfe-dev" <cfe-dev at lists.llvm.org>
> To: cfe-dev at lists.llvm.org
> Sent: Sunday, October 30, 2016 2:17:14 AM
> Subject: [cfe-dev] Wanna learn LLVM IR fast by compiling C++ tests into LLVM IR using Clang
> 
> Yet seems Clang does not have such an option.
> 
> Is it ever possible using Clang? How?

If you use -emit-llvm along with -S, then you'll get out the LLVM IR in text form.

 -Hal

> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
> 

-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory



More information about the cfe-dev mailing list