Home
last modified time | relevance | path

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

1234

/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp64 Value *SRem = Builder.CreateSub(Xored, DividendSign); in generateSignedRemainderCode() local
69 return SRem; in generateSignedRemainderCode()
375 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainder()
387 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainder()
485 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainderUpTo32Bits()
510 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainderUpTo32Bits()
534 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainderUpTo64Bits()
558 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainderUpTo64Bits()
H A DBypassSlowDivision.cpp94 SlowDivOrRem->getOpcode() == Instruction::SRem; in isSignedOp()
118 case Instruction::SRem: in FastDivInsertionTask()
/llvm-project-15.0.7/polly/lib/Support/
H A DSCEVValidator.cpp413 ValidatorResult visitSRemInstruction(Instruction *SRem, const SCEV *S) { in visitSRemInstruction() argument
414 assert(SRem->getOpcode() == Instruction::SRem && in visitSRemInstruction()
417 auto *Divisor = SRem->getOperand(1); in visitSRemInstruction()
420 return visitGenericInst(SRem, S); in visitSRemInstruction()
422 auto *Dividend = SRem->getOperand(0); in visitSRemInstruction()
448 case Instruction::SRem: in visitUnknown()
557 if (!Inst || (Inst->getOpcode() != Instruction::SRem && in follow()
H A DSCEVAffinator.cpp528 PWACtx SCEVAffinator::visitSRemInstruction(Instruction *SRem) { in visitSRemInstruction() argument
529 assert(SRem->getOpcode() == Instruction::SRem && "Assumed SRem instruction!"); in visitSRemInstruction()
532 auto *Divisor = SRem->getOperand(1); in visitSRemInstruction()
538 auto *Dividend = SRem->getOperand(0); in visitSRemInstruction()
552 case Instruction::SRem: in visitUnknown()
/llvm-project-15.0.7/mlir/test/Conversion/SPIRVToLLVM/
H A Darithmetic-ops-to-llvm.mlir220 // spv.SRem
226 %0 = spv.SRem %arg0, %arg1 : i32
233 %0 = spv.SRem %arg0, %arg1 : vector<4xi32>
/llvm-project-15.0.7/mlir/test/Dialect/SPIRV/IR/
H A Darithmetic-ops.mlir241 // spv.SRem
245 // CHECK: spv.SRem
246 %0 = spv.SRem %arg, %arg : i32
/llvm-project-15.0.7/mlir/test/Target/SPIRV/
H A Darithmetic-ops.mlir80 // CHECK: {{%.*}} = spv.SRem {{%.*}}, {{%.*}} : vector<4xi32>
81 %0 = spv.SRem %arg0, %arg1 : vector<4xi32>
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DIntegerDivisionTest.cpp82 TEST(IntegerDivision, SRem) { in TEST() argument
101 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SRem); in TEST()
222 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SRem); in TEST()
/llvm-project-15.0.7/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.cpp724 Instr->getOpcode() == Instruction::SRem); in narrowSDivOrSRem()
818 assert(SDI->getOpcode() == Instruction::SRem); in processSRem()
927 Instr->getOpcode() == Instruction::SRem); in processSDivOrSRem()
935 if (Instr->getOpcode() == Instruction::SRem) in processSDivOrSRem()
1108 case Instruction::SRem: in runImpl()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp254 I.getOpcode() == Instruction::SDiv || I.getOpcode() == Instruction::SRem; in isSigned()
325 I.getOpcode() == Instruction::SRem || in promoteUniformOpToI32()
1065 Opc == Instruction::SRem || Opc == Instruction::SDiv); in expandDivRem32()
1075 bool IsSigned = Opc == Instruction::SRem || Opc == Instruction::SDiv; in expandDivRem32()
1194 bool IsSigned = Opc == Instruction::SDiv || Opc == Instruction::SRem; in shrinkDivRem64()
1224 if (Opc == Instruction::URem || Opc == Instruction::SRem) { in expandDivRem64()
1252 Opc == Instruction::SRem || Opc == Instruction::SDiv) && in visitBinaryOperator()
/llvm-project-15.0.7/polly/include/polly/Support/
H A DSCEVAffinator.h117 PWACtx visitSRemInstruction(llvm::Instruction *SRem);
/llvm-project-15.0.7/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h325 case Instruction::SRem: // X % 1 = 0 in getSafeVectorConstantForBinop()
343 case Instruction::SRem: // 0 % X = 0 in getSafeVectorConstantForBinop()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVArithmeticOps.td545 def SPV_SRemOp : SPV_ArithmeticBinaryOp<"SRem",
569 srem-op ::= ssa-id `=` `spv.SRem` ssa-use, ssa-use
575 %4 = spv.SRem %0, %1 : i32
576 %5 = spv.SRem %2, %3 : vector<4xi32>
/llvm-project-15.0.7/llvm/lib/FuzzMutate/
H A DOperations.cpp24 Ops.push_back(binOpDescriptor(1, Instruction::SRem)); in describeFuzzerIntOps()
102 case Instruction::SRem: in binOpDescriptor()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp2429 if (!SRem->hasOneUse()) in foldICmpSRemConstant()
2433 if (!match(SRem->getOperand(1), m_Power2(DivisorC))) in foldICmpSRemConstant()
2445 Type *Ty = SRem->getType(); in foldICmpSRemConstant()
2448 Value *And = Builder.CreateAnd(SRem->getOperand(0), MaskC); in foldICmpSRemConstant()
3163 case Instruction::SRem: in foldICmpBinOpEqualityWithConstant()
3427 case Instruction::SRem: in foldICmpBinOpWithConstant()
4373 BinaryOperator *SRem = nullptr; in foldICmpBinOp() local
4376 SRem = BO0; in foldICmpBinOp()
4378 else if (BO1 && BO1->getOpcode() == Instruction::SRem && in foldICmpBinOp()
4380 SRem = BO1; in foldICmpBinOp()
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantFold.cpp939 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1028 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1151 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1181 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1295 case Instruction::SRem: in ConstantFoldBinaryInstruction()
2231 ConstantFoldBinaryInstruction(Instruction::SRem, CurrIdx, Factor); in ConstantFoldGetElementPtr()
/llvm-project-15.0.7/lldb/source/Expression/
H A DIRInterpreter.cpp589 case Instruction::SRem: in CanInterpret()
705 case Instruction::SRem: in Interpret()
769 case Instruction::SRem: in Interpret()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstruction.def157 HANDLE_BINARY_INST(23, SRem , BinaryOperator)
H A DInstruction.h189 return Opcode == UDiv || Opcode == SDiv || Opcode == URem || Opcode == SRem;
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DConvertFromLLVMIR.cpp621 INST(SRem, SRem), in lookupOperationNameFromOpcode()
802 case llvm::Instruction::SRem: in processInstruction()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp204 case Instruction::SRem: in getIntImmCostInst()
450 Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in getArithmeticInstrCost()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h495 case Instruction::SRem:
1041 case Instruction::SRem: in getUserCost()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DConstantsTest.cpp96 ConstantFoldBinaryInstruction(Instruction::SRem, NegOne, One)); in TEST()
101 ConstantFoldBinaryInstruction(Instruction::SRem, One, NegOne)); in TEST()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DCFLGraph.h579 case Instruction::SRem: in visitConstantExpr()

1234