[LLVMdev] How to add a new target/toolchain to Clang ?
Frédéric Heitzmann
frederic.heitzmann at gmail.com
Fri Jul 10 09:15:08 PDT 2015
2015-07-10 16:37 GMT+02:00 Tom Stellard <tom at stellard.net>:
>
> You also need to teach clang to map the triple to your
> TargetInfo implementation. See AllocateTarget() in lib/Basic/Targets.cpp
>
Good catch.
clang is now generating asm files for my target.
Although llc works, llvm-mc is not finished yet, so it breaks.
Is there a reason clang generates asm then object files, instead of going
internaly to MCInst then object file ?
And can I force it to do so ?
I did not find the appropriate option or hook in class ToolChain ...
--
Fred
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150710/8838c345/attachment.html>
More information about the llvm-dev
mailing list