Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DDivRemPairs.cpp78 AssertingVH<Instruction> DivInst; member
85 : DivInst(DivInst_), RemInst(RemInst_) { in DivRemPairWorklistEntry()
86 assert((DivInst->getOpcode() == Instruction::UDiv || in DivRemPairWorklistEntry()
87 DivInst->getOpcode() == Instruction::SDiv) && in DivRemPairWorklistEntry()
89 assert(DivInst->getType() == RemInst->getType() && "Types should match."); in DivRemPairWorklistEntry()
95 Type *getType() const { return DivInst->getType(); } in getType()
98 bool isSigned() const { return DivInst->getOpcode() == Instruction::SDiv; } in isSigned()
101 Value *getDividend() const { return DivInst->getOperand(0); } in getDividend()
102 Value *getDivisor() const { return DivInst->getOperand(1); } in getDivisor()
196 auto &DivInst = E.DivInst; in optimizeDivRem() local
[all …]