35 #include "LLVMTCECmdLineOptions.hh"
40 #define DEBUG_TYPE "tcetti"
44 Loop *L, ScalarEvolution &SE, AssumptionCache &AC,
45 TargetLibraryInfo *LibInfo, HardwareLoopInfo &HWLoopInfo) {
52 if (L->getNumBlocks() != 1) {
54 dbgs() <<
"HWLoops: Loop has " << L->getNumBlocks()
55 <<
" BB. Not converting to hwloop: " << L->getName()
61 LLVMContext &C = L->getHeader()->getContext();
62 HWLoopInfo.CountType = Type::getInt32Ty(C);
63 HWLoopInfo.LoopDecrement = ConstantInt::get(HWLoopInfo.CountType, 1);
64 HWLoopInfo.IsNestingLegal =
false;