Home
last modified time | relevance | path

Searched refs:Rem (Results 1 – 25 of 77) sorted by relevance

1234

/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp376 bool llvm::expandRemainder(BinaryOperator *Rem) { in expandRemainder() argument
377 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainder()
378 Rem->getOpcode() == Instruction::URem) && in expandRemainder()
381 IRBuilder<> Builder(Rem); in expandRemainder()
383 assert(!Rem->getType()->isVectorTy() && "Div over vectors not supported"); in expandRemainder()
384 assert((Rem->getType()->getIntegerBitWidth() == 32 || in expandRemainder()
385 Rem->getType()->getIntegerBitWidth() == 64) && in expandRemainder()
389 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainder()
390 Value *Remainder = generateSignedRemainderCode(Rem->getOperand(0), in expandRemainder()
391 Rem->getOperand(1), Builder); in expandRemainder()
[all …]
DSimplifyIndVar.cpp76 void eliminateIVRemainder(BinaryOperator *Rem, Value *IVOperand,
270 void SimplifyIndvar::eliminateIVRemainder(BinaryOperator *Rem, in eliminateIVRemainder() argument
275 if (IVOperand != Rem->getOperand(0)) in eliminateIVRemainder()
279 const SCEV *S = SE->getSCEV(Rem->getOperand(0)); in eliminateIVRemainder()
280 const SCEV *X = SE->getSCEV(Rem->getOperand(1)); in eliminateIVRemainder()
283 const Loop *ICmpLoop = LI->getLoopFor(Rem->getParent()); in eliminateIVRemainder()
291 Rem->replaceAllUsesWith(Rem->getOperand(0)); in eliminateIVRemainder()
303 ICmpInst *ICmp = new ICmpInst(Rem, ICmpInst::ICMP_EQ, in eliminateIVRemainder()
304 Rem->getOperand(0), Rem->getOperand(1)); in eliminateIVRemainder()
307 ConstantInt::get(Rem->getType(), 0), in eliminateIVRemainder()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp376 bool llvm::expandRemainder(BinaryOperator *Rem) { in expandRemainder() argument
377 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainder()
378 Rem->getOpcode() == Instruction::URem) && in expandRemainder()
381 IRBuilder<> Builder(Rem); in expandRemainder()
383 assert(!Rem->getType()->isVectorTy() && "Div over vectors not supported"); in expandRemainder()
384 assert((Rem->getType()->getIntegerBitWidth() == 32 || in expandRemainder()
385 Rem->getType()->getIntegerBitWidth() == 64) && in expandRemainder()
389 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainder()
390 Value *Remainder = generateSignedRemainderCode(Rem->getOperand(0), in expandRemainder()
391 Rem->getOperand(1), Builder); in expandRemainder()
[all …]
DSimplifyIndVar.cpp88 void simplifyIVRemainder(BinaryOperator *Rem, Value *IVOperand,
90 void replaceRemWithNumerator(BinaryOperator *Rem);
91 void replaceRemWithNumeratorOrZero(BinaryOperator *Rem);
92 void replaceSRemWithURem(BinaryOperator *Rem);
310 void SimplifyIndvar::replaceSRemWithURem(BinaryOperator *Rem) { in replaceSRemWithURem() argument
311 auto *N = Rem->getOperand(0), *D = Rem->getOperand(1); in replaceSRemWithURem()
313 Rem->getName() + ".urem", Rem); in replaceSRemWithURem()
314 Rem->replaceAllUsesWith(URem); in replaceSRemWithURem()
315 LLVM_DEBUG(dbgs() << "INDVARS: Simplified srem: " << *Rem << '\n'); in replaceSRemWithURem()
318 DeadInsts.emplace_back(Rem); in replaceSRemWithURem()
[all …]
/external/llvm/lib/Support/
DBranchProbability.cpp93 uint64_t Rem = (uint64_t(Upper32) << 32) | Mid32; in scale() local
94 uint64_t UpperQ = Rem / D; in scale()
100 Rem = ((Rem % D) << 32) | Lower32; in scale()
101 uint64_t LowerQ = Rem / D; in scale()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/
DIntegerDivision.cpp101 Value *Rem = Builder.CreateSRem(A, B); in TEST() local
104 Value *Ret = Builder.CreateRet(Rem); in TEST()
106 expandRemainder(cast<BinaryOperator>(Rem)); in TEST()
131 Value *Rem = Builder.CreateURem(A, B); in TEST() local
134 Value *Ret = Builder.CreateRet(Rem); in TEST()
136 expandRemainder(cast<BinaryOperator>(Rem)); in TEST()
222 Value *Rem = Builder.CreateSRem(A, B); in TEST() local
225 Value *Ret = Builder.CreateRet(Rem); in TEST()
227 expandRemainder(cast<BinaryOperator>(Rem)); in TEST()
252 Value *Rem = Builder.CreateURem(A, B); in TEST() local
[all …]
/external/llvm/unittests/Transforms/Utils/
DIntegerDivision.cpp101 Value *Rem = Builder.CreateSRem(A, B); in TEST() local
104 Value *Ret = Builder.CreateRet(Rem); in TEST()
106 expandRemainder(cast<BinaryOperator>(Rem)); in TEST()
131 Value *Rem = Builder.CreateURem(A, B); in TEST() local
134 Value *Ret = Builder.CreateRet(Rem); in TEST()
136 expandRemainder(cast<BinaryOperator>(Rem)); in TEST()
222 Value *Rem = Builder.CreateSRem(A, B); in TEST() local
225 Value *Ret = Builder.CreateRet(Rem); in TEST()
227 expandRemainder(cast<BinaryOperator>(Rem)); in TEST()
252 Value *Rem = Builder.CreateURem(A, B); in TEST() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DBranchProbability.cpp96 uint64_t Rem = (uint64_t(Upper32) << 32) | Mid32; in scale() local
97 uint64_t UpperQ = Rem / D; in scale()
103 Rem = ((Rem % D) << 32) | Lower32; in scale()
104 uint64_t LowerQ = Rem / D; in scale()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/
DIntegerDivision.h33 bool expandRemainder(BinaryOperator *Rem);
50 bool expandRemainderUpTo32Bits(BinaryOperator *Rem);
56 bool expandRemainderUpTo64Bits(BinaryOperator *Rem);
/external/llvm/include/llvm/Transforms/Utils/
DIntegerDivision.h33 bool expandRemainder(BinaryOperator *Rem);
50 bool expandRemainderUpTo32Bits(BinaryOperator *Rem);
56 bool expandRemainderUpTo64Bits(BinaryOperator *Rem);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DMachineScheduler.cpp1885 Rem = rem; in init()
2007 unsigned OtherCritCount = Rem->RemIssueCount in getOtherResourceCount()
2013 unsigned OtherCount = getResourceCount(PIdx) + Rem->RemainingCounts[PIdx]; in getOtherResourceCount()
2113 assert(Rem->RemainingCounts[PIdx] >= Count && "resource double counted"); in countResource()
2114 Rem->RemainingCounts[PIdx] -= Count; in countResource()
2182 assert(Rem->RemIssueCount >= DecRemIssue && "MOps double counted"); in bumpNode()
2183 Rem->RemIssueCount -= DecRemIssue; in bumpNode()
2442 if (IsPostRA || (RemLatency + CurrZone.getCurrCycle() > Rem.CriticalPath)) { in setPolicy()
2447 << Rem.CriticalPath << "\n"); in setPolicy()
2624 Rem.init(DAG, SchedModel); in initialize()
[all …]
DTargetSchedule.cpp51 unsigned Rem = Dividend % Divisor; in gcd() local
53 Divisor = Rem; in gcd()
/external/llvm/lib/CodeGen/
DMachineScheduler.cpp1811 Rem = rem; in init()
1922 unsigned OtherCritCount = Rem->RemIssueCount in getOtherResourceCount()
1928 unsigned OtherCount = getResourceCount(PIdx) + Rem->RemainingCounts[PIdx]; in getOtherResourceCount()
2043 assert(Rem->RemainingCounts[PIdx] >= Count && "resource double counted"); in countResource()
2044 Rem->RemainingCounts[PIdx] -= Count; in countResource()
2111 assert(Rem->RemIssueCount >= DecRemIssue && "MOps double counted"); in bumpNode()
2112 Rem->RemIssueCount -= DecRemIssue; in bumpNode()
2359 if (IsPostRA || (RemLatency + CurrZone.getCurrCycle() > Rem.CriticalPath)) { in setPolicy()
2364 << Rem.CriticalPath << "\n"); in setPolicy()
2542 Rem.init(DAG, SchedModel); in initialize()
[all …]
DTargetSchedule.cpp41 unsigned Rem = Dividend % Divisor; in gcd() local
43 Divisor = Rem; in gcd()
/external/python/pybind11/include/pybind11/detail/
Ddescr.h57 template <size_t Rem, size_t... Digits> struct int_to_str : int_to_str<Rem/10, Rem%10, Digits...> {…
/external/rust/crates/syn/0.15.42/src/
Dop.rs17 Rem(Token![%]),
115 input.parse().map(BinOp::Rem) in parse_binop()
194 BinOp::Rem(ref t) => t.to_tokens(tokens), in to_tokens()
/external/rust/crates/syn/1.0.7/src/
Dop.rs17 Rem(Token![%]),
115 input.parse().map(BinOp::Rem) in parse_binop()
194 BinOp::Rem(t) => t.to_tokens(tokens), in to_tokens()
/external/angle/third_party/glslang/src/Test/
Dspv.specConstantOperations.vert36 // Mul, Div and Rem
86 // Mul, Div and Rem
/external/deqp-deps/glslang/Test/
Dspv.specConstantOperations.vert36 // Mul, Div and Rem
86 // Mul, Div and Rem
/external/tensorflow/tensorflow/compiler/xla/tests/
Dscalar_computations_test.cc268 Rem(ConstantR0<float>(&builder, 2.5f), ConstantR0<float>(&builder, 5.0f)); in XLA_TEST_F()
300 Rem(ConstantR0<int32>(&builder, p.dividend), in XLA_TEST_P()
330 Rem(dividend, divisor); in XLA_TEST_P()
422 Rem(dividend, divisor); in XLA_TEST_F()
452 Rem(x, ConstantR0<int32>(&builder, 80000)); in XLA_TEST_F()
471 Rem(ConstantR0<uint32>(&builder, 11), ConstantR0<uint32>(&builder, 3)); in XLA_TEST_F()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dbinary_ops.cc180 auto trunc_mod = xla::Rem(x, y); in FloorModImpl()
201 XLA_MAKE_BINARY(Mod, xla::Rem(lhs, rhs, extend_dimensions));
217 XLA_MAKE_BINARY(TruncateMod, xla::Rem(lhs, rhs, extend_dimensions));
/external/llvm/include/llvm/CodeGen/
DMachineScheduler.h582 SchedRemainder *Rem; variable
651 DAG(nullptr), SchedModel(nullptr), Rem(nullptr), Available(ID, Name+".A"), in SchedBoundary()
863 SchedRemainder Rem; variable
/external/swiftshader/tests/kokoro/gcp_windows/
Dcontinuous.bat40 Rem Incrementally build and run rr::Print unit tests
/external/tensorflow/tensorflow/compiler/xla/service/mlir_gpu/tests/
Dmlir_gpu_lhlo_gen_test.cc466 TEST_F(LhloGenTest, Rem) { in TEST_F() argument
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp1316 SDValue Rem = DAG.getNode(ISD::MUL, DL, VT, Div, RHS); in LowerDIVREM24() local
1317 Rem = DAG.getNode(ISD::SUB, DL, VT, LHS, Rem); in LowerDIVREM24()
1324 Rem = DAG.getNode(ISD::SIGN_EXTEND_INREG, DL, VT, Rem, InRegSize); in LowerDIVREM24()
1328 Rem = DAG.getNode(ISD::AND, DL, VT, Rem, TruncMask); in LowerDIVREM24()
1331 return DAG.getMergeValues({ Div, Rem }, DL); in LowerDIVREM24()
1514 SDValue Rem = DAG.getSelectCC(DL, Tmp1, DAG.getConstant(0, DL, VT), in LowerUDIVREM() local
1518 Rem = DAG.getSelectCC(DL, Remainder_GE_Zero, DAG.getConstant(0, DL, VT), in LowerUDIVREM()
1519 Remainder_A_Den, Rem, ISD::SETEQ); in LowerUDIVREM()
1522 Rem in LowerUDIVREM()
1572 SDValue Rem = Div.getValue(1); in LowerSDIVREM() local
[all …]

1234