LLVM  3.7.0
AMDGPUIntrinsicInfo.h
Go to the documentation of this file.
1 //===- AMDGPUIntrinsicInfo.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 LLVM_LIB_TARGET_R600_AMDGPUINTRINSICINFO_H
15 #define LLVM_LIB_TARGET_R600_AMDGPUINTRINSICINFO_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 IntrId, Type **Tys = nullptr,
38  unsigned numTys = 0) const override;
39  unsigned lookupName(const char *Name, unsigned Len) const override;
40  bool isOverloaded(unsigned IID) const override;
41  Function *getDeclaration(Module *M, unsigned ID,
42  Type **Tys = nullptr,
43  unsigned numTys = 0) const override;
44 };
45 
46 } // end namespace llvm
47 
48 #endif
A Module instance is used to store all the information related to an LLVM module. ...
Definition: Module.h:114
unsigned lookupName(const char *Name, unsigned Len) const override
Look up target intrinsic by name.
bool isOverloaded(unsigned IID) const override
Returns true if the intrinsic can be overloaded.
std::string getName(unsigned IntrId, Type **Tys=nullptr, unsigned numTys=0) const override
Return the name of a target intrinsic, e.g.
The instances of the Type class are immutable: once they are created, they are never changed...
Definition: Type.h:45
TargetIntrinsicInfo - Interface to description of machine instruction set.
Function * getDeclaration(Module *M, unsigned ID, Type **Tys=nullptr, unsigned numTys=0) const override
Create or insert an LLVM Function declaration for an intrinsic, and return it.