[LLVMdev] Passing llc options to Clang (original) (raw)
Reid Kleckner rnk at google.com
Mon Oct 13 13:55:27 PDT 2014
- Previous message: [LLVMdev] Passing llc options to Clang
- Next message: [LLVMdev] Passing llc options to Clang
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You'll be a lot better off if you use the gcc-style flags that clang accepts. If you bypass clang, it will generate LLVM IR for the default target, and then attempt to compile that IR using the triple you provided to llc.
Try 'clang --target=x86_64-linux-gnu' or whatever your target is.
On Mon, Oct 13, 2014 at 12:48 PM, Ziqiang Patrick Huang < ziqiang.huang1001 at gmail.com> wrote:
Hi,
Is there a way to passing llc options to clang, for example -march -mcpu, etc. ? Some threads suggested using -mllvm flag, I tried ./clang -mllvm -march=X86-64 -mcpu=core2 -o hello hello.c, but got "Unknown command line argument" Thanks, Ziqiang
LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141013/6663574d/attachment.html>
- Previous message: [LLVMdev] Passing llc options to Clang
- Next message: [LLVMdev] Passing llc options to Clang
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]