Index: src/IceGlobalContext.h |
diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h |
index beb5bc077e1de921623e0fc0b0a1dcc359b02f21..d1852b807b9f5913e54b86c330377ed06eb3411b 100644 |
--- a/src/IceGlobalContext.h |
+++ b/src/IceGlobalContext.h |
@@ -20,6 +20,7 @@ |
#include "llvm/Support/raw_ostream.h" |
#include "IceDefs.h" |
+#include "IceIntrinsics.h" |
#include "IceTypes.h" |
namespace Ice { |
@@ -84,6 +85,11 @@ public: |
// Allocate data of type T using the global allocator. |
template <typename T> T *allocate() { return Allocator.Allocate<T>(); } |
+ // Return the IntrinsicInfo for a function with the given Name. |
+ // Return UnknownIntrinsicInfo if the name does not match any |
+ // known intrinsics. |
+ IntrinsicInfo getIntrinsicInfo(const IceString &Name) const; |
+ |
private: |
Ostream StrDump; // Stream for dumping / diagnostics |
Ostream StrEmit; // Stream for code emission |
@@ -91,6 +97,7 @@ private: |
llvm::BumpPtrAllocator Allocator; |
VerboseMask VMask; |
llvm::OwningPtr<class ConstantPool> ConstPool; |
+ IntrinsicMap IntrinsicInfos; |
const TargetArch Arch; |
const OptLevel Opt; |
const IceString TestPrefix; |