16#ifndef LLVM_LIB_TARGET_SPIRV_SPIRVTARGETTRANSFORMINFO_H
17#define LLVM_LIB_TARGET_SPIRV_SPIRVTARGETTRANSFORMINFO_H
41 TLI(ST->getTargetLowering()) {}
59 Value *NewV)
const override;
66 if (ST->isLogicalSPIRV() &&
80 unsigned Opcode,
Type *InputTypeA,
Type *InputTypeB,
Type *AccumType,
84 std::optional<FastMathFlags> FMF)
const override {
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
uint64_t IntrinsicInst * II
SPIR-V address space definition.
BasicTTIImplBase(const TargetMachine *TM, const DataLayout &DL)
static InstructionCost getInvalid(CostType Val=0)
A wrapper class for inspecting calls to intrinsic functions.
InstructionCost getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA, TTI::TargetCostKind CostKind) const override
Get intrinsic cost based on arguments.
Value * rewriteIntrinsicWithAddressSpace(IntrinsicInst *II, Value *OldV, Value *NewV) const override
bool isLegalMaskedScatter(Type *DataType, Align Alignment) const override
unsigned getNumberOfRegisters(unsigned ClassID) const override
bool collectFlatAddressOperands(SmallVectorImpl< int > &OpIndexes, Intrinsic::ID IID) const override
SPIRVTTIImpl(const SPIRVTargetMachine *TM, const Function &F)
bool hasBranchDivergence(const Function *F=nullptr) const override
bool isLegalMaskedGather(Type *DataType, Align Alignment) 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
unsigned getFlatAddressSpace() const override
bool allowVectorElementIndexingUsingGEP() const override
ValueUniformity getValueUniformity(const Value *V) const override
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
TargetSubtargetInfo - Generic base class for all target subtargets.
The instances of the Type class are immutable: once they are created, they are never changed.
LLVM Value Representation.
This is an optimization pass for GlobalISel generic memory operations.
ValueUniformity
Enum describing how values behave with respect to uniformity and divergence, to answer the question: ...
This struct is a compact representation of a valid (non-zero power of two) alignment.