Go to the documentation of this file.
32 #ifndef TTA_TCE_TARGET_TRANSFORM_INFO_HH
33 #define TTA_TCE_TARGET_TRANSFORM_INFO_HH
35 #include <llvm/Analysis/TargetTransformInfo.h>
36 #include <llvm/CodeGen/BasicTTIImpl.h>
44 typedef BasicTTIImplBase<TCEStubTTIImpl>
BaseT;
45 typedef TargetTransformInfo
TTI;
50 const TargetLowering *
TLI;
52 const TargetLowering *
getTLI()
const {
59 :
BaseT(
TM, F.getParent()->getDataLayout()),
60 TM(
TM),
ST(
TM->getSubtargetImpl()) {}
66 ,
const Instruction* =
nullptr
const TCEStubSubTarget * ST
unsigned getRegisterBitWidth(bool vector) const
unsigned getMaxInterleaveFactor(unsigned VF)
const TargetLowering * TLI
const TCEStubSubTarget * getST() const
TCEStubTTIImpl(const TCEStubTargetMachine *TM, const Function &F)
unsigned getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, const Instruction *=nullptr)
const TargetLowering * getTargetLowering() const
BasicTTIImplBase< TCEStubTTIImpl > BaseT
const TargetLowering * getTLI() const
const TCEStubTargetMachine * TM
unsigned getNumberOfRegisters(bool vector)