[LLVMdev] adding new builtin functions in llvm
John McCall
rjmccall at apple.com
Fri Sep 30 13:02:21 PDT 2011
On Sep 30, 2011, at 11:26 AM, Zeng Bin wrote:
> Can I define new builtin functions in clang/include/clang/Basic/Builtins/Builtins.h and insert them during a IR pass? Is it better to do it inside clang instead of at IR level? Thanks a lot.
Please send questions like this to cfe-dev.
If you're modifying Clang anyway, I would just change Clang's IR generation to handle the new builtins.
John.
More information about the llvm-dev
mailing list