[LLVMdev] Tablegen question

Villmow, Micah Micah.Villmow at amd.com
Wed Apr 15 09:29:39 PDT 2009


I have this intrinsic definition for llvm.

def int_opencl_math_fdistance_fast   : Intrinsic<[llvm_float_ty],

                           [llvm_anyfloat_ty, LLVMMatchType<0>]>;

 

 

Can someone explain  what LLVMMatchType does and how to specify it to
match the first argument and not the return value?

 

I've tried LLVMMatchType<1> but it fails in IntrinsicEmitter.cpp

 

Thanks,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090415/836e3ac9/attachment.html>


More information about the llvm-dev mailing list