16#ifndef LLVM_LIB_TARGET_LOONGARCH_LOONGARCHTARGETTRANSFORMINFO_H
17#define LLVM_LIB_TARGET_LOONGARCH_LOONGARCHTARGETTRANSFORMINFO_H
31 enum LoongArchRegisterClass { GPRRC, FPRRC, VRRC };
41 TLI(ST->getTargetLowering()) {}
47 Type *Ty =
nullptr)
const override;
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
uint64_t IntrinsicInst * II
BasicTTIImplBase(const TargetMachine *TM, const DataLayout &DL)
A wrapper class for inspecting calls to intrinsic functions.
TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) const override
unsigned getCacheLineSize() const override
bool shouldExpandReduction(const IntrinsicInst *II) const override
LoongArchTTIImpl(const LoongArchTargetMachine *TM, const Function &F)
unsigned getRegisterClassForType(bool Vector, Type *Ty=nullptr) const override
unsigned getMaxInterleaveFactor(ElementCount VF) const override
const char * getRegisterClassName(unsigned ClassID) const override
unsigned getNumberOfRegisters(unsigned ClassID) const override
unsigned getPrefetchDistance() const override
bool enableWritePrefetching() const override
TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind K) const override
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.