Frontend: Add CodeGenAction support for handling LLVM IR.
and 'llvm-dis' is: $ clang -cc1 -emit-llvm FOO.bc -o - and 'opt' is, e.g.: $ clang -cc1 -emit-llvm -O3 -o FOO.opt.ll FOO.ll and 'llc' is, e.g.: $ clang -cc1 -S -o - FOO.ll The nice thing about using the backend tools this way is that they are guaranteed to exactly match how the compiler generates code (for example, setting the same backend options). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105583 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Frontend/CodeGenAction.h 4 additions, 0 deletionsinclude/clang/Frontend/CodeGenAction.h
- include/clang/Frontend/FrontendAction.h 1 addition, 0 deletionsinclude/clang/Frontend/FrontendAction.h
- lib/Frontend/CodeGenAction.cpp 74 additions, 14 deletionslib/Frontend/CodeGenAction.cpp
- test/Frontend/ir-support-codegen.ll 8 additions, 0 deletionstest/Frontend/ir-support-codegen.ll
- test/Frontend/ir-support-errors.ll 8 additions, 0 deletionstest/Frontend/ir-support-errors.ll
- tools/driver/CMakeLists.txt 1 addition, 0 deletionstools/driver/CMakeLists.txt
- tools/driver/Makefile 2 additions, 1 deletiontools/driver/Makefile
Loading
Please register or sign in to comment