1 //===- AMDILIntrinsicInfo.h - AMDIL Intrinsic Information ------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //==-----------------------------------------------------------------------===//
9 //
10 //   Interface for the AMDIL Implementation of the Intrinsic Info class.
11 //
12 //===-----------------------------------------------------------------------===//
13 #ifndef _AMDIL_INTRINSICS_H_
14 #define _AMDIL_INTRINSICS_H_
15 
16 #include "llvm/Intrinsics.h"
17 #include "llvm/Target/TargetIntrinsicInfo.h"
18 
19 namespace llvm {
20   class TargetMachine;
21   namespace AMDGPUIntrinsic {
22     enum ID {
23       last_non_AMDGPU_intrinsic = Intrinsic::num_intrinsics - 1,
24 #define GET_INTRINSIC_ENUM_VALUES
25 #include "AMDGPUGenIntrinsics.inc"
26 #undef GET_INTRINSIC_ENUM_VALUES
27       , num_AMDGPU_intrinsics
28     };
29 
30   }
31 
32 
33   class AMDGPUIntrinsicInfo : public TargetIntrinsicInfo {
34     public:
35       AMDGPUIntrinsicInfo(TargetMachine *tm);
36       std::string getName(unsigned int IntrId, Type **Tys = 0,
37           unsigned int numTys = 0) const;
38       unsigned int lookupName(const char *Name, unsigned int Len) const;
39       bool isOverloaded(unsigned int IID) const;
40       Function *getDeclaration(Module *M, unsigned int ID,
41           Type **Tys = 0,
42           unsigned int numTys = 0) const;
43   }; // AMDGPUIntrinsicInfo
44 }
45 
46 #endif // _AMDIL_INTRINSICS_H_
47 
48