[llvm-commits] [llvm] r47353 - /llvm/trunk/include/llvm/Intrinsics.h
Dan Gohman
gohman at apple.com
Tue Feb 19 17:07:52 PST 2008
Author: djg
Date: Tue Feb 19 19:07:51 2008
New Revision: 47353
URL: http://llvm.org/viewvc/llvm-project?rev=47353&view=rev
Log:
Add some comments to Intrinsic::getDeclaration to clarify how to
get declarations for overloaded intrinsics.
Modified:
llvm/trunk/include/llvm/Intrinsics.h
Modified: llvm/trunk/include/llvm/Intrinsics.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Intrinsics.h?rev=47353&r1=47352&r2=47353&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Intrinsics.h (original)
+++ llvm/trunk/include/llvm/Intrinsics.h Tue Feb 19 19:07:51 2008
@@ -53,6 +53,12 @@
/// Intrinsic::getDeclaration(M, ID) - Create or insert an LLVM Function
/// declaration for an intrinsic, and return it.
+ ///
+ /// The Tys and numTys parameters are for intrinsics with overloaded types
+ /// (i.e., those using iAny or fAny). For a declaration for an overloaded
+ /// intrinsic, Tys should point to an array of numTys pointers to Type,
+ /// and must provide exactly one type for each overloaded type in the
+ /// intrinsic.
Function *getDeclaration(Module *M, ID id, const Type **Tys = 0,
unsigned numTys = 0);
More information about the llvm-commits
mailing list