Home
last modified time | relevance | path

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

12

/minix/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/
H A 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()
H A DBypassSlowDivision.cpp234 bool UseRemOp = Opcode == Instruction::SRem || Opcode == Instruction::URem; in bypassSlowDivision()
236 Opcode == Instruction::SRem; in bypassSlowDivision()
H A DSimplifyIndVar.cpp253 bool IsSigned = Rem->getOpcode() == Instruction::SRem; in eliminateIVUser()
/minix/external/bsd/llvm/dist/llvm/unittests/Transforms/Utils/
H A 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()
/minix/external/bsd/llvm/dist/llvm/lib/Transforms/ObjCARC/
H A DObjCARCUtil.cpp220 case Instruction::SRem: case Instruction::URem: case Instruction::FRem: in GetInstructionClass()
/minix/external/bsd/llvm/dist/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp95 case Instruction::SRem: in createReplacementInstr()
/minix/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp1765 case Instruction::SRem: in visitICmpInstWithInstAndIntCst()
3318 BinaryOperator *SRem = nullptr; in visitICmpInst() local
3320 if (BO0 && BO0->getOpcode() == Instruction::SRem && in visitICmpInst()
3322 SRem = BO0; in visitICmpInst()
3324 else if (BO1 && BO1->getOpcode() == Instruction::SRem && in visitICmpInst()
3326 SRem = BO1; in visitICmpInst()
3327 if (SRem) { in visitICmpInst()
3330 switch (SRem == BO0 ? ICmpInst::getSwappedPredicate(Pred) : Pred) { in visitICmpInst()
3338 return new ICmpInst(ICmpInst::ICMP_SGT, SRem->getOperand(1), in visitICmpInst()
3342 return new ICmpInst(ICmpInst::ICMP_SLT, SRem->getOperand(1), in visitICmpInst()
[all …]
H A DInstCombineVectorOps.cpp619 case Instruction::SRem: in CanEvaluateShuffled()
682 case Instruction::SRem: in BuildNew()
781 case Instruction::SRem: in EvaluateInDifferentElementOrder()
/minix/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DInstruction.def118 HANDLE_BINARY_INST(18, SRem , BinaryOperator)
H A DPatternMatch.h491 inline BinaryOp_match<LHS, RHS, Instruction::SRem> m_SRem(const LHS &L, in m_SRem()
493 return BinaryOp_match<LHS, RHS, Instruction::SRem>(L, R); in m_SRem()
/minix/external/bsd/llvm/dist/llvm/lib/Analysis/
H A DCostModel.cpp405 case Instruction::SRem: in getInstructionCost()
H A DInstructionSimplify.cpp1180 if ((Opcode == Instruction::SRem && in SimplifyRem()
1205 if (Value *V = SimplifyRem(Instruction::SRem, Op0, Op1, Q, MaxRecurse)) in SimplifySRemInst()
3412 case Instruction::SRem: return SimplifySRemInst(LHS, RHS, Q, MaxRecurse); in SimplifyBinOp()
3614 case Instruction::SRem: in SimplifyInstruction()
/minix/external/bsd/llvm/dist/llvm/lib/IR/
H A DInstruction.cpp206 case SRem: return "srem"; in getOpcodeName()
H A DConstantFold.cpp942 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1008 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1112 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1142 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1231 case Instruction::SRem: in ConstantFoldBinaryInstruction()
H A DConstants.cpp332 case Instruction::SRem: in canTrapImpl()
1879 case Instruction::SRem: in get()
2277 return get(Instruction::SRem, C1, C2); in getSRem()
/minix/external/bsd/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp218 case Instruction::SRem: in getIntImmCost()
/minix/external/bsd/llvm/dist/llvm/lib/Target/PowerPC/
H A DPPCCTRLoops.cpp386 J->getOpcode() == Instruction::SRem)) { in mightUseCTR()
/minix/external/bsd/llvm/dist/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp699 case Instruction::SRem: in getConstantValue()
717 case Instruction::SRem:GV.IntVal = LHS.IntVal.srem(RHS.IntVal); break; in getConstantValue()
/minix/external/bsd/llvm/dist/llvm/lib/Target/CppBackend/
H A DCPPBackend.cpp876 case Instruction::SRem: Out << "getSRem("; break; in printConstant()
1224 case Instruction::SRem: in printInstruction()
1244 case Instruction::SRem:Out << "Instruction::SRem"; break; in printInstruction()
/minix/minix/llvm/passes/asr/
H A DASRPass.cpp525 …BinaryOperator *Remainder = BinaryOperator::Create(Instruction::SRem, RandFuncCall, max_offset_con… in runOnModule()
/minix/external/bsd/llvm/dist/llvm/lib/AsmParser/
H A DLLLexer.cpp696 INSTKEYWORD(urem, URem); INSTKEYWORD(srem, SRem); INSTKEYWORD(frem, FRem); in LexIdentifier()
/minix/external/bsd/llvm/dist/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp347 case 5:{Op = (isFloat?Instruction::FRem : Instruction::SRem); break; } in Act()
/minix/external/bsd/llvm/dist/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp738 case Instruction::SRem: INTEGER_VECTOR_FUNCTION(srem) break; in visitBinaryOperator()
780 case Instruction::SRem: R.IntVal = Src1.IntVal.srem(Src2.IntVal); break; in visitBinaryOperator()
2036 case Instruction::SRem: Dest.IntVal = Op0.IntVal.srem(Op1.IntVal); break; in getConstantExprValue()
/minix/external/bsd/llvm/dist/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp1665 case Instruction::SRem: in lowerConstant()
1678 case Instruction::SRem: return MCBinaryExpr::CreateMod(LHS, RHS, Ctx); in lowerConstant()
/minix/external/bsd/llvm/dist/llvm/lib/Target/X86/
H A DX86FastISel.cpp1607 case Instruction::SRem: OpIndex = 1; break; in X86SelectDivRem()
1664 if ((I->getOpcode() == Instruction::SRem || in X86SelectDivRem()
3036 case Instruction::SRem: in fastSelectInstruction()

12