radeon/llvm: Remove AMDILTargetMachine
[mesa.git] / src / gallium / drivers / radeon / AMDILIntrinsicInfo.h
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_AMDIL_intrinsic = Intrinsic::num_intrinsics - 1,
24 #define GET_INTRINSIC_ENUM_VALUES
25 #include "AMDILGenIntrinsics.inc"
26 #undef GET_INTRINSIC_ENUM_VALUES
27 , num_AMDIL_intrinsics
28 };
29
30 }
31
32
33 class AMDILIntrinsicInfo : public TargetIntrinsicInfo {
34 TargetMachine *mTM;
35 public:
36 AMDILIntrinsicInfo(TargetMachine *tm);
37 std::string getName(unsigned int IntrId, Type **Tys = 0,
38 unsigned int numTys = 0) const;
39 unsigned int lookupName(const char *Name, unsigned int Len) const;
40 bool isOverloaded(unsigned int IID) const;
41 Function *getDeclaration(Module *M, unsigned int ID,
42 Type **Tys = 0,
43 unsigned int numTys = 0) const;
44 bool isValidIntrinsic(unsigned int) const;
45 }; // AMDILIntrinsicInfo
46 }
47
48 #endif // _AMDIL_INTRINSICS_H_
49