LLVM: lib/Target/AMDGPU/Utils/AMDGPUAsmUtils.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9#ifndef LLVM_LIB_TARGET_AMDGPU_UTILS_AMDGPUASMUTILS_H
10#define LLVM_LIB_TARGET_AMDGPU_UTILS_AMDGPUASMUTILS_H
11
13
15
16namespace llvm {
17
20
22
27
33
55
56namespace DepCtr {
57
58extern const CustomOperandVal DepCtrInfo[];
60
61}
62
63
64namespace SendMsg {
65
66
67
68
69int64_t getMsgId(StringRef Name, const MCSubtargetInfo &STI);
70
71
72
74
75
76
77
78int64_t getMsgOpId(int64_t MsgId, StringRef Name, const MCSubtargetInfo &STI);
79
80
81
83 const MCSubtargetInfo &STI);
84
85}
86
87namespace Hwreg {
88
89int64_t getHwregId(StringRef Name, const MCSubtargetInfo &STI);
90StringRef getHwreg(uint64_t Encoding, const MCSubtargetInfo &STI);
91
92}
93
95
104
105}
106
107namespace Swizzle {
108
109extern const char* const IdSymbolic[];
110
111}
112
113namespace VGPRIndexMode {
114
115extern const char* const IdSymbolic[];
116
117}
118
120
125
127
128}
129
130}
131}
132
133#endif
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Generic base class for all target subtargets.
A wrapper around a string literal that serves as a proxy for constructing global tables of StringRefs...
const CustomOperandVal DepCtrInfo[]
StringRef getHwreg(uint64_t Encoding, const MCSubtargetInfo &STI)
int64_t getHwregId(StringRef Name, const MCSubtargetInfo &STI)
StringLiteral const UfmtSymbolicGFX11[]
unsigned const DfmtNfmt2UFmtGFX10[]
StringLiteral const DfmtSymbolic[]
StringLiteral const NfmtSymbolicGFX10[]
unsigned const DfmtNfmt2UFmtGFX11[]
StringLiteral const NfmtSymbolicVI[]
StringLiteral const NfmtSymbolicSICI[]
StringLiteral const UfmtSymbolicGFX10[]
int64_t getMsgOpId(int64_t MsgId, StringRef Name, const MCSubtargetInfo &STI)
Map from a symbolic name for a sendmsg operation to the operation portion of the immediate encoding.
int64_t getMsgId(StringRef Name, const MCSubtargetInfo &STI)
Map from a symbolic name for a msg_id to the message portion of the immediate encoding.
StringRef getMsgName(uint64_t Encoding, const MCSubtargetInfo &STI)
Map from an encoding to the symbolic name for a msg_id immediate.
StringRef getMsgOpName(int64_t MsgId, uint64_t Encoding, const MCSubtargetInfo &STI)
Map from an encoding to the symbolic name for a sendmsg operation.
const char *const IdSymbolic[]
ArrayRef< GFXVersion > getGFXVersions()
const char *const IdSymbolic[]
const int OPR_ID_UNSUPPORTED
Definition AMDGPUAsmUtils.h:24
const int OPR_VAL_INVALID
Definition AMDGPUAsmUtils.h:26
const int OPR_ID_DUPLICATE
Definition AMDGPUAsmUtils.h:25
const int OPR_ID_UNKNOWN
Definition AMDGPUAsmUtils.h:23
This is an optimization pass for GlobalISel generic memory operations.
Definition AMDGPUAsmUtils.h:34
unsigned decode(unsigned Code) const
Definition AMDGPUAsmUtils.h:43
unsigned getMask() const
Definition AMDGPUAsmUtils.h:47
unsigned Mask
Definition AMDGPUAsmUtils.h:41
unsigned Max
Definition AMDGPUAsmUtils.h:36
unsigned Shift
Definition AMDGPUAsmUtils.h:38
bool isValid(unsigned Val) const
Definition AMDGPUAsmUtils.h:49
unsigned Width
Definition AMDGPUAsmUtils.h:39
unsigned encode(unsigned Val) const
Definition AMDGPUAsmUtils.h:45
bool isSupported(const MCSubtargetInfo &STI) const
Definition AMDGPUAsmUtils.h:51
bool(* Cond)(const MCSubtargetInfo &STI)
Definition AMDGPUAsmUtils.h:40
unsigned Default
Definition AMDGPUAsmUtils.h:37
StringLiteral Name
Definition AMDGPUAsmUtils.h:35
Definition AMDGPUAsmUtils.h:28
StringLiteral Name
Definition AMDGPUAsmUtils.h:29
unsigned Encoding
Definition AMDGPUAsmUtils.h:30
bool(* Cond)(const MCSubtargetInfo &STI)
Definition AMDGPUAsmUtils.h:31
Definition AMDGPUAsmUtils.h:121
StringLiteral Symbol
Definition AMDGPUAsmUtils.h:122
unsigned Code
Definition AMDGPUAsmUtils.h:123