From 76f07543d9e771493c88a5cf40e0e9e013ca2431 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Thu, 16 Apr 2009 21:46:42 +0000 Subject: [PATCH] Add a comment to describe LLVMMatchType. llvm-svn: 69313 --- include/llvm/Intrinsics.td | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/llvm/Intrinsics.td b/include/llvm/Intrinsics.td index 779b64a5008..6e4ce82c4c0 100644 --- a/include/llvm/Intrinsics.td +++ b/include/llvm/Intrinsics.td @@ -73,6 +73,12 @@ class LLVMAnyPointerType 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 : LLVMType{ int Number = num;