LLVM 24.0.0git
X86TargetTransformInfo.h
Go to the documentation of this file.
1//===-- X86TargetTransformInfo.h - X86 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/// \file
9/// This file a TargetTransformInfoImplBase conforming object specific to the
10/// X86 target machine. It uses the target's detailed information to
11/// provide more precise answers to certain TTI queries, while letting the
12/// target independent and default TTI implementations handle the rest.
13///
14//===----------------------------------------------------------------------===//
15
16#ifndef LLVM_LIB_TARGET_X86_X86TARGETTRANSFORMINFO_H
17#define LLVM_LIB_TARGET_X86_X86TARGETTRANSFORMINFO_H
18
19#include "X86TargetMachine.h"
22#include <optional>
23
24namespace llvm {
25
26class InstCombiner;
27
28class X86TTIImpl final : public BasicTTIImplBase<X86TTIImpl> {
29 typedef BasicTTIImplBase<X86TTIImpl> BaseT;
30 typedef TargetTransformInfo TTI;
31 friend BaseT;
32
33 const X86Subtarget *ST;
34 const X86TargetLowering *TLI;
35
36 const X86Subtarget *getST() const { return ST; }
37 const X86TargetLowering *getTLI() const { return TLI; }
38
39public:
40 explicit X86TTIImpl(const X86TargetMachine *TM, const Function &F)
41 : BaseT(TM, F.getDataLayout()), ST(TM->getSubtargetImpl(F)),
42 TLI(ST->getTargetLowering()) {}
43
44 /// \name Cache TTI Implementation
45 /// @{
46 std::optional<unsigned> getCacheSize(
47 TargetTransformInfo::CacheLevel Level) const override;
48 std::optional<unsigned> getCacheAssociativity(
49 TargetTransformInfo::CacheLevel Level) const override;
50 /// @}
51
52 /// \name Vector TTI Implementations
53 /// @{
54
55 unsigned getNumberOfRegisters(unsigned ClassID) const override;
56 unsigned getRegisterClassForType(bool Vector, Type *Ty) const override;
57 bool hasConditionalLoadStoreForType(Type *Ty, bool IsStore) const override;
60 unsigned getLoadStoreVecRegBitWidth(unsigned AS) const override;
62 bool HasUnorderedReductions) const override;
64 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind,
67 ArrayRef<const Value *> Args = {}, const Instruction *CtxI = nullptr,
68 const TargetLibraryInfo *TLibInfo = nullptr,
69 ArrayRef<const Value *> Scalars = {}) const override;
71 getAltInstrCost(VectorType *VecTy, unsigned Opcode0, unsigned Opcode1,
72 const SmallBitVector &OpcodeMask,
73 TTI::TargetCostKind CostKind,
74 ArrayRef<const Value *> Scalars) const override;
75
77 getShuffleCost(TTI::ShuffleKind Kind, VectorType *DstTy, VectorType *SrcTy,
78 TTI::TargetCostKind CostKind, ArrayRef<int> Mask, int Index,
79 VectorType *SubTp, ArrayRef<const Value *> Args = {},
80 const Instruction *CtxI = nullptr,
82 TTI::VectorInstrContext::None) const override;
84 getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src,
86 const Instruction *I = nullptr) const override;
88 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred,
89 TTI::TargetCostKind CostKind,
92 const Instruction *I = nullptr) const override;
95 getVectorInstrCost(unsigned Opcode, Type *Val, TTI::TargetCostKind CostKind,
96 unsigned Index, const Value *Op0, const Value *Op1,
98 TTI::VectorInstrContext::None) const override;
100 getScalarizationOverhead(VectorType *Ty, const APInt &DemandedElts,
101 bool Insert, bool Extract,
102 TTI::TargetCostKind CostKind,
103 bool ForPoisonSrc = true, ArrayRef<Value *> VL = {},
105 TTI::VectorInstrContext::None) const override;
107 getReplicationShuffleCost(Type *EltTy, int ReplicationFactor, int VF,
108 const APInt &DemandedDstElts,
109 TTI::TargetCostKind CostKind) const override;
111 unsigned Opcode, Type *Src, Align Alignment, unsigned AddressSpace,
112 TTI::TargetCostKind CostKind,
114 const Instruction *I = nullptr) const override;
116 getMemIntrinsicInstrCost(const MemIntrinsicCostAttributes &MICA,
117 TTI::TargetCostKind CostKind) const override;
118 InstructionCost getMaskedMemoryOpCost(const MemIntrinsicCostAttributes &MICA,
119 TTI::TargetCostKind CostKind) const;
120 InstructionCost getGatherScatterOpCost(const MemIntrinsicCostAttributes &MICA,
121 TTI::TargetCostKind CostKind) const;
124 const TTI::PointersChainInfo &Info, Type *AccessTy,
125 const TTI::TargetCostKind CostKind) const override;
127 getAddressComputationCost(Type *PtrTy, ScalarEvolution *SE, const SCEV *Ptr,
128 TTI::TargetCostKind CostKind) const override;
129
130 std::optional<Instruction *>
131 instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const override;
132 std::optional<Value *>
134 APInt DemandedMask, KnownBits &Known,
135 bool &KnownBitsComputed) const override;
136 std::optional<Value *> simplifyDemandedVectorEltsIntrinsic(
137 InstCombiner &IC, IntrinsicInst &II, APInt DemandedElts, APInt &UndefElts,
138 APInt &UndefElts2, APInt &UndefElts3,
139 std::function<void(Instruction *, unsigned, APInt, APInt &)>
140 SimplifyAndSetOp) const override;
141
142 unsigned getAtomicMemIntrinsicMaxElementSize() const override;
143
145 getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
146 TTI::TargetCostKind CostKind) const override;
147
149 getArithmeticReductionCost(unsigned Opcode, VectorType *Ty,
150 std::optional<FastMathFlags> FMF,
151 TTI::TargetCostKind CostKind) const override;
152
154 unsigned Opcode, Type *InputTypeA, Type *InputTypeB, Type *AccumType,
155 ElementCount VF, TTI::PartialReductionExtendKind OpAExtend,
156 TTI::PartialReductionExtendKind OpBExtend, std::optional<unsigned> BinOp,
157 TTI::TargetCostKind CostKind,
158 std::optional<FastMathFlags> FMF) const override;
159
161 TTI::TargetCostKind CostKind,
162 FastMathFlags FMF) const;
163
165 getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty, FastMathFlags FMF,
166 TTI::TargetCostKind CostKind) const override;
167
169 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices,
170 Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind,
171 bool UseMaskForCond = false, bool UseMaskForGaps = false) const override;
173 unsigned Opcode, FixedVectorType *VecTy, unsigned Factor,
174 ArrayRef<unsigned> Indices, Align Alignment, unsigned AddressSpace,
175 TTI::TargetCostKind CostKind, bool UseMaskForCond = false,
176 bool UseMaskForGaps = false) const;
177
178 InstructionCost getIntImmCost(int64_t) const;
179
180 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty,
181 TTI::TargetCostKind CostKind) const override;
182
183 InstructionCost getCFInstrCost(unsigned Opcode, TTI::TargetCostKind CostKind,
184 const Instruction *I = nullptr) const override;
185
186 InstructionCost getIntImmCostInst(unsigned Opcode, unsigned Idx,
187 const APInt &Imm, Type *Ty,
188 TTI::TargetCostKind CostKind,
189 Instruction *Inst = nullptr) const override;
191 getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx, const APInt &Imm,
192 Type *Ty, TTI::TargetCostKind CostKind) const override;
193 /// Return the cost of the scaling factor used in the addressing
194 /// mode represented by AM for this target, for a load/store
195 /// of the specified type.
196 /// If the AM is supported, the return value must be >= 0.
197 /// If the AM is not supported, it returns an invalid cost.
198 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
199 StackOffset BaseOffset, bool HasBaseReg,
200 int64_t Scale,
201 unsigned AddrSpace) const override;
202
203 bool isLSRCostLess(const TargetTransformInfo::LSRCost &C1,
204 const TargetTransformInfo::LSRCost &C2) const override;
205 bool canMacroFuseCmp() const override;
206 bool
207 isLegalMaskedLoad(Type *DataType, Align Alignment, unsigned AddressSpace,
208 TTI::MaskKind MaskKind =
210 bool
211 isLegalMaskedStore(Type *DataType, Align Alignment, unsigned AddressSpace,
212 TTI::MaskKind MaskKind =
214 bool isLegalNTLoad(Type *DataType, Align Alignment) const override;
215 bool isLegalNTStore(Type *DataType, Align Alignment) const override;
216 bool isLegalBroadcastLoad(Type *ElementTy,
217 ElementCount NumElements) const override;
218 bool forceScalarizeMaskedGather(VectorType *VTy,
219 Align Alignment) const override;
221 Align Alignment) const override {
222 return forceScalarizeMaskedGather(VTy, Alignment);
223 }
224 bool isLegalMaskedGatherScatter(Type *DataType, Align Alignment) const;
225 bool isLegalMaskedGather(Type *DataType, Align Alignment) const override;
226 bool isLegalMaskedScatter(Type *DataType, Align Alignment) const override;
227 bool isLegalMaskedExpandLoad(Type *DataType, Align Alignment) const override;
228 bool isLegalMaskedCompressStore(Type *DataType,
229 Align Alignment) const override;
230 bool isLegalAltInstr(VectorType *VecTy, unsigned Opcode0, unsigned Opcode1,
231 const SmallBitVector &OpcodeMask,
232 ArrayRef<const Value *> Scalars) const override;
233 bool hasDivRemOp(Type *DataType, bool IsSigned) const override;
234 bool isExpensiveToSpeculativelyExecute(const Instruction *I) const override;
235 bool isFCmpOrdCheaperThanFCmpZero(Type *Ty) const override;
236 bool areInlineCompatible(const Function *Caller,
237 const Function *Callee) const override;
238 bool areTypesABICompatible(const Function *Caller, const Function *Callee,
239 ArrayRef<Type *> Type) const override;
240
242 return ST->getMaxInlineSizeThreshold();
243 }
244
246 return ST->is64Bit() ? 16 : 0;
247 }
248
250 enableMemCmpExpansion(bool OptSize, bool IsZeroCmp) const override;
251 bool preferAlternateOpcodeVectorization() const override { return false; }
252 bool prefersVectorizedAddressing() const override;
253 bool supportsEfficientVectorElementLoadStore() const override;
254 bool enableInterleavedAccessVectorization() const override;
255
256 bool shouldExpandReduction(const IntrinsicInst *II) const override;
257
259
261 SmallVectorImpl<Use *> &Ops) const override;
262
263 bool isVectorShiftByScalarCheap(Type *Ty) const override;
264
265 unsigned getStoreMinimumVF(unsigned VF, Type *ScalarMemTy, Type *ScalarValTy,
266 Align Alignment,
267 unsigned AddrSpace) const override;
268
269 bool useFastCCForInternalCall(Function &F) const override;
270
271private:
272 bool supportsGather() const;
273 InstructionCost getGSVectorCost(unsigned Opcode, TTI::TargetCostKind CostKind,
274 Type *DataTy, const Value *Ptr,
275 Align Alignment, unsigned AddressSpace) const;
276
277 int getGatherOverhead() const;
278 int getScatterOverhead() const;
279
280 /// @}
281};
282
283} // end namespace llvm
284
285#endif
uint64_t uint64_t
uint64_t Imm
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
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
Machine InstCombiner
uint64_t IntrinsicInst * II
int64_t C1
This pass exposes codegen information to IR-level passes.
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)
Predicate
This enumeration lists the possible predicates for CmpInst subclasses.
Definition InstrTypes.h:740
The core instruction combiner logic.
A wrapper class for inspecting calls to intrinsic functions.
This is a 'bitvector' (really, a variable-sized bit array), optimized for the case when the array is ...
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
virtual const DataLayout & getDataLayout() const
This pass provides access to the codegen interfaces that are needed for IR-level transformations.
MaskKind
Some targets only support masked load/store with a constant mask.
TargetCostKind
The kind of cost model.
llvm::VectorInstrContext VectorInstrContext
ShuffleKind
The various kinds of shuffle patterns for vector queries.
CastContextHint
Represents a hint about the context in which a cast is used.
CacheLevel
The possible cache levels.
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.
bool useFastCCForInternalCall(Function &F) const override
bool isLegalAltInstr(VectorType *VecTy, unsigned Opcode0, unsigned Opcode1, const SmallBitVector &OpcodeMask, ArrayRef< const Value * > Scalars) const override
InstructionCost getReplicationShuffleCost(Type *EltTy, int ReplicationFactor, int VF, const APInt &DemandedDstElts, TTI::TargetCostKind CostKind) const override
bool isLegalNTLoad(Type *DataType, Align Alignment) const override
std::optional< unsigned > getCacheAssociativity(TargetTransformInfo::CacheLevel Level) 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.
bool isLegalBroadcastLoad(Type *ElementTy, ElementCount NumElements) const override
unsigned getRegisterClassForType(bool Vector, Type *Ty) const override
InstructionCost getMemIntrinsicInstrCost(const MemIntrinsicCostAttributes &MICA, TTI::TargetCostKind CostKind) const override
Get memory intrinsic cost based on arguments.
unsigned getMaxInterleaveFactor(ElementCount VF, bool HasUnorderedReductions) const override
bool preferAlternateOpcodeVectorization() const override
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
X86TTIImpl(const X86TargetMachine *TM, const Function &F)
bool isLegalNTStore(Type *DataType, Align Alignment) const override
InstructionCost getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, TTI::CastContextHint CCH, TTI::TargetCostKind CostKind, const Instruction *I=nullptr) const override
InstructionCost getInterleavedMemoryOpCostAVX512(unsigned Opcode, FixedVectorType *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind, bool UseMaskForCond=false, bool UseMaskForGaps=false) const
TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind K) const override
bool isVectorShiftByScalarCheap(Type *Ty) const override
bool isLegalMaskedGather(Type *DataType, Align Alignment) const override
bool shouldExpandReduction(const IntrinsicInst *II) const override
InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, StackOffset BaseOffset, bool HasBaseReg, int64_t Scale, unsigned AddrSpace) const override
Return the cost of the scaling factor used in the addressing mode represented by AM for this target,...
unsigned getAtomicMemIntrinsicMaxElementSize() const override
bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment) const override
InstructionCost getBranchMispredictPenalty() const override
bool isExpensiveToSpeculativelyExecute(const Instruction *I) const override
bool hasConditionalLoadStoreForType(Type *Ty, bool IsStore) const override
InstructionCost getAltInstrCost(VectorType *VecTy, unsigned Opcode0, unsigned Opcode1, const SmallBitVector &OpcodeMask, TTI::TargetCostKind CostKind, ArrayRef< const Value * > Scalars) const override
bool isLegalMaskedStore(Type *DataType, Align Alignment, unsigned AddressSpace, TTI::MaskKind MaskKind=TTI::MaskKind::VariableOrConstantMask) const override
std::optional< unsigned > getCacheSize(TargetTransformInfo::CacheLevel Level) const override
uint64_t getMaxBoundedMemSetInlineSize() const override
bool isLegalMaskedGatherScatter(Type *DataType, Align Alignment) const
bool isLegalMaskedLoad(Type *DataType, Align Alignment, unsigned AddressSpace, TTI::MaskKind MaskKind=TTI::MaskKind::VariableOrConstantMask) const override
bool enableInterleavedAccessVectorization() const override
unsigned getLoadStoreVecRegBitWidth(unsigned AS) const override
unsigned getNumberOfRegisters(unsigned ClassID) const override
std::optional< Value * > simplifyDemandedUseBitsIntrinsic(InstCombiner &IC, IntrinsicInst &II, APInt DemandedMask, KnownBits &Known, bool &KnownBitsComputed) const override
uint64_t getMaxMemIntrinsicInlineSizeThreshold() const override
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
bool isLegalMaskedScatter(Type *DataType, Align Alignment) 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
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
unsigned getStoreMinimumVF(unsigned VF, Type *ScalarMemTy, Type *ScalarValTy, Align Alignment, unsigned AddrSpace) const override
bool hasDivRemOp(Type *DataType, bool IsSigned) const override
bool isLegalMaskedCompressStore(Type *DataType, Align Alignment) const override
InstructionCost getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx, const APInt &Imm, Type *Ty, TTI::TargetCostKind CostKind) const override
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
bool supportsEfficientVectorElementLoadStore() const override
InstructionCost getIntImmCostInst(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty, TTI::TargetCostKind CostKind, Instruction *Inst=nullptr) const override
bool isLegalMaskedExpandLoad(Type *DataType, Align Alignment) const override
bool isFCmpOrdCheaperThanFCmpZero(Type *Ty) const override
TTI::MemCmpExpansionOptions enableMemCmpExpansion(bool OptSize, bool IsZeroCmp) const override
InstructionCost getPointersChainCost(ArrayRef< const Value * > Ptrs, const Value *Base, const TTI::PointersChainInfo &Info, Type *AccessTy, const TTI::TargetCostKind CostKind) const override
InstructionCost getIntImmCost(int64_t) const
Calculate the cost of materializing a 64-bit value.
InstructionCost getMinMaxCost(Intrinsic::ID IID, Type *Ty, TTI::TargetCostKind CostKind, FastMathFlags FMF) const
InstructionCost getCFInstrCost(unsigned Opcode, TTI::TargetCostKind CostKind, const Instruction *I=nullptr) const override
InstructionCost getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef< unsigned > Indices, Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind, bool UseMaskForCond=false, bool UseMaskForGaps=false) const override
bool canMacroFuseCmp() const override
bool areInlineCompatible(const Function *Caller, const Function *Callee) const override
InstructionCost getMaskedMemoryOpCost(const MemIntrinsicCostAttributes &MICA, TTI::TargetCostKind CostKind) const
bool prefersVectorizedAddressing() const override
bool areTypesABICompatible(const Function *Caller, const Function *Callee, ArrayRef< Type * > Type) const override
bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) const override
InstructionCost getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA, TTI::TargetCostKind CostKind) const override
Get intrinsic cost based on arguments.
bool isProfitableToSinkOperands(Instruction *I, SmallVectorImpl< Use * > &Ops) const override
InstructionCost getScalarizationOverhead(VectorType *Ty, const APInt &DemandedElts, bool Insert, bool Extract, TTI::TargetCostKind CostKind, bool ForPoisonSrc=true, ArrayRef< Value * > VL={}, TTI::VectorInstrContext VIC=TTI::VectorInstrContext::None) const override
Estimate the overhead of scalarizing an instruction.
InstructionCost getArithmeticReductionCost(unsigned Opcode, VectorType *Ty, std::optional< FastMathFlags > FMF, TTI::TargetCostKind CostKind) const override
InstructionCost getGatherScatterOpCost(const MemIntrinsicCostAttributes &MICA, TTI::TargetCostKind CostKind) const
Calculate the cost of Gather / Scatter operation.
std::optional< Instruction * > instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) 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
InstructionCost getAddressComputationCost(Type *PtrTy, ScalarEvolution *SE, const SCEV *Ptr, TTI::TargetCostKind CostKind) 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
bool isLSRCostLess(const TargetTransformInfo::LSRCost &C1, const TargetTransformInfo::LSRCost &C2) const override
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
friend class Instruction
Iterator for Instructions in a `BasicBlock.
Definition BasicBlock.h:73
This is an optimization pass for GlobalISel generic memory operations.
@ Known
Known to have no common set bits.
RelativeUniformCounterPtr ValuesPtrExpr VTableAddr Value
Definition InstrProf.h:143
ArrayRef(const T &OneElt) -> ArrayRef< T >
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition Alignment.h:39
Returns options for expansion of memcmp. IsZeroCmp is.
Describe known properties for a set of pointers.