overloading single argument intrinsics


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.


I’m not sure where this “2-argument” requirement comes from. Can you not define it using something like:

def int_target_myintrin : Intrinsic<[], [llvm_any_ty], ...>