#include <TCETargetTransformInfo.hh>
Definition at line 42 of file TCETargetTransformInfo.hh.
◆ BaseT
◆ TTI
◆ TCETTIImpl()
llvm::TCETTIImpl::TCETTIImpl |
( |
const TCETargetMachine * |
TM, |
|
|
const Function & |
F |
|
) |
| |
|
inlineexplicit |
Definition at line 60 of file TCETargetTransformInfo.hh.
61 :
BaseT(TM, F.getParent()->getDataLayout()),
62 ST(TM->getSubtargetImpl()),
63 TLI(
static_cast<const TCETargetLowering *
>(
virtual const TargetLowering * getTargetLowering() const override
BasicTTIImplBase< TCETTIImpl > BaseT
const TCETargetLowering * TLI
◆ getST()
◆ getTLI()
◆ isHardwareLoopProfitable()
bool TCETTIImpl::isHardwareLoopProfitable |
( |
Loop * |
L, |
|
|
ScalarEvolution & |
SE, |
|
|
AssumptionCache & |
AC, |
|
|
TargetLibraryInfo * |
LibInfo, |
|
|
HardwareLoopInfo & |
HWLoopInfo |
|
) |
| |
Definition at line 43 of file TCETargetTransformInfo.cc.
45 {
46
50
51
52 if (L->getNumBlocks() != 1) {
53 LLVM_DEBUG(
54 dbgs() << "HWLoops: Loop has " << L->getNumBlocks()
55 << " BB. Not converting to hwloop: " << L->getName()
56 << "\n");
57 return false;
58 }
59
60
61 LLVMContext &C = L->getHeader()->getContext();
62 HWLoopInfo.CountType = Type::getInt32Ty(C);
63 HWLoopInfo.LoopDecrement = ConstantInt::get(HWLoopInfo.CountType, 1);
64 HWLoopInfo.IsNestingLegal = false;
65 return true;
66}
static MachInfoCmdLineOptions options
static CmdLineOptions * cmdLineOptions()
References Application::cmdLineOptions(), and options.
◆ BaseT
◆ ST
◆ TLI
The documentation for this class was generated from the following files: