LLVM
4.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
llvm.src
lib
Target
AMDGPU
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_AMDGPU_AMDGPUINTRINSICINFO_H
15
#define LLVM_LIB_TARGET_AMDGPU_AMDGPUINTRINSICINFO_H
16
17
#include "
llvm/IR/Intrinsics.h
"
18
#include "
llvm/Target/TargetIntrinsicInfo.h
"
19
20
namespace
llvm {
21
class
TargetMachine;
22
23
namespace
AMDGPUIntrinsic {
24
enum
ID
{
25
last_non_AMDGPU_intrinsic
=
Intrinsic::num_intrinsics
- 1,
26
#define GET_INTRINSIC_ENUM_VALUES
27
#include "AMDGPUGenIntrinsics.inc"
28
#undef GET_INTRINSIC_ENUM_VALUES
29
,
num_AMDGPU_intrinsics
30
};
31
32
}
// end namespace AMDGPUIntrinsic
33
34
class
AMDGPUIntrinsicInfo
final :
public
TargetIntrinsicInfo
{
35
public
:
36
AMDGPUIntrinsicInfo
();
37
38
StringRef
getName
(
unsigned
IntrId,
ArrayRef<Type *>
Tys =
None
)
const
;
39
40
std::string
getName
(
unsigned
IntrId,
Type
**Tys =
nullptr
,
41
unsigned
NumTys = 0)
const override
;
42
43
unsigned
lookupName
(
const
char
*
Name
,
unsigned
Len)
const override
;
44
bool
isOverloaded
(
unsigned
IID)
const override
;
45
Function
*
getDeclaration
(
Module
*M,
unsigned
ID
,
46
Type
**Tys =
nullptr
,
47
unsigned
NumTys = 0)
const override
;
48
49
Function
*
getDeclaration
(
Module
*M,
unsigned
ID,
50
ArrayRef<Type *>
=
None
)
const
;
51
52
FunctionType
*
getType
(
LLVMContext
&
Context
,
unsigned
ID,
53
ArrayRef<Type*>
Tys =
None
)
const
;
54
};
55
56
}
// end namespace llvm
57
58
#endif
Context
LLVMContext & Context
Definition:
NVVMIntrRange.cpp:72
llvm::Module
A Module instance is used to store all the information related to an LLVM module. ...
Definition:
Module.h:52
llvm::AMDGPUIntrinsicInfo::lookupName
unsigned lookupName(const char *Name, unsigned Len) const override
Look up target intrinsic by name.
Definition:
AMDGPUIntrinsicInfo.cpp:67
llvm::AMDGPUIntrinsicInfo::isOverloaded
bool isOverloaded(unsigned IID) const override
Returns true if the intrinsic can be overloaded.
Definition:
AMDGPUIntrinsicInfo.cpp:87
llvm::AMDGPUIntrinsicInfo::getName
StringRef getName(unsigned IntrId, ArrayRef< Type * > Tys=None) const
Definition:
AMDGPUIntrinsicInfo.cpp:38
llvm::Function
Definition:
Function.h:48
llvm::GraphProgram::Name
Name
Definition:
GraphWriter.h:43
llvm::FunctionType
Class to represent function types.
Definition:
DerivedTypes.h:102
llvm::ArrayRef
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Definition:
APInt.h:33
llvm::Type
The instances of the Type class are immutable: once they are created, they are never changed...
Definition:
Type.h:45
llvm::LLVMContext
This is an important class for using LLVM in a threaded context.
Definition:
LLVMContext.h:48
llvm::AMDGPUIntrinsicInfo::getType
FunctionType * getType(LLVMContext &Context, unsigned ID, ArrayRef< Type * > Tys=None) const
Definition:
AMDGPUIntrinsicInfo.cpp:54
llvm::NoneType::None
llvm::AMDGPUIntrinsicInfo::getDeclaration
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.
Definition:
AMDGPUIntrinsicInfo.cpp:106
llvm::AMDGPUIntrinsicInfo
Definition:
AMDGPUIntrinsicInfo.h:34
llvm::AMDGPUIntrinsic::num_AMDGPU_intrinsics
Definition:
AMDGPUIntrinsicInfo.h:29
llvm::TargetIntrinsicInfo
TargetIntrinsicInfo - Interface to description of machine instruction set.
Definition:
TargetIntrinsicInfo.h:31
llvm::AMDGPUIntrinsic::last_non_AMDGPU_intrinsic
Definition:
AMDGPUIntrinsicInfo.h:25
llvm::AMDGPUIntrinsicInfo::AMDGPUIntrinsicInfo
AMDGPUIntrinsicInfo()
Definition:
AMDGPUIntrinsicInfo.cpp:23
Intrinsics.h
llvm::Intrinsic::num_intrinsics
Definition:
Intrinsics.h:44
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition:
StringRef.h:47
llvm::AMDGPUIntrinsic::ID
ID
Definition:
AMDGPUIntrinsicInfo.h:24
TargetIntrinsicInfo.h
Generated on Wed Mar 8 2017 17:05:34 for LLVM by
1.8.6