Searched refs:Rem (Results 1 - 19 of 19) sorted by relevance

/freebsd-10-stable/contrib/llvm/include/llvm/Transforms/Utils/
H A DIntegerDivision.h26 /// Generate code to calculate the remainder of two integers, replacing Rem
33 /// @brief Replace Rem with generated code.
34 bool expandRemainder(BinaryOperator *Rem);
46 /// Generate code to calculate the remainder of two integers, replacing Rem
50 /// @brief Replace Rem with generated code.
51 bool expandRemainderUpTo32Bits(BinaryOperator *Rem);
57 /// @brief Replace Rem with generated code.
/freebsd-10-stable/contrib/gdb/
H A Ddjunpack.bat2 Rem
3 Rem WARNING WARNING WARNING: This file needs to have DOS CRLF end-of-line
4 Rem format, or else stock DOS/Windows shells will refuse to run it.
5 Rem
6 Rem This batch file unpacks the GDB distribution while simultaneously
7 Rem renaming some of the files whose names are invalid on DOS or conflict
8 Rem with other file names after truncation to DOS 8+3 namespace.
9 Rem
10 Rem Invoke like this:
11 Rem
[all...]
/freebsd-10-stable/contrib/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp76 void eliminateIVRemainder(BinaryOperator *Rem, Value *IVOperand,
185 void SimplifyIndvar::eliminateIVRemainder(BinaryOperator *Rem, argument
190 if (IVOperand != Rem->getOperand(0))
194 const SCEV *S = SE->getSCEV(Rem->getOperand(0));
195 const SCEV *X = SE->getSCEV(Rem->getOperand(1));
198 const Loop *ICmpLoop = LI->getLoopFor(Rem->getParent());
206 Rem->replaceAllUsesWith(Rem->getOperand(0));
219 ICmpInst *ICmp = new ICmpInst(Rem, ICmpInst::ICMP_EQ,
220 Rem
[all...]
H A DIntegerDivision.cpp326 /// Generate code to calculate the remainder of two integers, replacing Rem with
333 /// @brief Replace Rem with generated code.
334 bool llvm::expandRemainder(BinaryOperator *Rem) { argument
335 assert((Rem->getOpcode() == Instruction::SRem ||
336 Rem->getOpcode() == Instruction::URem) &&
339 IRBuilder<> Builder(Rem);
342 if (Rem->getOpcode() == Instruction::SRem) {
343 Value *Remainder = generateSignedRemainderCode(Rem->getOperand(0),
344 Rem->getOperand(1), Builder);
346 Rem
429 expandRemainderUpTo32Bits(BinaryOperator *Rem) argument
[all...]
/freebsd-10-stable/contrib/llvm/lib/Support/
H A DBlockFrequency.cpp155 uint64_t Rem = Frequency % getEntryFrequency(); local
158 Rem *= 10;
160 OS << Rem / getEntryFrequency();
161 Rem = Rem % getEntryFrequency();
162 } while (Rem >= Eps/2);
/freebsd-10-stable/contrib/llvm/lib/CodeGen/
H A DMachineScheduler.cpp1443 SchedRemainder *Rem; member in struct:__anon5::GenericScheduler::SchedBoundary
1532 DAG(0), SchedModel(0), Rem(0), Available(ID, Name+".A"),
1622 SchedRemainder Rem; member in class:__anon5::GenericScheduler
1706 Rem = rem;
1758 Rem.init(DAG, SchedModel);
1759 Top.init(DAG, SchedModel, &Rem);
1760 Bot.init(DAG, SchedModel, &Rem);
1828 if (Rem.CyclicCritPath == 0 || Rem.CyclicCritPath >= Rem
[all...]
H A DTargetSchedule.cpp42 unsigned Rem = Dividend % Divisor; local
44 Divisor = Rem;
/freebsd-10-stable/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp236 Value *Rem; local
238 Rem = Builder->CreateURem(Op0BO, Op1BO);
240 Rem = Builder->CreateSRem(Op0BO, Op1BO);
241 Rem->takeName(BO);
244 return BinaryOperator::CreateSub(Op0BO, Rem);
245 return BinaryOperator::CreateSub(Rem, Op0BO);
H A DInstCombineSimplifyDemanded.cpp716 if (ConstantInt *Rem = dyn_cast<ConstantInt>(I->getOperand(1))) {
719 if (Rem->isAllOnesValue())
721 APInt RA = Rem->getValue().abs();
H A DInstCombineShifts.cpp47 Value *Rem = Builder->CreateAnd(A, ConstantInt::get(I.getType(), *B-1), local
49 I.setOperand(1, Rem);
/freebsd-10-stable/contrib/llvm/lib/Analysis/
H A DScalarEvolution.cpp6762 const SCEV *Rem = Zero;
6763 const SCEV *Res = findGCD(SE, GCD, Constant, &Rem);
6765 if (Res == One || Rem != Zero) {
6798 const SCEV *Rem = Zero;
6799 const SCEV *Res = findGCD(SE, Expr->getOperand(e - 1 - i), GCD, &Rem);
6807 if (Rem != Zero)
6808 Remainder = SE.getAddExpr(Remainder, Rem);
6826 const SCEV *Rem = Zero;
6827 const SCEV *Res = findGCD(SE, Expr->getOperand(i), GCD, &Rem);
6828 if (Rem !
[all...]
H A DValueTracking.cpp548 if (ConstantInt *Rem = dyn_cast<ConstantInt>(I->getOperand(1))) {
549 APInt RA = Rem->getValue().abs();
585 if (ConstantInt *Rem = dyn_cast<ConstantInt>(I->getOperand(1))) {
586 APInt RA = Rem->getValue();
/freebsd-10-stable/contrib/llvm/lib/Target/R600/
H A DAMDGPUISelLowering.cpp690 // Calculate Rem result:
698 // Rem = (Tmp1 == 0 ? Remainder : Remainder_S_Den)
699 SDValue Rem = DAG.getSelectCC(DL, Tmp1, DAG.getConstant(0, VT), local
702 // Rem = (Remainder_GE_Zero == 0 ? Remainder_A_Den : Rem)
703 Rem = DAG.getSelectCC(DL, Remainder_GE_Zero, DAG.getConstant(0, VT),
704 Remainder_A_Den, Rem, ISD::SETEQ);
707 Ops[1] = Rem;
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/AST/
H A DStmtVisitor.h122 BINOP_FALLBACK(Mul) BINOP_FALLBACK(Div) BINOP_FALLBACK(Rem)
H A DRecursiveASTVisitor.h52 OPERATOR(Mul) OPERATOR(Div) OPERATOR(Rem) \
66 OPERATOR(Mul) OPERATOR(Div) OPERATOR(Rem) OPERATOR(Add) OPERATOR(Sub) \
/freebsd-10-stable/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprScalar.cpp474 HANDLEBINOP(Rem)
2171 // Rem in C can't be a floating point type: C99 6.5.5p2.
3323 COMPOUND_OP(Rem);
/freebsd-10-stable/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2139 if (ConstantSDNode *Rem = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
2140 const APInt &RA = Rem->getAPIntValue().abs();
2163 if (ConstantSDNode *Rem = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
2164 const APInt &RA = Rem->getAPIntValue();
H A DLegalizeDAG.cpp2127 SDValue Rem = DAG.getLoad(RetVT, dl, CallInfo.second, FIPtr,
2130 Results.push_back(Rem);
/freebsd-10-stable/contrib/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp3630 int64_t Rem = StepVal % Size; local
3631 if (Rem)

Completed in 322 milliseconds