1 //===- AMDILIntrinsicInfo.h - AMDIL Intrinsic Information ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //==-----------------------------------------------------------------------===//
10 // Interface for the AMDIL Implementation of the Intrinsic Info class.
12 //===-----------------------------------------------------------------------===//
13 #ifndef _AMDIL_INTRINSICS_H_
14 #define _AMDIL_INTRINSICS_H_
16 #include "llvm/Intrinsics.h"
17 #include "llvm/Target/TargetIntrinsicInfo.h"
21 namespace AMDGPUIntrinsic {
23 last_non_AMDIL_intrinsic = Intrinsic::num_intrinsics - 1,
24 #define GET_INTRINSIC_ENUM_VALUES
25 #include "AMDGPUGenIntrinsics.inc"
26 #undef GET_INTRINSIC_ENUM_VALUES
27 , num_AMDIL_intrinsics
33 class AMDILIntrinsicInfo : public TargetIntrinsicInfo {
35 AMDILIntrinsicInfo(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,
42 unsigned int numTys = 0) const;
43 }; // AMDILIntrinsicInfo
46 #endif // _AMDIL_INTRINSICS_H_