Lines Matching refs:ConstantHoisting

105 class ConstantHoisting : public FunctionPass {  class
123 ConstantHoisting() : FunctionPass(ID), TTI(nullptr), DT(nullptr), in ConstantHoisting() function in __anoneb26ae440111::ConstantHoisting
176 char ConstantHoisting::ID = 0;
177 INITIALIZE_PASS_BEGIN(ConstantHoisting, "consthoist", "Constant Hoisting",
181 INITIALIZE_PASS_END(ConstantHoisting, "consthoist", "Constant Hoisting", in INITIALIZE_PASS_DEPENDENCY()
185 return new ConstantHoisting(); in INITIALIZE_PASS_DEPENDENCY()
189 bool ConstantHoisting::runOnFunction(Function &Fn) { in runOnFunction()
214 Instruction *ConstantHoisting::findMatInsertPt(Instruction *Inst, in findMatInsertPt()
240 Instruction *ConstantHoisting::
275 void ConstantHoisting::collectConstantCandidates(ConstCandMapType &ConstCandMap, in collectConstantCandidates()
312 void ConstantHoisting::collectConstantCandidates(ConstCandMapType &ConstCandMap, in collectConstantCandidates()
366 void ConstantHoisting::collectConstantCandidates(Function &Fn) { in collectConstantCandidates()
375 void ConstantHoisting::findAndMakeBaseConstant(ConstCandVecType::iterator S, in findAndMakeBaseConstant()
407 void ConstantHoisting::findBaseConstants() { in findBaseConstants()
469 void ConstantHoisting::emitBaseConstants(Instruction *Base, Constant *Offset, in emitBaseConstants()
541 bool ConstantHoisting::emitBaseConstants() { in emitBaseConstants()
575 void ConstantHoisting::deleteDeadCastInst() const { in deleteDeadCastInst()
582 bool ConstantHoisting::optimizeConstants(Function &Fn) { in optimizeConstants()