[llvm-commits] [llvm] r69313 - /llvm/trunk/include/llvm/Intrinsics.td

Bob Wilson bob.wilson at apple.com
Thu Apr 16 14:46:43 PDT 2009


Author: bwilson
Date: Thu Apr 16 16:46:42 2009
New Revision: 69313

URL: http://llvm.org/viewvc/llvm-project?rev=69313&view=rev
Log:
Add a comment to describe LLVMMatchType.

Modified:
    llvm/trunk/include/llvm/Intrinsics.td

Modified: llvm/trunk/include/llvm/Intrinsics.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Intrinsics.td?rev=69313&r1=69312&r2=69313&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Intrinsics.td (original)
+++ llvm/trunk/include/llvm/Intrinsics.td Thu Apr 16 16:46:42 2009
@@ -73,6 +73,12 @@
   LLVMType ElTy = elty;
 } 
 
+// Match the type of another intrinsic parameter.  Number is an index into the
+// list of overloaded types for the intrinsic, excluding all the fixed types.
+// The Number value must refer to a previously listed type.  For example:
+//   Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_anyfloat_ty, LLVMMatchType<0>]>
+// has two overloaded types, the 2nd and 3rd arguments.  LLVMMatchType<0>
+// refers to the first overloaded type, which is the 2nd argument.
 class LLVMMatchType<int num>
   : LLVMType<OtherVT>{
   int Number = num;





More information about the llvm-commits mailing list