[llvm-dev] overloading single argument intrinsics

Mohamed Shafi via llvm-dev llvm-dev at lists.llvm.org
Thu Nov 30 05:56:31 PST 2017


Hi,

I am trying to overload a target specific intrinsic that takes just
one argument.

void llvm.target.my_intrin (int);
void llvm.target.my_intrin (float);

Looking at the various TD files i realize that the intrinsic f/w
requires at-least 2 arguments (including return type) in order to
specify overloading of the intrinsic. I wanted to confirm if it is
possible to overload an intrinsic that has just one argument. I guess
otherwise i will have to support two variants of the intrinsics.

Regards,
Shafi


More information about the llvm-dev mailing list