LLVM: lib/Target/AMDGPU/AMDGPUInstrInfo.cpp Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
22
23using namespace llvm;
24
26 return I.getOperand(I.getNumExplicitDefs()).getIntrinsicID();
27}
28
29
32 if (!Ptr) {
34 return PSV->isConstantPool() || PSV->isStack() || PSV->isGOT() ||
35 PSV->isJumpTable();
36 }
37
38
39 return false;
40 }
41
42
43
45 return true;
46
48 return true;
49
52
54 return I && I->getMetadata("amdgpu.uniform");
55}
Contains the definition of a TargetInstrInfo class that is common to all AMD GPUs.
This file contains the declarations for the subclasses of Constant, which represent the different fla...
This class represents an incoming formal argument to a Function.
Representation of each machine instruction.
A description of a memory reference used in the backend.
const PseudoSourceValue * getPseudoValue() const
unsigned getAddrSpace() const
const Value * getValue() const
Return the base address of the memory access.
Special value supplied for machine level alias analysis.
LLVM Value Representation.
@ CONSTANT_ADDRESS_32BIT
Address space for 32-bit constant memory.
bool isArgPassedInSGPR(const Argument *A)
bool isUniformMMO(const MachineMemOperand *MMO)
Definition AMDGPUInstrInfo.cpp:30
Intrinsic::ID getIntrinsicID(const MachineInstr &I)
Return the intrinsic ID for opcodes with the G_AMDGPU_INTRIN_ prefix.
Definition AMDGPUInstrInfo.cpp:25
This is an optimization pass for GlobalISel generic memory operations.
decltype(auto) dyn_cast(const From &Val)
dyn_cast - Return the argument parameter cast to the specified type.
bool isa(const From &Val)
isa - Return true if the parameter to the template is an instance of one of the template type argu...