Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp65 Value *SRem = Builder.CreateSub(Xored, DividendSign); in generateSignedRemainderCode() local
70 return SRem; in generateSignedRemainderCode()
376 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainder()
388 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainder()
486 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainderUpTo32Bits()
511 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainderUpTo32Bits()
535 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainderUpTo64Bits()
559 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainderUpTo64Bits()
H A DBypassSlowDivision.cpp94 SlowDivOrRem->getOpcode() == Instruction::SRem; in isSignedOp()
118 case Instruction::SRem: in FastDivInsertionTask()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DDivRemPairs.cpp108 case Instruction::SRem: in isRemExpanded()
137 else if (I.getOpcode() == Instruction::SRem) in getWorklist()
H A DCorrelatedValuePropagation.cpp674 Instr->getOpcode() == Instruction::SRem); in narrowSDivOrSRem()
769 assert(SDI->getOpcode() == Instruction::SRem); in processSRem()
878 Instr->getOpcode() == Instruction::SRem); in processSDivOrSRem()
886 if (Instr->getOpcode() == Instruction::SRem) in processSDivOrSRem()
1047 case Instruction::SRem: in runImpl()
H A DGVNSink.cpp458 case Instruction::SRem: in lookupOrAdd()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp248 I.getOpcode() == Instruction::SDiv || I.getOpcode() == Instruction::SRem; in isSigned()
319 I.getOpcode() == Instruction::SRem || in promoteUniformOpToI32()
1018 Opc == Instruction::SRem || Opc == Instruction::SDiv); in expandDivRem32()
1028 bool IsSigned = Opc == Instruction::SRem || Opc == Instruction::SDiv; in expandDivRem32()
1147 bool IsSigned = Opc == Instruction::SDiv || Opc == Instruction::SRem; in shrinkDivRem64()
1177 if (Opc == Instruction::URem || Opc == Instruction::SRem) { in expandDivRem64()
1205 Opc == Instruction::SRem || Opc == Instruction::SDiv) && in visitBinaryOperator()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DReplaceConstant.cpp40 case Instruction::SRem: in createReplacementInstr()
H A DConstantFold.cpp1186 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1275 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1398 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1428 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1533 case Instruction::SRem: in ConstantFoldBinaryInstruction()
H A DInstruction.cpp347 case SRem: return "srem"; in getOpcodeName()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h316 case Instruction::SRem: // X % 1 = 0 in getSafeVectorConstantForBinop()
334 case Instruction::SRem: // 0 % X = 0 in getSafeVectorConstantForBinop()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/FuzzMutate/
H A DOperations.cpp24 Ops.push_back(binOpDescriptor(1, Instruction::SRem)); in describeFuzzerIntOps()
102 case Instruction::SRem: in binOpDescriptor()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp2306 BinaryOperator *SRem, in foldICmpSRemConstant() argument
2318 if (!SRem->hasOneUse()) in foldICmpSRemConstant()
2322 if (!C.isNullValue() || !match(SRem->getOperand(1), m_Power2(DivisorC))) in foldICmpSRemConstant()
2326 Type *Ty = SRem->getType(); in foldICmpSRemConstant()
2329 Value *And = Builder.CreateAnd(SRem->getOperand(0), MaskC); in foldICmpSRemConstant()
2932 case Instruction::SRem: in foldICmpInstWithConstant()
2998 case Instruction::SRem: in foldICmpBinOpEqualityWithConstant()
4019 BinaryOperator *SRem = nullptr; in foldICmpBinOp() local
4021 if (BO0 && BO0->getOpcode() == Instruction::SRem && Op1 == BO0->getOperand(1)) in foldICmpBinOp()
4022 SRem = BO0; in foldICmpBinOp()
[all …]
H A DInstCombineVectorOps.cpp1486 case Instruction::SRem: in canEvaluateShuffled()
1568 case Instruction::SRem: in buildNew()
1658 case Instruction::SRem: in evaluateInDifferentElementOrder()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DExpandVectorPredication.cpp238 case Instruction::SRem: in expandPredicationInBinaryOperator()
H A DTypePromotion.cpp204 Opc == Instruction::SRem || Opc == Instruction::SExt; in GenerateSignBits()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DVPIntrinsics.def131 HELPER_REGISTER_BINARY_INT_VP(vp_srem, VP_SREM, SRem)
H A DInstruction.def157 HANDLE_BINARY_INST(23, SRem , BinaryOperator)
H A DInstruction.h191 return Opcode == UDiv || Opcode == SDiv || Opcode == URem || Opcode == SRem;
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h462 case Instruction::SRem:
979 case Instruction::SRem: in getUserCost()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp168 case Instruction::SRem: in getIntImmCostInst()
413 Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in getArithmeticInstrCost()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DCFLGraph.h578 case Instruction::SRem: in visitConstantExpr()
H A DObjCARCInstKind.cpp261 case Instruction::SRem: in GetARCInstKind()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp781 case Instruction::SRem: in getConstantValue()
799 case Instruction::SRem:GV.IntVal = LHS.IntVal.srem(RHS.IntVal); break; in getConstantValue()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp400 case 5:{Op = (isFloat?Instruction::FRem : Instruction::SRem); break; } in Act()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp794 case Instruction::SRem: INTEGER_VECTOR_FUNCTION(srem) break; in visitBinaryOperator()
836 case Instruction::SRem: R.IntVal = Src1.IntVal.srem(Src2.IntVal); break; in visitBinaryOperator()
2080 case Instruction::SRem: Dest.IntVal = Op0.IntVal.srem(Op1.IntVal); break; in getConstantExprValue()

123