LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AMDILIntrinsicInfo.h
Go to the documentation of this file.
1 //===- AMDILIntrinsicInfo.h - AMDGPU 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 /// \file
11 /// \brief Interface for the AMDGPU Implementation of the Intrinsic Info class.
12 //
13 //===-----------------------------------------------------------------------===//
14 #ifndef AMDIL_INTRINSICS_H
15 #define AMDIL_INTRINSICS_H
16 
17 #include "llvm/IR/Intrinsics.h"
19 
20 namespace llvm {
21 class TargetMachine;
22 
23 namespace AMDGPUIntrinsic {
24 enum ID {
26 #define GET_INTRINSIC_ENUM_VALUES
27 #include "AMDGPUGenIntrinsics.inc"
28 #undef GET_INTRINSIC_ENUM_VALUES
30 };
31 
32 } // end namespace AMDGPUIntrinsic
33 
35 public:
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 };
45 
46 } // end namespace llvm
47 
48 #endif // AMDIL_INTRINSICS_H
49 
std::string getName(unsigned int IntrId, Type **Tys=0, unsigned int numTys=0) const
The main container class for the LLVM Intermediate Representation.
Definition: Module.h:112
AMDGPUIntrinsicInfo(TargetMachine *tm)
Function * getDeclaration(Module *M, unsigned int ID, Type **Tys=0, unsigned int numTys=0) const
unsigned int lookupName(const char *Name, unsigned int Len) const
bool isOverloaded(unsigned int IID) const