Home
last modified time | relevance | path

Searched refs:ConstExprInst (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp525 Instruction *ConstExprInst = ConstExpr->getAsInstruction(); in emitBaseConstants() local
526 ConstExprInst->setOperand(0, Mat); in emitBaseConstants()
527 ConstExprInst->insertBefore(findMatInsertPt(ConstUser.Inst, in emitBaseConstants()
531 ConstExprInst->setDebugLoc(ConstUser.Inst->getDebugLoc()); in emitBaseConstants()
533 DEBUG(dbgs() << "Create instruction: " << *ConstExprInst << '\n' in emitBaseConstants()
536 if (!updateOperand(ConstUser.Inst, ConstUser.OpndIdx, ConstExprInst)) { in emitBaseConstants()
537 ConstExprInst->eraseFromParent(); in emitBaseConstants()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp685 Instruction *ConstExprInst = ConstExpr->getAsInstruction(); in emitBaseConstants() local
686 ConstExprInst->setOperand(0, Mat); in emitBaseConstants()
687 ConstExprInst->insertBefore(findMatInsertPt(ConstUser.Inst, in emitBaseConstants()
691 ConstExprInst->setDebugLoc(ConstUser.Inst->getDebugLoc()); in emitBaseConstants()
693 LLVM_DEBUG(dbgs() << "Create instruction: " << *ConstExprInst << '\n' in emitBaseConstants()
696 if (!updateOperand(ConstUser.Inst, ConstUser.OpndIdx, ConstExprInst)) { in emitBaseConstants()
697 ConstExprInst->eraseFromParent(); in emitBaseConstants()