Home
last modified time | relevance | path

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

123

/freebsd-12.1/contrib/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()
389 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainder()
487 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainderUpTo32Bits()
512 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainderUpTo32Bits()
536 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainderUpTo64Bits()
560 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainderUpTo64Bits()
H A DBypassSlowDivision.cpp95 SlowDivOrRem->getOpcode() == Instruction::SRem; in isSignedOp()
119 case Instruction::SRem: in FastDivInsertionTask()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp204 I.getOpcode() == Instruction::SDiv || I.getOpcode() == Instruction::SRem; in isSigned()
273 I.getOpcode() == Instruction::SRem || in promoteUniformOpToI32()
614 Opc == Instruction::SRem || Opc == Instruction::SDiv); in expandDivRem32()
624 bool IsSigned = Opc == Instruction::SRem || Opc == Instruction::SDiv; in expandDivRem32()
765 Opc == Instruction::SRem || Opc == Instruction::SDiv) && in visitBinaryOperator()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DDivRemPairs.cpp66 else if (I.getOpcode() == Instruction::SRem) in optimizeDivRem()
H A DCorrelatedValuePropagation.cpp714 case Instruction::SRem: in runImpl()
H A DGVNSink.cpp455 case Instruction::SRem: in lookupOrAdd()
/freebsd-12.1/contrib/llvm/lib/FuzzMutate/
H A DOperations.cpp25 Ops.push_back(binOpDescriptor(1, Instruction::SRem)); in describeFuzzerIntOps()
103 case Instruction::SRem: in binOpDescriptor()
/freebsd-12.1/contrib/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp96 case Instruction::SRem: in createReplacementInstr()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp2636 case Instruction::SRem: in foldICmpBinOpEqualityWithConstant()
3323 BinaryOperator *SRem = nullptr; in foldICmpBinOp() local
3326 SRem = BO0; in foldICmpBinOp()
3328 else if (BO1 && BO1->getOpcode() == Instruction::SRem && in foldICmpBinOp()
3330 SRem = BO1; in foldICmpBinOp()
3331 if (SRem) { in foldICmpBinOp()
3334 switch (SRem == BO0 ? ICmpInst::getSwappedPredicate(Pred) : Pred) { in foldICmpBinOp()
3343 return new ICmpInst(ICmpInst::ICMP_SGT, SRem->getOperand(1), in foldICmpBinOp()
3344 Constant::getAllOnesValue(SRem->getType())); in foldICmpBinOp()
3347 return new ICmpInst(ICmpInst::ICMP_SLT, SRem->getOperand(1), in foldICmpBinOp()
[all …]
H A DInstCombineInternal.h237 case Instruction::SRem: // X % 1 = 0 in getSafeVectorConstantForBinop()
254 case Instruction::SRem: // 0 % X = 0 in getSafeVectorConstantForBinop()
H A DInstCombineVectorOps.cpp983 case Instruction::SRem: in canEvaluateShuffled()
1053 case Instruction::SRem: in buildNew()
1151 case Instruction::SRem: in evaluateInDifferentElementOrder()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DInstruction.h154 return Opcode == UDiv || Opcode == SDiv || Opcode == URem || Opcode == SRem;
H A DInstruction.def157 HANDLE_BINARY_INST(22, SRem , BinaryOperator)
/freebsd-12.1/contrib/llvm/lib/IR/
H A DConstantFold.cpp966 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1053 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1156 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1186 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1278 case Instruction::SRem: in ConstantFoldBinaryInstruction()
H A DInstruction.cpp320 case SRem: return "srem"; in getOpcodeName()
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp166 case Instruction::SRem: in getIntImmCost()
374 Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in getArithmeticInstrCost()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Expression/
H A DIRInterpreter.cpp589 case Instruction::SRem: in CanInterpret()
709 case Instruction::SRem: in Interpret()
775 case Instruction::SRem: in Interpret()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DCFLGraph.h570 case Instruction::SRem: in visitConstantExpr()
H A DObjCARCInstKind.cpp262 case Instruction::SRem: in GetARCInstKind()
H A DInstructionSimplify.cpp1092 if ((Opcode == Instruction::SRem && in simplifyRem()
1100 ((Opcode == Instruction::SRem && in simplifyRem()
1119 if (isDivZero(Op0, Op1, Q, MaxRecurse, Opcode == Instruction::SRem)) in simplifyRem()
1165 return simplifyRem(Instruction::SRem, Op0, Op1, Q, MaxRecurse); in SimplifySRemInst()
2614 case Instruction::SRem: in setLimitsForBinOp()
4740 case Instruction::SRem: in SimplifyBinOp()
5243 case Instruction::SRem: in SimplifyInstruction()
/freebsd-12.1/contrib/llvm/lib/Target/PowerPC/
H A DPPCCTRLoops.cpp443 J->getOpcode() == Instruction::SRem)) { in mightUseCTR()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp788 case Instruction::SRem: in getConstantValue()
806 case Instruction::SRem:GV.IntVal = LHS.IntVal.srem(RHS.IntVal); break; in getConstantValue()
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h69 case Instruction::SRem: in getOperationCost()
/freebsd-12.1/contrib/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp401 case 5:{Op = (isFloat?Instruction::FRem : Instruction::SRem); break; } in Act()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/Interpreter/
H A 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()
2031 case Instruction::SRem: Dest.IntVal = Op0.IntVal.srem(Op1.IntVal); break; in getConstantExprValue()

123