16#ifndef LLVM_LIB_TARGET_SPARC_SPARCTARGETTRANSFORMINFO_H
17#define LLVM_LIB_TARGET_SPARC_SPARCTARGETTRANSFORMINFO_H
39 TLI(ST->getTargetLowering()) {}
51 Type *Ty =
nullptr)
const override;
56 unsigned Opcode,
Type *InputTypeA,
Type *InputTypeB,
Type *AccumType,
60 std::optional<FastMathFlags> FMF)
const override {
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
BasicTTIImplBase(const TargetMachine *TM, const DataLayout &DL)
static InstructionCost getInvalid(CostType Val=0)
unsigned getNumberOfRegisters(unsigned ClassID) 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
TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind K) const override
unsigned getRegisterClassForType(bool Vector, Type *Ty=nullptr) const override
TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) const override
SparcTTIImpl(const SparcTargetMachine *TM, const Function &F)
The instances of the Type class are immutable: once they are created, they are never changed.
This is an optimization pass for GlobalISel generic memory operations.