Home
last modified time | relevance | path

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

123

/freebsd/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/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeDivRem.cpp54 return Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in isSigned()
97 case Instruction::SRem: { in runImpl()
H A DTypePromotion.cpp204 Opc == Instruction::SRem || Opc == Instruction::SExt; in GenerateSignBits()
H A DExpandVectorPredication.cpp276 case Instruction::SRem: in expandPredicationInBinaryOperator()
/freebsd/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.cpp749 Instr->getOpcode() == Instruction::SRem); in narrowSDivOrSRem()
928 assert(SDI->getOpcode() == Instruction::SRem); in processSRem()
1044 Instr->getOpcode() == Instruction::SRem); in processSDivOrSRem()
1054 if (Instr->getOpcode() == Instruction::SRem) { in processSDivOrSRem()
1233 case Instruction::SRem: in runImpl()
H A DGVNSink.cpp495 case Instruction::SRem: in lookupOrAdd()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanAnalysis.cpp97 case Instruction::SRem: in inferScalarTypeForRecipe()
163 case Instruction::SRem: in inferScalarTypeForRecipe()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h295 case Instruction::SRem: // X % 1 = 0 in getSafeVectorConstantForBinop()
313 case Instruction::SRem: // 0 % X = 0 in getSafeVectorConstantForBinop()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp674 case Instruction::SRem: in ConstantFoldBinaryInstruction()
745 case Instruction::SRem: in ConstantFoldBinaryInstruction()
831 case Instruction::SRem: in ConstantFoldBinaryInstruction()
861 case Instruction::SRem: in ConstantFoldBinaryInstruction()
973 case Instruction::SRem: in ConstantFoldBinaryInstruction()
/freebsd/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.cpp300 case Instruction::SRem: in mutate()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp395 I.getOpcode() == Instruction::SDiv || I.getOpcode() == Instruction::SRem; in isSigned()
471 I.getOpcode() == Instruction::SRem || in promoteUniformOpToI32()
1377 Opc == Instruction::SRem || Opc == Instruction::SDiv); in expandDivRem32()
1387 bool IsSigned = Opc == Instruction::SRem || Opc == Instruction::SDiv; in expandDivRem32()
1506 bool IsSigned = Opc == Instruction::SDiv || Opc == Instruction::SRem; in shrinkDivRem64()
1536 if (Opc == Instruction::URem || Opc == Instruction::SRem) { in expandDivRem64()
1564 Opc == Instruction::SRem || Opc == Instruction::SDiv) && in visitBinaryOperator()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp2620 BinaryOperator *SRem, in foldICmpSRemConstant() argument
2633 if (!SRem->hasOneUse()) in foldICmpSRemConstant()
2637 if (!match(SRem->getOperand(1), m_Power2(DivisorC))) in foldICmpSRemConstant()
2649 Type *Ty = SRem->getType(); in foldICmpSRemConstant()
2652 Value *And = Builder.CreateAnd(SRem->getOperand(0), MaskC); in foldICmpSRemConstant()
3474 case Instruction::SRem: in foldICmpBinOpEqualityWithConstant()
3823 case Instruction::SRem: in foldICmpBinOpWithConstant()
5228 BinaryOperator *SRem = nullptr; in foldICmpBinOp() local
5230 if (BO0 && BO0->getOpcode() == Instruction::SRem && Op1 == BO0->getOperand(1)) in foldICmpBinOp()
5231 SRem = BO0; in foldICmpBinOp()
[all …]
H A DInstCombineVectorOps.cpp1781 case Instruction::SRem: in canEvaluateShuffled()
1863 case Instruction::SRem: in buildNew()
1957 case Instruction::SRem: in evaluateInDifferentElementOrder()
/freebsd/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/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.def157 HANDLE_BINARY_INST(23, SRem , BinaryOperator)
H A DInstruction.h304 return Opcode == UDiv || Opcode == SDiv || Opcode == URem || Opcode == SRem;
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp209 case Instruction::SRem: in getIntImmCostInst()
453 Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in getArithmeticInstrCost()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h569 case Instruction::SRem:
1248 case Instruction::SRem: in getInstructionCost()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DObjCARCInstKind.cpp261 case Instruction::SRem: in GetARCInstKind()
/freebsd/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/contrib/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp398 case 5:{Op = (isFloat?Instruction::FRem : Instruction::SRem); break; } in Act()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLLexer.cpp863 INSTKEYWORD(urem, URem); INSTKEYWORD(srem, SRem); INSTKEYWORD(frem, FRem); in LexIdentifier()

123