adding new builtin functions in llvm

Hi all,

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.