Home
last modified time | relevance | path

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

123

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp59 Value *SRem = Builder.CreateSub(Xored, DividendSign); in generateSignedRemainderCode() local
64 return SRem; in generateSignedRemainderCode()
355 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainder()
364 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainder()
457 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainderUpTo32Bits()
482 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainderUpTo32Bits()
506 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainderUpTo64Bits()
528 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainderUpTo64Bits()
H A DBypassSlowDivision.cpp92 SlowDivOrRem->getOpcode() == Instruction::SRem; in isSignedOp()
116 case Instruction::SRem: in FastDivInsertionTask()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeDivRem.cpp54 return Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in isSigned()
73 case Instruction::SRem: { in runImpl()
H A DTypePromotion.cpp203 Opc == Instruction::SRem || Opc == Instruction::SExt; in GenerateSignBits()
H A DExpandVectorPredication.cpp276 case Instruction::SRem: in expandPredicationInBinaryOperator()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanAnalysis.cpp65 case Instruction::SRem: in inferScalarTypeForRecipe()
131 case Instruction::SRem: in inferScalarTypeForRecipe()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DDivRemPairs.cpp106 case Instruction::SRem: in isRemExpanded()
135 else if (I.getOpcode() == Instruction::SRem) in getWorklist()
H A DCorrelatedValuePropagation.cpp684 Instr->getOpcode() == Instruction::SRem); in narrowSDivOrSRem()
866 assert(SDI->getOpcode() == Instruction::SRem); in processSRem()
982 Instr->getOpcode() == Instruction::SRem); in processSDivOrSRem()
995 if (Instr->getOpcode() == Instruction::SRem) { in processSDivOrSRem()
1163 case Instruction::SRem: in runImpl()
H A DGVNSink.cpp462 case Instruction::SRem: in lookupOrAdd()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h333 case Instruction::SRem: // X % 1 = 0 in getSafeVectorConstantForBinop()
351 case Instruction::SRem: // 0 % X = 0 in getSafeVectorConstantForBinop()
/freebsd-14.2/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOperations.cpp24 Ops.push_back(binOpDescriptor(1, Instruction::SRem)); in describeFuzzerIntOps()
127 case Instruction::SRem: in binOpDescriptor()
H A DIRMutator.cpp299 case Instruction::SRem: in mutate()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp741 case Instruction::SRem: in ConstantFoldBinaryInstruction()
812 case Instruction::SRem: in ConstantFoldBinaryInstruction()
914 case Instruction::SRem: in ConstantFoldBinaryInstruction()
944 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1056 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1684 ConstantFoldBinaryInstruction(Instruction::SRem, CurrIdx, Factor); in ConstantFoldGetElementPtr()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp393 I.getOpcode() == Instruction::SDiv || I.getOpcode() == Instruction::SRem; in isSigned()
469 I.getOpcode() == Instruction::SRem || in promoteUniformOpToI32()
1372 Opc == Instruction::SRem || Opc == Instruction::SDiv); in expandDivRem32()
1382 bool IsSigned = Opc == Instruction::SRem || Opc == Instruction::SDiv; in expandDivRem32()
1501 bool IsSigned = Opc == Instruction::SDiv || Opc == Instruction::SRem; in shrinkDivRem64()
1531 if (Opc == Instruction::URem || Opc == Instruction::SRem) { in expandDivRem64()
1559 Opc == Instruction::SRem || Opc == Instruction::SDiv) && in visitBinaryOperator()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp2542 if (!SRem->hasOneUse()) in foldICmpSRemConstant()
2546 if (!match(SRem->getOperand(1), m_Power2(DivisorC))) in foldICmpSRemConstant()
2558 Type *Ty = SRem->getType(); in foldICmpSRemConstant()
2561 Value *And = Builder.CreateAnd(SRem->getOperand(0), MaskC); in foldICmpSRemConstant()
3365 case Instruction::SRem: in foldICmpBinOpEqualityWithConstant()
3711 case Instruction::SRem: in foldICmpBinOpWithConstant()
4897 BinaryOperator *SRem = nullptr; in foldICmpBinOp() local
4900 SRem = BO0; in foldICmpBinOp()
4902 else if (BO1 && BO1->getOpcode() == Instruction::SRem && in foldICmpBinOp()
4904 SRem = BO1; in foldICmpBinOp()
[all …]
H A DInstCombineVectorOps.cpp1773 case Instruction::SRem: in canEvaluateShuffled()
1855 case Instruction::SRem: in buildNew()
1949 case Instruction::SRem: in evaluateInDifferentElementOrder()
/freebsd-14.2/contrib/llvm-project/lldb/source/Expression/
H A DIRInterpreter.cpp626 case Instruction::SRem: in CanInterpret()
773 case Instruction::SRem: in Interpret()
847 case Instruction::SRem: in Interpret()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.def157 HANDLE_BINARY_INST(23, SRem , BinaryOperator)
H A DInstruction.h269 return Opcode == UDiv || Opcode == SDiv || Opcode == URem || Opcode == SRem;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp205 case Instruction::SRem: in getIntImmCostInst()
449 Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in getArithmeticInstrCost()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h548 case Instruction::SRem:
1205 case Instruction::SRem: in getInstructionCost()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DObjCARCInstKind.cpp261 case Instruction::SRem: in GetARCInstKind()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp793 case Instruction::SRem: in getConstantValue()
811 case Instruction::SRem:GV.IntVal = LHS.IntVal.srem(RHS.IntVal); break; in getConstantValue()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp398 case 5:{Op = (isFloat?Instruction::FRem : Instruction::SRem); break; } in Act()
/freebsd-14.2/contrib/llvm-project/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