Home
last modified time | relevance | path

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

1234

/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp66 Value *SRem = Builder.CreateSub(Xored, DividendSign); in generateSignedRemainderCode() local
71 return SRem; in generateSignedRemainderCode()
377 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainder()
389 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainder()
487 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainderUpTo32Bits()
512 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainderUpTo32Bits()
536 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainderUpTo64Bits()
560 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainderUpTo64Bits()
DBypassSlowDivision.cpp223 bool UseRemOp = Opcode == Instruction::SRem || Opcode == Instruction::URem; in bypassSlowDivision()
225 Opcode == Instruction::SRem; in bypassSlowDivision()
/external/llvm/unittests/Transforms/Utils/
DIntegerDivision.cpp83 TEST(IntegerDivision, SRem) { in TEST() argument
102 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SRem); in TEST()
223 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SRem); in TEST()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1370 case Instruction::SRem: in visitICmpInstWithInstAndIntCst()
2339 BinaryOperator *SRem = NULL; in visitICmpInst() local
2341 if (BO0 && BO0->getOpcode() == Instruction::SRem && in visitICmpInst()
2343 SRem = BO0; in visitICmpInst()
2345 else if (BO1 && BO1->getOpcode() == Instruction::SRem && in visitICmpInst()
2347 SRem = BO1; in visitICmpInst()
2348 if (SRem) { in visitICmpInst()
2351 switch (SRem == BO0 ? ICmpInst::getSwappedPredicate(Pred) : Pred) { in visitICmpInst()
2359 return new ICmpInst(ICmpInst::ICMP_SGT, SRem->getOperand(1), in visitICmpInst()
2360 Constant::getAllOnesValue(SRem->getType())); in visitICmpInst()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DSimplifyIndVar.cpp253 bool IsSigned = Rem->getOpcode() == Instruction::SRem; in eliminateIVUser()
422 bool IsSigned = Rem->getOpcode() == Instruction::SRem; in simplifyIVUsers()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DInstruction.cpp119 case SRem: return "srem"; in getOpcodeName()
410 case SRem: { in isSafeToSpeculativelyExecute()
DConstantFold.cpp1043 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1093 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1198 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1237 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1353 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1452 case Instruction::SRem: in ConstantFoldBinaryInstruction()
/external/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp166 case Instruction::SRem: in getIntImmCost()
/external/swiftshader/third_party/subzero/pnacl-llvm/
DNaClBitcodeDecoders.cpp95 LLVMOpcode = Ty->isFPOrFPVectorTy() ? Instruction::FRem : Instruction::SRem; in DecodeBinaryOpcode()
/external/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp96 case Instruction::SRem: in createReplacementInstr()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2207 case Instruction::SRem: in visitICmpInstWithInstAndIntCst()
3972 BinaryOperator *SRem = nullptr; in visitICmpInst() local
3974 if (BO0 && BO0->getOpcode() == Instruction::SRem && in visitICmpInst()
3976 SRem = BO0; in visitICmpInst()
3978 else if (BO1 && BO1->getOpcode() == Instruction::SRem && in visitICmpInst()
3980 SRem = BO1; in visitICmpInst()
3981 if (SRem) { in visitICmpInst()
3984 switch (SRem == BO0 ? ICmpInst::getSwappedPredicate(Pred) : Pred) { in visitICmpInst()
3992 return new ICmpInst(ICmpInst::ICMP_SGT, SRem->getOperand(1), in visitICmpInst()
3993 Constant::getAllOnesValue(SRem->getType())); in visitICmpInst()
[all …]
DInstCombineVectorOps.cpp660 case Instruction::SRem: in CanEvaluateShuffled()
723 case Instruction::SRem: in buildNew()
823 case Instruction::SRem: in EvaluateInDifferentElementOrder()
/external/spirv-llvm/lib/SPIRV/libSPIRV/
DSPIRVOpCodeEnum.h128 _SPIRV_OP(SRem, 138)
/external/swiftshader/third_party/LLVM/lib/Target/CBackend/
DCBackend.cpp810 case Instruction::SRem: in printConstant()
831 case Instruction::SRem: in printConstant()
1140 case Instruction::SRem: in printConstExprCast()
1206 case Instruction::SRem: in printConstantWithCast()
1350 case Instruction::SRem: in writeInstructionCast()
1396 case Instruction::SRem: // Cast to signed first in writeOperandWithCast()
2563 case Instruction::SRem: in visitBinaryOperator()
/external/swiftshader/third_party/LLVM/include/llvm/
DInstruction.def119 HANDLE_BINARY_INST(19, SRem , BinaryOperator)
/external/spirv-llvm/lib/SPIRV/
DSPIRVInternal.h118 _SPIRV_OP(SRem, SRem) in init()
/external/llvm/include/llvm/IR/
DInstruction.def134 HANDLE_BINARY_INST(21, SRem , BinaryOperator)
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DInstruction.def134 HANDLE_BINARY_INST(21, SRem , BinaryOperator)
/external/llvm/lib/IR/
DConstantFold.cpp961 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1040 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1143 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1173 case Instruction::SRem: in ConstantFoldBinaryInstruction()
1262 case Instruction::SRem: in ConstantFoldBinaryInstruction()
DInstruction.cpp284 case SRem: return "srem"; in getOpcodeName()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DPatternMatch.h351 inline BinaryOp_match<LHS, RHS, Instruction::SRem>
353 return BinaryOp_match<LHS, RHS, Instruction::SRem>(L, R); in m_SRem()
/external/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp433 case Instruction::SRem: in runImpl()
/external/llvm/lib/Analysis/
DCostModel.cpp401 case Instruction::SRem: in getInstructionCost()
/external/llvm/include/llvm/Analysis/
DTargetTransformInfoImpl.h68 case Instruction::SRem: in getOperationCost()
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/
DExecutionEngine.cpp685 case Instruction::SRem: in getConstantValue()
703 case Instruction::SRem:GV.IntVal = LHS.IntVal.srem(RHS.IntVal); break; in getConstantValue()

1234