aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-01 07:26:35 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-01 07:26:35 +0000
commitd4d68ba4b80d0ef48409d822617e345adc855287 (patch)
tree8dc0ce6ec6a7f6ec30101330a72bd2d0534bdbc7 /include
parent1437a0976567810c2930218b1ba582820150b05c (diff)
downloadexternal_llvm-d4d68ba4b80d0ef48409d822617e345adc855287.zip
external_llvm-d4d68ba4b80d0ef48409d822617e345adc855287.tar.gz
external_llvm-d4d68ba4b80d0ef48409d822617e345adc855287.tar.bz2
For 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Intrinsics.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/Intrinsics.h b/include/llvm/Intrinsics.h
index 8275b72..3a97b33 100644
--- a/include/llvm/Intrinsics.h
+++ b/include/llvm/Intrinsics.h
@@ -18,6 +18,7 @@
namespace llvm {
+class Type;
class FunctionType;
class Function;
class Module;
@@ -39,15 +40,16 @@ namespace Intrinsic {
/// 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