LLVM 24.0.0git
AMDGPUTargetTransformInfo.h
Go to the documentation of this file.
1//===- AMDGPUTargetTransformInfo.h - AMDGPU specific TTI --------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9/// \file
10/// This file a TargetTransformInfoImplBase conforming object specific to the
11/// AMDGPU target machine. It uses the target's detailed information to
12/// provide more precise answers to certain TTI queries, while letting the
13/// target independent and default TTI implementations handle the rest.
14//
15//===----------------------------------------------------------------------===//
16
17#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUTARGETTRANSFORMINFO_H
18#define LLVM_LIB_TARGET_AMDGPU_AMDGPUTARGETTRANSFORMINFO_H
19
20#include "AMDGPU.h"
23#include <optional>
24
25namespace llvm {
26
28struct AMDGPUOptions;
29class GCNSubtarget;
30class InstCombiner;
31class Loop;
32class ScalarEvolution;
34class Type;
35class Value;
36
37class AMDGPUTTIImpl final : public BasicTTIImplBase<AMDGPUTTIImpl> {
39 using TTI = TargetTransformInfo;
40
41 friend BaseT;
42
43 const AMDGPUOptions &CLOpts;
44
45 const TargetSubtargetInfo *ST;
46 const TargetLoweringBase *TLI;
47
48 const TargetSubtargetInfo *getST() const { return ST; }
49 const TargetLoweringBase *getTLI() const { return TLI; }
50
51public:
52 explicit AMDGPUTTIImpl(const AMDGPUTargetMachine *TM, const Function &F);
53
56 OptimizationRemarkEmitter *ORE) const override;
57
59 TTI::PeelingPreferences &PP) const override;
60
62};
63
64class GCNTTIImpl final : public BasicTTIImplBase<GCNTTIImpl> {
65 using BaseT = BasicTTIImplBase<GCNTTIImpl>;
66 using TTI = TargetTransformInfo;
67
68 friend BaseT;
69
70 const AMDGPUOptions &CLOpts;
71 const GCNSubtarget *ST;
72 const SITargetLowering *TLI;
73 AMDGPUTTIImpl CommonTTI;
74 bool IsGraphics;
75 bool HasFP32Denormals;
76 static constexpr bool InlinerVectorBonusPercent = 0;
77
78 static const FeatureBitset InlineFeatureIgnoreList;
79
80 const GCNSubtarget *getST() const { return ST; }
81 const SITargetLowering *getTLI() const { return TLI; }
82
83 static inline int getFullRateInstrCost() {
85 }
86
87 static inline int getHalfRateInstrCost(TTI::TargetCostKind CostKind) {
88 return CostKind == TTI::TCK_CodeSize ? 2
90 }
91
92 // TODO: The size is usually 8 bytes, but takes 4x as many cycles. Maybe
93 // should be 2 or 4.
94 static inline int getQuarterRateInstrCost(TTI::TargetCostKind CostKind) {
95 return CostKind == TTI::TCK_CodeSize ? 2
97 }
98
99 int getTransInstrCost(TTI::TargetCostKind CostKind) const;
100
101 // On some parts, normal fp64 operations are half rate, and others
102 // quarter. This also applies to some integer operations.
103 int get64BitInstrCost(TTI::TargetCostKind CostKind) const;
104
105 std::pair<InstructionCost, MVT> getTypeLegalizationCost(Type *Ty) const;
106
107 /// \returns true if V might be divergent even when all of its operands
108 /// are uniform.
109 bool isSourceOfDivergence(const Value *V) const;
110
111 /// Returns true for the target specific set of operations which produce
112 /// uniform result even taking non-uniform arguments.
113 bool isAlwaysUniform(const Value *V) const;
114
115public:
116 explicit GCNTTIImpl(const AMDGPUTargetMachine *TM, const Function &F);
117
118 bool hasBranchDivergence(const Function *F = nullptr) const override;
119
122 OptimizationRemarkEmitter *ORE) const override;
123
125 TTI::PeelingPreferences &PP) const override;
126
127 unsigned getNumberOfRegisters(unsigned RCID) const override;
130 unsigned getMinVectorRegisterBitWidth() const override;
131 unsigned getMaximumVF(unsigned ElemWidth, unsigned Opcode) const override;
132 bool preferSLPInstCountCheck() const override;
133 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize,
134 unsigned ChainSizeInBytes,
135 VectorType *VecTy) const override;
136 unsigned getStoreVectorFactor(unsigned VF, unsigned StoreSize,
137 unsigned ChainSizeInBytes,
138 VectorType *VecTy) const override;
139 unsigned getLoadStoreVecRegBitWidth(unsigned AddrSpace) const override;
140
141 bool isLegalToVectorizeMemChain(unsigned ChainSizeInBytes, Align Alignment,
142 unsigned AddrSpace) const;
143 bool isLegalToVectorizeLoadChain(unsigned ChainSizeInBytes, Align Alignment,
144 unsigned AddrSpace) const override;
145 bool isLegalToVectorizeStoreChain(unsigned ChainSizeInBytes, Align Alignment,
146 unsigned AddrSpace) const override;
147
150 LLVMContext &Context, Value *Length, unsigned SrcAddrSpace,
151 unsigned DestAddrSpace, Align SrcAlign, Align DestAlign,
152 std::optional<uint32_t> AtomicElementSize) const override;
153
156 unsigned RemainingBytes, unsigned SrcAddrSpace, unsigned DestAddrSpace,
157 Align SrcAlign, Align DestAlign,
158 std::optional<uint32_t> AtomicCpySize) const override;
160 bool HasUnorderedReductions) const override;
161
163 MemIntrinsicInfo &Info) const override;
164
166 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind,
169 ArrayRef<const Value *> Args = {}, const Instruction *CtxI = nullptr,
170 const TargetLibraryInfo *TLibInfo = nullptr,
171 ArrayRef<const Value *> Scalars = {}) const override;
172
173 InstructionCost getCFInstrCost(unsigned Opcode, TTI::TargetCostKind CostKind,
174 const Instruction *I = nullptr) const override;
175
177 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred,
178 TTI::TargetCostKind CostKind,
181 const Instruction *I = nullptr) const override;
182
184 ArrayRef<unsigned> Indices = {}) const;
185
188 getVectorInstrCost(unsigned Opcode, Type *ValTy, TTI::TargetCostKind CostKind,
189 unsigned Index, const Value *Op0, const Value *Op1,
191 TTI::VectorInstrContext::None) const override;
192
193 bool isReadRegisterSourceOfDivergence(const IntrinsicInst *ReadReg) const;
194
195 bool isValidAddrSpaceCast(unsigned FromAS, unsigned ToAS) const override {
196 // Address space casts must cast between different address spaces.
197 if (FromAS == ToAS)
198 return false;
199
200 // Casts between any aliasing address spaces are valid.
201 return AMDGPU::addrspacesMayAlias(FromAS, ToAS);
202 }
203
204 bool addrspacesMayAlias(unsigned AS0, unsigned AS1) const override {
205 return AMDGPU::addrspacesMayAlias(AS0, AS1);
206 }
207
208 unsigned getFlatAddressSpace() const override {
209 // Don't bother running InferAddressSpaces pass on graphics shaders which
210 // don't use flat addressing.
211 if (IsGraphics)
212 return -1;
214 }
215
217 Intrinsic::ID IID) const override;
218
219 bool
224
226 Value *NewV) const override;
227
228 bool canSimplifyLegacyMulToMul(const Instruction &I, const Value *Op0,
229 const Value *Op1, InstCombiner &IC) const;
230
232 unsigned LaneAgIdx) const;
233
234 std::optional<Instruction *>
236
239 const APInt &DemandedElts,
240 APInt &UndefElts) const;
241
244 APInt DemandedElts) const;
245
247 IntrinsicInst &II) const;
248
249 std::optional<Value *> simplifyDemandedVectorEltsIntrinsic(
250 InstCombiner &IC, IntrinsicInst &II, APInt DemandedElts, APInt &UndefElts,
251 APInt &UndefElts2, APInt &UndefElts3,
252 std::function<void(Instruction *, unsigned, APInt, APInt &)>
253 SimplifyAndSetOp) const override;
254
256
259 TTI::TargetCostKind CostKind, ArrayRef<int> Mask, int Index,
260 VectorType *SubTp, ArrayRef<const Value *> Args = {},
261 const Instruction *CtxI = nullptr,
263 TTI::VectorInstrContext::None) const override;
264
265 bool isProfitableToSinkOperands(Instruction *I,
266 SmallVectorImpl<Use *> &Ops) const override;
267
268 bool areInlineCompatible(const Function *Caller,
269 const Function *Callee) const override;
270
271 int getInliningLastCallToStaticBonus() const override;
272 unsigned getInliningThresholdMultiplier() const override { return 11; }
273 unsigned adjustInliningThreshold(const CallBase *CB) const override;
274 unsigned getCallerAllocaCost(const CallBase *CB,
275 const AllocaInst *AI) const override;
276
277 int getInlinerVectorBonusPercent() const override {
278 return InlinerVectorBonusPercent;
279 }
280
282 getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src,
284 const Instruction *I = nullptr) const override;
285
287 getArithmeticReductionCost(unsigned Opcode, VectorType *Ty,
288 std::optional<FastMathFlags> FMF,
289 TTI::TargetCostKind CostKind) const override;
290
292 unsigned Opcode, Type *InputTypeA, Type *InputTypeB, Type *AccumType,
294 TTI::PartialReductionExtendKind OpBExtend, std::optional<unsigned> BinOp,
295 TTI::TargetCostKind CostKind,
296 std::optional<FastMathFlags> FMF) const override {
298 }
299
302 TTI::TargetCostKind CostKind) const override;
305 TTI::TargetCostKind CostKind) const override;
306
307 /// Data cache line size for LoopDataPrefetch pass. Has no use before GFX12.
308 unsigned getCacheLineSize() const override;
309
310 /// How much before a load we should place the prefetch instruction.
311 /// This is currently measured in number of IR instructions.
312 unsigned getPrefetchDistance() const override;
313
314 /// \return if target want to issue a prefetch in address space \p AS.
315 bool shouldPrefetchAddressSpace(unsigned AS) const override;
317 const Function &F,
318 SmallVectorImpl<std::pair<StringRef, int64_t>> &LB) const override;
319
320 enum class KnownIEEEMode { Unknown, On, Off };
321
322 /// Return KnownIEEEMode::On if we know if the use context can assume
323 /// "amdgpu-ieee"="true" and KnownIEEEMode::Off if we can assume
324 /// "amdgpu-ieee"="false".
326
327 /// Account for loads of i8 vector types to have reduced cost. For
328 /// example the cost of load 4 i8s values is one is the cost of loading
329 /// a single i32 value.
331 unsigned Opcode, Type *Src, Align Alignment, unsigned AddressSpace,
332 TTI::TargetCostKind CostKind,
334 const Instruction *I = nullptr) const override;
335
336 /// When counting parts on AMD GPUs, account for i8s being grouped
337 /// together under a single i32 value. Otherwise fall back to base
338 /// implementation.
339 unsigned getNumberOfParts(Type *Tp) const override;
340
341 ValueUniformity getValueUniformity(const Value *V) const override;
342
343 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
344 StackOffset BaseOffset, bool HasBaseReg,
345 int64_t Scale,
346 unsigned AddrSpace) const override;
347
348 bool isLSRCostLess(const TTI::LSRCost &A,
349 const TTI::LSRCost &B) const override;
350 bool isNumRegsMajorCostOfLSR() const override;
351 bool shouldDropLSRSolutionIfLessProfitable() const override;
352
353 bool isUniform(const Instruction *I,
354 const SmallBitVector &UniformArgs) const override;
355};
356
357} // end namespace llvm
358
359#endif // LLVM_LIB_TARGET_AMDGPU_AMDGPUTARGETTRANSFORMINFO_H
AMDGPU address space definition.
uint64_t uint64_t
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
const AbstractManglingParser< Derived, Alloc >::OperatorInfo AbstractManglingParser< Derived, Alloc >::Ops[]
#define F(x, y, z)
Definition MD5.cpp:54
#define I(x, y, z)
Definition MD5.cpp:57
uint64_t IntrinsicInst * II
uint64_t getMaxMemIntrinsicInlineSizeThreshold() const override
AMDGPUTTIImpl(const AMDGPUTargetMachine *TM, const Function &F)
void getPeelingPreferences(Loop *L, ScalarEvolution &SE, TTI::PeelingPreferences &PP) const override
void getUnrollingPreferences(Loop *L, ScalarEvolution &SE, TTI::UnrollingPreferences &UP, OptimizationRemarkEmitter *ORE) const override
Class for arbitrary precision integers.
Definition APInt.h:78
an instruction to allocate memory on the stack
Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition ArrayRef.h:40
InstructionCost getVectorInstrCost(unsigned Opcode, Type *Val, TTI::TargetCostKind CostKind, unsigned Index, const Value *Op0, const Value *Op1, TTI::VectorInstrContext VIC=TTI::VectorInstrContext::None) const override
BasicTTIImplBase(const TargetMachine *TM, const DataLayout &DL)
Base class for all callable instructions (InvokeInst and CallInst) Holds everything related to callin...
Predicate
This enumeration lists the possible predicates for CmpInst subclasses.
Definition InstrTypes.h:740
Convenience struct for specifying and reasoning about fast-math flags.
Definition FMF.h:23
Container class for subtarget features.
InstructionCost getArithmeticInstrCost(unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind, TTI::OperandValueInfo Op1Info={TTI::OK_AnyValue, TTI::OP_None}, TTI::OperandValueInfo Op2Info={TTI::OK_AnyValue, TTI::OP_None}, ArrayRef< const Value * > Args={}, const Instruction *CtxI=nullptr, const TargetLibraryInfo *TLibInfo=nullptr, ArrayRef< const Value * > Scalars={}) const override
bool simplifyDemandedLaneMaskArg(InstCombiner &IC, IntrinsicInst &II, unsigned LaneAgIdx) const
Simplify a lane index operand (e.g.
GCNTTIImpl(const AMDGPUTargetMachine *TM, const Function &F)
unsigned getLoadStoreVecRegBitWidth(unsigned AddrSpace) const override
InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, StackOffset BaseOffset, bool HasBaseReg, int64_t Scale, unsigned AddrSpace) const override
InstructionCost getMemoryOpCost(unsigned Opcode, Type *Src, Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind, TTI::OperandValueInfo OpInfo={TTI::OK_AnyValue, TTI::OP_None}, const Instruction *I=nullptr) const override
Account for loads of i8 vector types to have reduced cost.
std::optional< Instruction * > instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const override
void collectKernelLaunchBounds(const Function &F, SmallVectorImpl< std::pair< StringRef, int64_t > > &LB) const override
bool addrspacesMayAlias(unsigned AS0, unsigned AS1) const override
Instruction * hoistLaneIntrinsicThroughOperand(InstCombiner &IC, IntrinsicInst &II) const
bool isUniform(const Instruction *I, const SmallBitVector &UniformArgs) const override
bool isLegalToVectorizeStoreChain(unsigned ChainSizeInBytes, Align Alignment, unsigned AddrSpace) const override
int getInlinerVectorBonusPercent() const override
bool isReadRegisterSourceOfDivergence(const IntrinsicInst *ReadReg) const
unsigned getMaximumVF(unsigned ElemWidth, unsigned Opcode) const override
unsigned getNumberOfRegisters(unsigned RCID) const override
bool canHaveNonUndefGlobalInitializerInAddressSpace(unsigned AS) const override
bool isLegalToVectorizeLoadChain(unsigned ChainSizeInBytes, Align Alignment, unsigned AddrSpace) const override
unsigned getCacheLineSize() const override
Data cache line size for LoopDataPrefetch pass. Has no use before GFX12.
InstructionCost getPartialReductionCost(unsigned Opcode, Type *InputTypeA, Type *InputTypeB, Type *AccumType, ElementCount VF, TTI::PartialReductionExtendKind OpAExtend, TTI::PartialReductionExtendKind OpBExtend, std::optional< unsigned > BinOp, TTI::TargetCostKind CostKind, std::optional< FastMathFlags > FMF) const override
unsigned getStoreVectorFactor(unsigned VF, unsigned StoreSize, unsigned ChainSizeInBytes, VectorType *VecTy) const override
bool isLegalToVectorizeMemChain(unsigned ChainSizeInBytes, Align Alignment, unsigned AddrSpace) const
bool isLSRCostLess(const TTI::LSRCost &A, const TTI::LSRCost &B) const override
bool shouldPrefetchAddressSpace(unsigned AS) const override
Value * simplifyAMDGCNMemoryIntrinsicDemanded(InstCombiner &IC, IntrinsicInst &II, APInt DemandedElts) const
Implement SimplifyDemandedVectorElts for amdgcn buffer and image intrinsics.
std::optional< Value * > simplifyDemandedVectorEltsIntrinsic(InstCombiner &IC, IntrinsicInst &II, APInt DemandedElts, APInt &UndefElts, APInt &UndefElts2, APInt &UndefElts3, std::function< void(Instruction *, unsigned, APInt, APInt &)> SimplifyAndSetOp) const override
InstructionCost getVectorInstrCost(unsigned Opcode, Type *ValTy, TTI::TargetCostKind CostKind, unsigned Index, const Value *Op0, const Value *Op1, TTI::VectorInstrContext VIC=TTI::VectorInstrContext::None) const override
bool hasBranchDivergence(const Function *F=nullptr) const override
Value * rewriteIntrinsicWithAddressSpace(IntrinsicInst *II, Value *OldV, Value *NewV) const override
InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *DstTy, VectorType *SrcTy, TTI::TargetCostKind CostKind, ArrayRef< int > Mask, int Index, VectorType *SubTp, ArrayRef< const Value * > Args={}, const Instruction *CtxI=nullptr, TTI::VectorInstrContext VIC=TTI::VectorInstrContext::None) const override
unsigned getCallerAllocaCost(const CallBase *CB, const AllocaInst *AI) const override
InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred, TTI::TargetCostKind CostKind, TTI::OperandValueInfo Op1Info={TTI::OK_AnyValue, TTI::OP_None}, TTI::OperandValueInfo Op2Info={TTI::OK_AnyValue, TTI::OP_None}, const Instruction *I=nullptr) const override
void getMemcpyLoopResidualLoweringType(SmallVectorImpl< Type * > &OpsOut, LLVMContext &Context, unsigned RemainingBytes, unsigned SrcAddrSpace, unsigned DestAddrSpace, Align SrcAlign, Align DestAlign, std::optional< uint32_t > AtomicCpySize) const override
InstructionCost getArithmeticReductionCost(unsigned Opcode, VectorType *Ty, std::optional< FastMathFlags > FMF, TTI::TargetCostKind CostKind) const override
InstructionCost getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA, TTI::TargetCostKind CostKind) const override
Get intrinsic cost based on arguments.
unsigned getInliningThresholdMultiplier() const override
unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize, unsigned ChainSizeInBytes, VectorType *VecTy) const override
unsigned getPrefetchDistance() const override
How much before a load we should place the prefetch instruction.
InstructionCost getCFInstrCost(unsigned Opcode, TTI::TargetCostKind CostKind, const Instruction *I=nullptr) const override
KnownIEEEMode fpenvIEEEMode(const Instruction &I) const
Return KnownIEEEMode::On if we know if the use context can assume "amdgpu-ieee"="true" and KnownIEEEM...
unsigned adjustInliningThreshold(const CallBase *CB) const override
bool isProfitableToSinkOperands(Instruction *I, SmallVectorImpl< Use * > &Ops) const override
Whether it is profitable to sink the operands of an Instruction I to the basic block of I.
bool getTgtMemIntrinsic(IntrinsicInst *Inst, MemIntrinsicInfo &Info) const override
bool areInlineCompatible(const Function *Caller, const Function *Callee) const override
InstructionCost getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty, FastMathFlags FMF, TTI::TargetCostKind CostKind) const override
Try to calculate op costs for min/max reduction operations.
InstructionCost getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, TTI::CastContextHint CCH, TTI::TargetCostKind CostKind, const Instruction *I=nullptr) const override
bool shouldDropLSRSolutionIfLessProfitable() const override
unsigned getMaxInterleaveFactor(ElementCount VF, bool HasUnorderedReductions) const override
int getInliningLastCallToStaticBonus() const override
unsigned getFlatAddressSpace() const override
bool isInlineAsmSourceOfDivergence(const CallBase *CB, ArrayRef< unsigned > Indices={}) const
Analyze if the results of inline asm are divergent.
InstructionCost getVectorSplitCost() const
Value * simplifyAMDGCNLaneIntrinsicDemanded(InstCombiner &IC, IntrinsicInst &II, const APInt &DemandedElts, APInt &UndefElts) const
bool collectFlatAddressOperands(SmallVectorImpl< int > &OpIndexes, Intrinsic::ID IID) const override
ValueUniformity getValueUniformity(const Value *V) const override
unsigned getNumberOfParts(Type *Tp) const override
When counting parts on AMD GPUs, account for i8s being grouped together under a single i32 value.
bool preferSLPInstCountCheck() const override
void getPeelingPreferences(Loop *L, ScalarEvolution &SE, TTI::PeelingPreferences &PP) const override
bool canSimplifyLegacyMulToMul(const Instruction &I, const Value *Op0, const Value *Op1, InstCombiner &IC) const
unsigned getMinVectorRegisterBitWidth() const override
TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind Vector) const override
bool isNumRegsMajorCostOfLSR() const override
void getUnrollingPreferences(Loop *L, ScalarEvolution &SE, TTI::UnrollingPreferences &UP, OptimizationRemarkEmitter *ORE) const override
Type * getMemcpyLoopLoweringType(LLVMContext &Context, Value *Length, unsigned SrcAddrSpace, unsigned DestAddrSpace, Align SrcAlign, Align DestAlign, std::optional< uint32_t > AtomicElementSize) const override
uint64_t getMaxMemIntrinsicInlineSizeThreshold() const override
bool isValidAddrSpaceCast(unsigned FromAS, unsigned ToAS) const override
The core instruction combiner logic.
static InstructionCost getInvalid(CostType Val=0)
A wrapper class for inspecting calls to intrinsic functions.
This is an important class for using LLVM in a threaded context.
Definition LLVMContext.h:76
Represents a single loop in the control flow graph.
Definition LoopInfo.h:40
The optimization diagnostic interface.
The main scalar evolution driver.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Provides information about what library functions are available for the current target.
This base class for TargetLowering contains the SelectionDAG-independent parts that can be used from ...
TargetSubtargetInfo - Generic base class for all target subtargets.
This pass provides access to the codegen interfaces that are needed for IR-level transformations.
TargetCostKind
The kind of cost model.
@ TCK_CodeSize
Instruction code size.
llvm::VectorInstrContext VectorInstrContext
@ TCC_Basic
The cost of a typical 'add' instruction.
ShuffleKind
The various kinds of shuffle patterns for vector queries.
CastContextHint
Represents a hint about the context in which a cast is used.
The instances of the Type class are immutable: once they are created, they are never changed.
Definition Type.h:46
LLVM Value Representation.
Definition Value.h:75
Base class of all SIMD vector types.
@ REGION_ADDRESS
Address space for region memory. (GDS)
@ LOCAL_ADDRESS
Address space for local memory.
@ FLAT_ADDRESS
Address space for flat memory.
@ PRIVATE_ADDRESS
Address space for private memory.
static bool addrspacesMayAlias(unsigned AS1, unsigned AS2)
Definition AMDGPU.h:682
This is an optimization pass for GlobalISel generic memory operations.
@ Length
Definition DWP.cpp:577
ValueUniformity
Enum describing how values behave with respect to uniformity and divergence, to answer the question: ...
Definition Uniformity.h:18
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition Alignment.h:39
Information about a load/store intrinsic defined by the target.
Parameters that control the generic loop unrolling transformation.