[llvm-commits] CVS: llvm/include/llvm/Intrinsics.h
Reid Spencer
reid at x10sys.com
Sun Apr 1 00:26:53 PDT 2007
Changes in directory llvm/include/llvm:
Intrinsics.h updated: 1.41 -> 1.42
---
Log message:
For PR1297: http://llvm.org/PR1297 :
Change the interface to the getName, getType, getDeclaration methods to
include the "actual" types of the result/arguments. This is necessary to
support overloaded intrinsics.
---
Diffs of the changes: (+5 -3)
Intrinsics.h | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
Index: llvm/include/llvm/Intrinsics.h
diff -u llvm/include/llvm/Intrinsics.h:1.41 llvm/include/llvm/Intrinsics.h:1.42
--- llvm/include/llvm/Intrinsics.h:1.41 Wed Feb 7 14:38:26 2007
+++ llvm/include/llvm/Intrinsics.h Sun Apr 1 02:26:35 2007
@@ -18,6 +18,7 @@
namespace llvm {
+class Type;
class FunctionType;
class Function;
class Module;
@@ -39,15 +40,16 @@
/// Intrinsic::getName(ID) - Return the LLVM name for an intrinsic, such as
/// "llvm.ppc.altivec.lvx".
- const char *getName(ID id);
+ std::string getName(ID id, const Type **Tys = 0, unsigned numTys = 0);
/// Intrinsic::getType(ID) - Return the function type for an intrinsic.
///
- const FunctionType *getType(ID id);
+ const FunctionType *getType(ID id, const Type **Tys = 0, unsigned numTys = 0);
/// Intrinsic::getDeclaration(M, ID) - Create or insert an LLVM Function
/// declaration for an intrinsic, and return it.
- Function *getDeclaration(Module *M, ID id);
+ Function *getDeclaration(Module *M, ID id, const Type **Tys = 0,
+ unsigned numTys = 0);
} // End Intrinsic namespace
More information about the llvm-commits
mailing list