Home
last modified time | relevance | path

Searched refs:SDiv (Results 1 – 25 of 167) sorted by relevance

1234567

/external/swiftshader/third_party/LLVM/unittests/Transforms/Utils/
DCloning.cpp137 BinaryOperator *SDiv = BinaryOperator::Create(Instruction::SDiv, V, V); in TEST_F() local
138 EXPECT_FALSE(this->clone(SDiv)->isExact()); in TEST_F()
140 SDiv->setIsExact(true); in TEST_F()
141 EXPECT_TRUE(this->clone(SDiv)->isExact()); in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp93 bool eliminateSDiv(BinaryOperator *SDiv);
282 bool SimplifyIndvar::eliminateSDiv(BinaryOperator *SDiv) { in eliminateSDiv() argument
284 auto *N = SE->getSCEV(SDiv->getOperand(0)); in eliminateSDiv()
285 auto *D = SE->getSCEV(SDiv->getOperand(1)); in eliminateSDiv()
288 const Loop *L = LI->getLoopFor(SDiv->getParent()); in eliminateSDiv()
295 BinaryOperator::UDiv, SDiv->getOperand(0), SDiv->getOperand(1), in eliminateSDiv()
296 SDiv->getName() + ".udiv", SDiv); in eliminateSDiv()
297 UDiv->setIsExact(SDiv->isExact()); in eliminateSDiv()
298 SDiv->replaceAllUsesWith(UDiv); in eliminateSDiv()
299 LLVM_DEBUG(dbgs() << "INDVARS: Simplified sdiv: " << *SDiv << '\n'); in eliminateSDiv()
[all …]
DIntegerDivision.cpp435 assert((Div->getOpcode() == Instruction::SDiv || in expandDivision()
447 if (Div->getOpcode() == Instruction::SDiv) { in expandDivision()
585 assert((Div->getOpcode() == Instruction::SDiv || in expandDivisionUpTo32Bits()
609 if (Div->getOpcode() == Instruction::SDiv) { in expandDivisionUpTo32Bits()
633 assert((Div->getOpcode() == Instruction::SDiv || in expandDivisionUpTo64Bits()
658 if (Div->getOpcode() == Instruction::SDiv) { in expandDivisionUpTo64Bits()
DBypassSlowDivision.cpp94 return SlowDivOrRem->getOpcode() == Instruction::SDiv || in isSignedOp()
99 return SlowDivOrRem->getOpcode() == Instruction::SDiv || in isDivisionOp()
117 case Instruction::SDiv: in FastDivInsertionTask()
/external/deqp-deps/glslang/Test/baseResults/
Dspv.320.meshShaderUserDefined.mesh.out134 53: 6(int) SDiv 51 52
142 66: 6(int) SDiv 65 52
150 75: 6(int) SDiv 73 74
157 84: 6(int) SDiv 83 74
/external/llvm/unittests/Transforms/Utils/
DCloning.cpp147 BinaryOperator *SDiv = BinaryOperator::Create(Instruction::SDiv, V, V); in TEST_F() local
148 EXPECT_FALSE(this->clone(SDiv)->isExact()); in TEST_F()
150 SDiv->setIsExact(true); in TEST_F()
151 EXPECT_TRUE(this->clone(SDiv)->isExact()); in TEST_F()
DIntegerDivision.cpp23 TEST(IntegerDivision, SDiv) { in TEST() argument
42 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SDiv); in TEST()
163 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SDiv); in TEST()
/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp435 assert((Div->getOpcode() == Instruction::SDiv || in expandDivision()
447 if (Div->getOpcode() == Instruction::SDiv) { in expandDivision()
585 assert((Div->getOpcode() == Instruction::SDiv || in expandDivisionUpTo32Bits()
609 if (Div->getOpcode() == Instruction::SDiv) { in expandDivisionUpTo32Bits()
633 assert((Div->getOpcode() == Instruction::SDiv || in expandDivisionUpTo64Bits()
658 if (Div->getOpcode() == Instruction::SDiv) { in expandDivisionUpTo64Bits()
DBypassSlowDivision.cpp222 bool UseDivOp = Opcode == Instruction::SDiv || Opcode == Instruction::UDiv; in bypassSlowDivision()
224 bool UseSignedOp = Opcode == Instruction::SDiv || in bypassSlowDivision()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DDivRemPairs.cpp59 if (I.getOpcode() == Instruction::SDiv) in optimizeDivRem()
83 bool IsSigned = DivInst->getOpcode() == Instruction::SDiv; in optimizeDivRem()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/LICM/
Dspeculate.ll68 ; SDiv is safe to speculate if the denominator is known non-zero and
102 ; SDiv is unsafe to speculate if the denominator is not known non-zero.
135 ; SDiv is unsafe to speculate if the denominator is not known to have a zero bit.
168 ; SDiv is unsafe to speculate inside an infinite loop.
/external/llvm/test/Transforms/LICM/
Dspeculate.ll68 ; SDiv is safe to speculate if the denominator is known non-zero and
102 ; SDiv is unsafe to speculate if the denominator is not known non-zero.
135 ; SDiv is unsafe to speculate if the denominator is not known to have a zero bit.
168 ; SDiv is unsafe to speculate inside an infinite loop.
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp186 BO->getOpcode() != Instruction::SDiv)) { in visitMul()
194 BO->getOpcode() == Instruction::SDiv)) { in visitMul()
198 if (PossiblyExactOperator *SDiv = dyn_cast<PossiblyExactOperator>(BO)) in visitMul() local
199 if (SDiv->isExact()) { in visitMul()
390 I.getOpcode()==Instruction::SDiv)) in commonIDivTransforms()
413 bool isSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp164 case Instruction::SDiv: in getIntImmCost()
352 if ((Opcode == Instruction::SDiv || Opcode == Instruction::UDiv) && in getArithmeticInstrCost()
363 if (Opcode == Instruction::SDiv) in getArithmeticInstrCost()
452 if ((Opcode == Instruction::SDiv || Opcode == Instruction::SRem)) in getArithmeticInstrCost()
834 case Instruction::SDiv: in getMemoryOpCost()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/
DIntegerDivision.cpp23 TEST(IntegerDivision, SDiv) { in TEST() argument
42 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SDiv); in TEST()
163 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SDiv); in TEST()
DCloning.cpp152 BinaryOperator *SDiv = BinaryOperator::Create(Instruction::SDiv, V, V); in TEST_F() local
153 EXPECT_FALSE(this->clone(SDiv)->isExact()); in TEST_F()
155 SDiv->setIsExact(true); in TEST_F()
156 EXPECT_TRUE(this->clone(SDiv)->isExact()); in TEST_F()
/external/swiftshader/third_party/LLVM/include/llvm/
DOperator.h148 return OpC == Instruction::SDiv || in isPossiblyExactOpcode()
207 : public ConcreteOperator<PossiblyExactOperator, Instruction::SDiv> {
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUCodeGenPrepare.cpp205 I.getOpcode() == Instruction::SDiv || I.getOpcode() == Instruction::SRem; in isSigned()
272 if (I.getOpcode() == Instruction::SDiv || in promoteUniformOpToI32()
615 Opc == Instruction::SRem || Opc == Instruction::SDiv); in expandDivRem32()
624 bool IsDiv = Opc == Instruction::UDiv || Opc == Instruction::SDiv; in expandDivRem32()
625 bool IsSigned = Opc == Instruction::SRem || Opc == Instruction::SDiv; in expandDivRem32()
766 Opc == Instruction::SRem || Opc == Instruction::SDiv) && in visitBinaryOperator()
/external/llvm/include/llvm/IR/
DOperator.h146 return OpC == Instruction::SDiv || in isPossiblyExactOpcode()
348 : public ConcreteOperator<PossiblyExactOperator, Instruction::SDiv> {
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp311 BO->getOpcode() != Instruction::SDiv)) { in visitMul()
319 BO->getOpcode() == Instruction::SDiv)) { in visitMul()
323 if (PossiblyExactOperator *SDiv = dyn_cast<PossiblyExactOperator>(BO)) in visitMul() local
324 if (SDiv->isExact()) { in visitMul()
822 bool IsSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms()
899 bool isSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms()
923 bool isSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DOperator.h141 return OpC == Instruction::SDiv || in isPossiblyExactOpcode()
413 : public ConcreteOperator<PossiblyExactOperator, Instruction::SDiv> {
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DPatternMatch.h333 inline BinaryOp_match<LHS, RHS, Instruction::SDiv>
335 return BinaryOp_match<LHS, RHS, Instruction::SDiv>(L, R); in m_SDiv()
438 inline BinOp2_match<LHS, RHS, Instruction::SDiv, Instruction::UDiv>
440 return BinOp2_match<LHS, RHS, Instruction::SDiv, Instruction::UDiv>(L, R); in m_IDiv()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DInstruction.cpp116 case SDiv: return "sdiv"; in getOpcodeName()
409 case SDiv: in isSafeToSpeculativelyExecute()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/FuzzMutate/
DOperations.cpp23 Ops.push_back(binOpDescriptor(1, Instruction::SDiv)); in describeFuzzerIntOps()
101 case Instruction::SDiv: in binOpDescriptor()
/external/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp164 case Instruction::SDiv: in getIntImmCost()

1234567