Home
last modified time | relevance | path

Searched refs:urem (Results 1 - 25 of 25) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DAPInt.cpp1062 // Extend the rotate APInt, so that the urem doesn't divide by 0.
1066 rot = rot.urem(APInt(rot.getBitWidth(), BitWidth));
1235 anc = t - 1 - t.urem(ad); // absolute value of nc
1280 nc = allOnes - (allOnes - d).urem(d);
1454 // compute the remainder (urem uses this).
1694 APInt APInt::urem(const APInt &RHS) const {
1732 uint64_t APInt::urem(uint64_t RHS) const {
1767 return -((-(*this)).urem(-RHS));
1768 return -((-(*this)).urem(RHS));
1771 return this->urem(
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
H A DLoads.cpp88 !Offset.urem(APInt(Offset.getBitWidth(), Alignment.value())) in isDereferenceableAndAlignedPointer()
245 if (EltSize.urem(Alignment.value()) != 0) in isDereferenceableAndAlignedInLoop()
H A DDemandedBits.cpp162 uint64_t ShiftAmt = SA->urem(BitWidth); in determineLiveOperandBits()
H A DConstantFolding.cpp2356 unsigned ShAmt = C2->urem(BitWidth); in ConstantFoldScalarCall3()
H A DScalarEvolution.cpp3175 return getZero(LHS->getType()); // X urem 1 --> 0
3186 // Fallback to %a == %x urem %y == %x -<nuw> ((%x udiv %y) *<nuw> %y)
3225 if (!StepInt.urem(DivInt) &&
3239 if (StartC && !DivInt.urem(StepInt) &&
3245 const APInt &StartRem = StartInt.urem(StepInt);
H A DInstructionSimplify.cpp931 /// This applies to all 4 opcodes (sdiv/udiv/srem/urem).
2853 // icmp pred (urem X, Y), Y in simplifyICmpWithBinOp()
2883 // icmp pred X, (urem Y, X) in simplifyICmpWithBinOp()
5271 if (ShAmtC->urem(BitWidth).isNullValue()) in simplifyIntrinsic()
H A DValueTracking.cpp1610 uint64_t ShiftAmt = SA->urem(BitWidth); in computeKnownBitsFromOperator()
5741 // 'urem x, C' produces [0, C). in setLimitsForBinOp()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
H A DAPSInt.h119 *this = urem(RHS); in operator %=()
134 return IsUnsigned ? APSInt(urem(RHS), true) : APSInt(srem(RHS), false); in operator %()
H A DAPInt.h1087 APInt urem(const APInt &RHS) const;
1088 uint64_t urem(uint64_t RHS) const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
H A DAPInt.cpp791 B = APIntOps::urem(A, B); in GreatestCommonDivisor()
1391 anc = t - 1 - t.urem(ad); // absolute value of nc in magic()
1436 nc = allOnes - (allOnes - d).urem(d); in magicu()
1602 // compute the remainder (urem uses this). in KnuthDiv()
1850 APInt APInt::urem(const APInt& RHS) const {
1890 return -((-(*this)).urem(-RHS));
1891 return -((-(*this)).urem(RHS));
1894 return this->urem(-RHS);
1895 return this->urem(RHS);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
H A DAPInt.h909 APInt urem(const APInt &RHS) const;
1921 inline APInt urem(const APInt &LHS, const APInt &RHS) { return LHS.urem(RHS); }
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp375 // key: value of (Offset urem DispConstraint). For DSForm, it can in prepareBaseForDispFormChain()
387 BucketChain.Elements[j].Offset->getAPInt().urem(Form); in prepareBaseForDispFormChain()
521 ((Form == DSForm) && !BasePtrIncSCEV->getAPInt().urem(4) && in rewriteLoadStores()
775 if (Diff && !Diff->getAPInt().urem(Form)) { in alreadyPrepared()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
H A DConstantRange.h397 ConstantRange urem(const ConstantRange &Other) const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp379 return C1.urem(C2); in ConstantFoldBinOp()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
H A DConstantRange.cpp792 return urem(Other);
1137 ConstantRange ConstantRange::urem(const ConstantRange &RHS) const {
H A DConstantFold.cpp1267 return ConstantInt::get(CI1->getContext(), C1V.urem(C2V)); in ConstantFoldBinaryInstruction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp752 // Additional macros to execute binary operations udiv/sdiv/urem/srem since
791 case Instruction::URem: INTEGER_VECTOR_FUNCTION(urem) break;
833 case Instruction::URem: R.IntVal = Src1.IntVal.urem(Src2.IntVal); break;
2083 case Instruction::URem: Dest.IntVal = Op0.IntVal.urem(Op1.IntVal); break;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
H A DLLLexer.cpp847 INSTKEYWORD(urem, URem); INSTKEYWORD(srem, SRem); INSTKEYWORD(frem, FRem); in LexIdentifier()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp431 if (PtrDelta.urem(Stride) != 0) in lookThroughComplexAddresses()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp804 case Instruction::URem:GV.IntVal = LHS.IntVal.urem(RHS.IntVal); break; in getConstantValue()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp729 uint64_t ShiftAmt = SA->urem(BitWidth); in SimplifyDemandedUseBits()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2924 unsigned Amt = C->getAPIntValue().urem(BitWidth);
3760 unsigned RotAmt = C->getAPIntValue().urem(VTBits);
4817 return C1.urem(C2);
H A DTargetLowering.cpp1547 unsigned Amt = SA->getAPIntValue().urem(BitWidth); in SimplifyDemandedBits()
3539 // icmp eq/ne (urem %x, %y), 0 in SimplifySetCC()
3540 // Iff %x has 0 or 1 bits set, and %y has at least 2 bits set, omit 'urem': in SimplifySetCC()
5000 // fold (seteq/ne (urem N, D), 0) -> (setule/ugt (rotr (mul N, P), K), Q) in prepareUREMEqFold()
5119 // If this is a urem by a powers-of-two, avoid the fold since it can be in prepareUREMEqFold()
H A DDAGCombiner.cpp3996 // fold (urem X, -1) -> select(X == -1, 0, x) in visitREM()
4009 // urem instead. Handles (X & 0x0FFFFFFF) %s 16 -> X&15 in visitREM()
4015 // fold (urem x, pow2) -> (and x, pow2-1) in visitREM()
4022 // fold (urem x, (shl pow2, y)) -> (and x, (add (shl pow2, y), -1)) in visitREM()
7411 uint64_t RotAmt = Cst->getAPIntValue().urem(Bitsize); in visitRotate()
8142 uint64_t RotAmt = Cst->getAPIntValue().urem(BitWidth); in visitFunnelShift()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp18549 uint64_t ShiftAmt = APIntShiftAmt.urem(VT.getScalarSizeInBits());
[all...]

Completed in 139 milliseconds