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 "AMDILGenIntrinsics.inc"
26 #undef GET_INTRINSIC_ENUM_VALUES
27 , num_AMDIL_intrinsics
33 class AMDILIntrinsicInfo
: public TargetIntrinsicInfo
{
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
,
43 unsigned int numTys
= 0) const;
44 bool isValidIntrinsic(unsigned int) const;
45 }; // AMDILIntrinsicInfo
48 #endif // _AMDIL_INTRINSICS_H_