Home
last modified time | relevance | path

Searched refs:SRem (Results 1 – 25 of 73) 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()
456 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainderUpTo32Bits()
481 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainderUpTo32Bits()
505 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainderUpTo64Bits()
527 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainderUpTo64Bits()
H A DBypassSlowDivision.cpp91 SlowDivOrRem->getOpcode() == Instruction::SRem; in isSignedOp()
115 case Instruction::SRem: in FastDivInsertionTask()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeDivRem.cpp53 return Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in isSigned()
96 case Instruction::SRem: { in runImpl()
H A DExpandVectorPredication.cpp254 case Instruction::SRem: in expandPredicationInBinaryOperator()
H A DTypePromotion.cpp204 Opc == Instruction::SRem || Opc == Instruction::SExt; in GenerateSignBits()
/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.cpp771 Instr->getOpcode() == Instruction::SRem); in narrowSDivOrSRem()
948 assert(SDI->getOpcode() == Instruction::SRem); in processSRem()
1064 Instr->getOpcode() == Instruction::SRem); in processSDivOrSRem()
1074 if (Instr->getOpcode() == Instruction::SRem) { in processSDivOrSRem()
1286 case Instruction::SRem: in runImpl()
H A DGVNSink.cpp414 case Instruction::SRem: in lookupOrAdd()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h291 case Instruction::SRem: // X % 1 = 0 in getSafeVectorConstantForBinop()
309 case Instruction::SRem: // 0 % X = 0 in getSafeVectorConstantForBinop()
/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()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp401 I.getOpcode() == Instruction::SDiv || I.getOpcode() == Instruction::SRem; in isSigned()
476 I.getOpcode() == Instruction::SRem || in promoteUniformOpToI32()
1394 Opc == Instruction::SRem || Opc == Instruction::SDiv); in expandDivRem32()
1404 bool IsSigned = Opc == Instruction::SRem || Opc == Instruction::SDiv; in expandDivRem32()
1522 bool IsSigned = Opc == Instruction::SDiv || Opc == Instruction::SRem; in shrinkDivRem64()
1552 if (Opc == Instruction::URem || Opc == Instruction::SRem) { in expandDivRem64()
1657 Opc == Instruction::SRem || Opc == Instruction::SDiv) && in visitBinaryOperator()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DValues.def103 OP(SRem) \
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp669 case Instruction::SRem: in ConstantFoldBinaryInstruction()
740 case Instruction::SRem: in ConstantFoldBinaryInstruction()
820 case Instruction::SRem: in ConstantFoldBinaryInstruction()
949 case Instruction::SRem: in ConstantFoldBinaryInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/SandboxVectorizer/
H A DLegality.cpp138 case Instruction::Opcode::SRem: in notVectorizableBasedOnOpcodesAndTypes()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp2670 BinaryOperator *SRem, in foldICmpSRemConstant() argument
2681 if (!match(SRem->getOperand(1), m_APInt(DivisorC))) in foldICmpSRemConstant()
2697 Type *Ty = SRem->getType(); in foldICmpSRemConstant()
2699 return new ICmpInst(ICmpInst::ICMP_SLT, SRem, in foldICmpSRemConstant()
2701 return new ICmpInst(ICmpInst::ICMP_SGT, SRem, in foldICmpSRemConstant()
2714 if (!SRem->hasOneUse()) in foldICmpSRemConstant()
2718 if (!match(SRem->getOperand(1), m_Power2(DivisorC))) in foldICmpSRemConstant()
2730 Type *Ty = SRem->getType(); in foldICmpSRemConstant()
2733 Value *And = Builder.CreateAnd(SRem->getOperand(0), MaskC); in foldICmpSRemConstant()
3621 case Instruction::SRem: in foldICmpBinOpEqualityWithConstant()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DIRInterpreter.cpp622 case Instruction::SRem: in CanInterpret()
770 case Instruction::SRem: in Interpret()
842 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.h343 return Opcode == UDiv || Opcode == SDiv || Opcode == URem || Opcode == SRem;
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DObjCARCInstKind.cpp261 case Instruction::SRem: in GetARCInstKind()
H A DHashRecognize.cpp168 case Instruction::BinaryOps::SRem: in computeBinOp()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/
H A DBottomUpVec.cpp130 case Instruction::Opcode::SRem: in createVectorInstr()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp288 case Instruction::SRem: in getIntImmCostInst()
569 Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in getArithmeticInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp792 case Instruction::SRem: in getConstantValue()
810 case Instruction::SRem:GV.IntVal = LHS.IntVal.srem(RHS.IntVal); break; in getConstantValue()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h685 case Instruction::SRem:
1421 case Instruction::SRem: in getInstructionCost()
/freebsd/contrib/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp386 case 5:{Op = (isFloat?Instruction::FRem : Instruction::SRem); break; } in Act()

123