Home
last modified time | relevance | path

Searched refs:isOne (Results 1 – 25 of 90) sorted by relevance

1234

/openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/
H A DReduceOperands.cpp48 static bool isOne(Use &Op) { in isOne() function
97 return (isOne(Op) || isZero(Op)) ? nullptr : ConstantInt::get(IntTy, 1); in reduceOperandsOneDeltaPass()
104 if (isOne(Op) || isZero(Op) || isZeroOrOneFP(Op)) in reduceOperandsOneDeltaPass()
/openbsd-src/gnu/llvm/compiler-rt/lib/BlocksRuntime/
H A DBlock_private.h138 BLOCK_EXPORT void _Block_use_GC( void *(*alloc)(const unsigned long, const bool isOne, const bool i…
145 BLOCK_EXPORT void _Block_use_GC5( void *(*alloc)(const unsigned long, const bool isOne, const bool …
H A Druntime.c213 static void *(*_Block_allocator)(const unsigned long, const bool isOne, const bool isObject) = _Blo…
231 void _Block_use_GC( void *(*alloc)(const unsigned long, const bool isOne, const bool isObject), in _Block_use_GC() argument
254 void _Block_use_GC5( void *(*alloc)(const unsigned long, const bool isOne, const bool isObject), in _Block_use_GC5() argument
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DCStringSyntaxChecker.cpp66 bool isOne(const Expr *E) { in isOne() function in __anon8860ca9b0111::WalkAST
139 if (isSizeof(L, DstArg) && isOne(R->IgnoreParenCasts())) in containsBadStrncatPattern()
/openbsd-src/gnu/llvm/llvm/examples/IRTransforms/
H A DSimplifyCFG.cpp154 BasicBlock *RemovedSucc = BI->getSuccessor(CI->isOne()); in eliminateCondBranches_v1()
190 BasicBlock *RemovedSucc = BI->getSuccessor(CI->isOne()); in eliminateCondBranches_v2()
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DDivisionByConstantInfo.cpp76 assert(!D.isZero() && !D.isOne() && "Precondition violation."); in get()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DLoopPredication.cpp519 return Step->isOne() || (Step->isAllOnesValue() && EnableCountDownLoop); in isSupportedStep()
682 RC.IV->getStepRecurrence(*SE)->isOne() && in normalizePredicate()
745 if (Step->isOne()) in widenICmpRangeCheck()
923 if (Step->isOne()) { in parseLoopLatchICmp()
H A DStraightLineStrengthReduce.cpp325 return C.Index->isOne() || C.Index->isMinusOne(); in isSimplestForm()
333 return ((C.Index->isOne() || C.Index->isMinusOne()) && in isSimplestForm()
H A DLoopIdiomRecognize.cpp1045 if (!StoreSizeSCEV->isOne()) { in getStartForNegStride()
1684 !((SubOneOp->getOpcode() == Instruction::Sub && Dec->isOne()) || in detectPopcountIdiom()
1705 if (!Inc || !Inc->isOne()) in detectPopcountIdiom()
1800 if (!Shft || !Shft->isOne()) in detectShiftUntilZeroIdiom()
1829 if (!Inc || (!Inc->isOne() && !Inc->isMinusOne())) in detectShiftUntilZeroIdiom()
2088 if (cast<ConstantInt>(CntInst->getOperand(1))->isOne()) { in transformLoopToCountable()
H A DJumpThreading.cpp268 (CI->isOne() ? BranchProbability::getBranchProbability( in updatePredecessorProfileMetadata()
796 cast<ConstantInt>(I->getOperand(1))->isOne()) { in computeValueKnownInPredecessorsImpl()
982 KnownCond = CI->isOne(); in computeValueKnownInPredecessorsImpl()
2230 } else if (CI->isOne()) { in maybethreadThroughTwoBasicBlocks()
H A DCorrelatedValuePropagation.cpp147 Value *ReplaceWith = CI->isOne() ? S->getTrueValue() : S->getFalseValue(); in processSelect()
503 bool IsIntMinPoison = cast<ConstantInt>(II->getArgOperand(1))->isOne(); in processAbsIntrinsic()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DCharUnits.h125 bool isOne() const { return Quantity == 1; } in isOne() function
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DScalarEvolutionDivision.cpp77 if (Denominator->isOne()) { in divide()
H A DLoopInfo.cpp167 if (CI->isOne()) in getCanonicalInductionVariable()
424 if (!Step || !Step->isOne()) in isCanonical()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DConstantFold.cpp1018 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1023 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1030 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1107 assert(CI2->isOne()); in ConstantFoldBinaryInstruction()
1929 if (!CI->isOne()) in isInBoundsIndices()
1934 if (!CI || !CI->isOne()) in isInBoundsIndices()
H A DInstruction.cpp726 return cast<ConstantInt>(II->getArgOperand(2))->isOne(); in isVolatile()
728 return cast<ConstantInt>(II->getArgOperand(3))->isOne(); in isVolatile()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DMatrixBuilder.h237 assert(cast<ConstantInt>(Cmp)->isOne() && "Index must be valid!");
H A DConstants.h199 bool isOne() const { return Val.isOne(); } in isOne() function
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp77 bool isOne() const { return isInt() && IntVal == 1; } in isOne() function in __anonb54f4bbd0111::FAddendCoef
295 if (That.isOne()) in operator *=()
416 if (!BreakNum || Coeff.isOne()) in drillAddendDownOneStep()
484 return CE.isOne() ? Opnd0.getSymVal() : nullptr; in simplify()
709 if (!CE.isMinusOne() && !CE.isOne()) in calcInstrNumber()
733 if (Coeff.isMinusOne() || Coeff.isOne()) { in createAddendVal()
958 if (C->isOne() && Op0->hasOneUse()) { in foldAddWithConstant()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp942 if (!N1C || !N1C->isOne()) in combineShiftToAVG()
960 ConstOp->isOne()) { in combineShiftToAVG()
966 ConstOp->isOne()) { in combineShiftToAVG()
972 ConstOp->isOne()) { in combineShiftToAVG()
1903 if (DemandedBits.isOne()) in SimplifyDemandedBits()
2154 if (DemandedBits.isOne() && !TLO.LegalOps && !VT.isVector()) in SimplifyDemandedBits()
2615 if (Op.getOpcode() == ISD::SUB && DemandedBits.isOne() && in SimplifyDemandedBits()
2643 if (C && !C->isAllOnes() && !C->isOne() && in SimplifyDemandedBits()
3670 return CVal.isOne(); in isConstTrueVal()
3705 return N->isOne(); in isExtendedTrueVal()
[all …]
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGCleanup.h328 assert(Var.getAlignment().isOne()); in setActiveFlag()
/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DAPInt.h378 bool isOne() const { in isOne() function
385 bool isOneValue() const { return isOne(); } in isOneValue()
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h1609 bool isOne() const { return Value->isOne(); }
2740 return !cast<ConstantSDNode>(getScale())->isOne();
2824 return !cast<ConstantSDNode>(getScale())->isOne();
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp313 if (isa<ConstantInt>(Stride) && cast<ConstantInt>(Stride)->isOne()) in matchStridedRecurrence()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DVPlanRecipes.cpp715 return StartC && StartC->isZero() && StepC && StepC->isOne(); in isCanonical()
1069 Step->isOne(); in isCanonical()

1234