Add a comment to describe LLVMMatchType.
authorBob Wilson <bob.wilson@apple.com>
Thu, 16 Apr 2009 21:46:42 +0000 (21:46 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 16 Apr 2009 21:46:42 +0000 (21:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69313 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Intrinsics.td

index 779b64a50085d18ea0ba36c409cd4b862aa31de8..6e4ce82c4c001af6afacf8ee87e7849e1913d6bd 100644 (file)
@@ -73,6 +73,12 @@ class LLVMAnyPointerType<LLVMType elty>
   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;