[llvm-dev] enable target specific MC bankend in clang command line

陈志伟 via llvm-dev llvm-dev at lists.llvm.org
Mon Sep 28 20:18:46 PDT 2020


> "clang -S -emit-llvm --target xxx a.c -o a.ll"
> "llc -march=xxx -mcpu=xxx -relocation-model=static -filetype=obj a.ll -o a.o”


Passing -save-temps to clang will save all intermediate compilation files (a.ii, a.bc, a.s, a.o).
llvm-dis a.bc to get the LLVM human-friendly IR.


More information about the llvm-dev mailing list