Home
last modified time | relevance | path

Searched refs:SRem (Results 1 – 25 of 49) sorted by relevance

12

/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp66 Value *SRem = Builder.CreateSub(Xored, DividendSign); in generateSignedRemainderCode() local
71 return SRem; in generateSignedRemainderCode()
377 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainder()
393 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainder()
490 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainderUpTo32Bits()
516 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainderUpTo32Bits()
540 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainderUpTo64Bits()
566 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainderUpTo64Bits()
DBypassSlowDivision.cpp234 bool UseRemOp = Opcode == Instruction::SRem || Opcode == Instruction::URem; in bypassSlowDivision()
236 Opcode == Instruction::SRem; in bypassSlowDivision()
DSimplifyIndVar.cpp246 bool IsSigned = Rem->getOpcode() == Instruction::SRem; in eliminateIVUser()
/external/llvm/unittests/Transforms/Utils/
DIntegerDivision.cpp83 TEST(IntegerDivision, SRem) { in TEST() argument
102 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SRem); in TEST()
223 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SRem); in TEST()
/external/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp166 case Instruction::SRem: in getIntImmCost()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1756 case Instruction::SRem: in visitICmpInstWithInstAndIntCst()
3390 BinaryOperator *SRem = nullptr; in visitICmpInst() local
3392 if (BO0 && BO0->getOpcode() == Instruction::SRem && in visitICmpInst()
3394 SRem = BO0; in visitICmpInst()
3396 else if (BO1 && BO1->getOpcode() == Instruction::SRem && in visitICmpInst()
3398 SRem = BO1; in visitICmpInst()
3399 if (SRem) { in visitICmpInst()
3402 switch (SRem == BO0 ? ICmpInst::getSwappedPredicate(Pred) : Pred) { in visitICmpInst()
3410 return new ICmpInst(ICmpInst::ICMP_SGT, SRem->getOperand(1), in visitICmpInst()
3411 Constant::getAllOnesValue(SRem->getType())); in visitICmpInst()
[all …]
DInstCombineVectorOps.cpp620 case Instruction::SRem: in CanEvaluateShuffled()
683 case Instruction::SRem: in BuildNew()
783 case Instruction::SRem: in EvaluateInDifferentElementOrder()
/external/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp96 case Instruction::SRem: in createReplacementInstr()
/external/lldb/source/Expression/
DIRInterpreter.cpp517 case Instruction::SRem: in CanInterpret()
622 case Instruction::SRem: in Interpret()
689 case Instruction::SRem: in Interpret()
/external/llvm/include/llvm/IR/
DInstruction.def118 HANDLE_BINARY_INST(18, SRem , BinaryOperator)
DPatternMatch.h494 inline BinaryOp_match<LHS, RHS, Instruction::SRem> m_SRem(const LHS &L, in m_SRem()
496 return BinaryOp_match<LHS, RHS, Instruction::SRem>(L, R); in m_SRem()
/external/llvm/lib/IR/
DConstantFold.cpp954 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1020 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1124 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1154 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1243 case Instruction::SRem: in ConstantFoldBinaryInstruction()
DInstruction.cpp206 case SRem: return "srem"; in getOpcodeName()
/external/llvm/lib/Analysis/
DCostModel.cpp406 case Instruction::SRem: in getInstructionCost()
DValueTracking.cpp1250 case Instruction::SRem: in computeKnownBits()
1914 case Instruction::SRem: { in ComputeNumSignBits()
2832 case Instruction::SRem: { in isSafeToSpeculativelyExecute()
DInstructionSimplify.cpp1183 if ((Opcode == Instruction::SRem && in SimplifyRem()
1208 if (Value *V = SimplifyRem(Instruction::SRem, Op0, Op1, Q, MaxRecurse)) in SimplifySRemInst()
3449 case Instruction::SRem: return SimplifySRemInst(LHS, RHS, Q, MaxRecurse); in SimplifyBinOp()
3680 case Instruction::SRem: in SimplifyInstruction()
/external/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.cpp92 case Instruction::SRem: in getIntImmCost()
/external/llvm/lib/Transforms/ObjCARC/
DARCInstKind.cpp274 case Instruction::SRem: in GetARCInstKind()
/external/llvm/lib/Target/PowerPC/
DPPCCTRLoops.cpp387 J->getOpcode() == Instruction::SRem)) { in mightUseCTR()
/external/llvm/lib/Target/CppBackend/
DCPPBackend.cpp879 case Instruction::SRem: Out << "getSRem("; break; in printConstant()
1227 case Instruction::SRem: in printInstruction()
1247 case Instruction::SRem:Out << "Instruction::SRem"; break; in printInstruction()
/external/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp767 case Instruction::SRem: in getConstantValue()
785 case Instruction::SRem:GV.IntVal = LHS.IntVal.srem(RHS.IntVal); break; in getConstantValue()
/external/llvm/lib/AsmParser/
DLLLexer.cpp705 INSTKEYWORD(urem, URem); INSTKEYWORD(srem, SRem); INSTKEYWORD(frem, FRem); in LexIdentifier()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp739 case Instruction::SRem: INTEGER_VECTOR_FUNCTION(srem) break; in visitBinaryOperator()
781 case Instruction::SRem: R.IntVal = Src1.IntVal.srem(Src2.IntVal); break; in visitBinaryOperator()
2037 case Instruction::SRem: Dest.IntVal = Op0.IntVal.srem(Op1.IntVal); break; in getConstantExprValue()
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp347 case 5:{Op = (isFloat?Instruction::FRem : Instruction::SRem); break; } in Act()
/external/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinter.cpp1765 case Instruction::SRem: in lowerConstant()
1778 case Instruction::SRem: return MCBinaryExpr::CreateMod(LHS, RHS, Ctx); in lowerConstant()

12