Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DCStringSyntaxChecker.cpp66 bool isOne(const Expr *E) { in isOne() function in __anonb84c804f0111::WalkAST
139 if (isSizeof(L, DstArg) && isOne(R->IgnoreParenCasts())) in containsBadStrncatPattern()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/IRTransforms/
H A DSimplifyCFG.cpp156 BasicBlock *RemovedSucc = BI->getSuccessor(CI->isOne()); in eliminateCondBranches_v1()
192 BasicBlock *RemovedSucc = BI->getSuccessor(CI->isOne()); in eliminateCondBranches_v2()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopPredication.cpp503 return Step->isOne() || (Step->isAllOnesValue() && EnableCountDownLoop); in isSupportedStep()
665 RC.IV->getStepRecurrence(*SE)->isOne() && in normalizePredicate()
729 if (Step->isOne()) in widenICmpRangeCheck()
893 if (Step->isOne()) { in parseLoopLatchICmp()
H A DStraightLineStrengthReduce.cpp326 return C.Index->isOne() || C.Index->isMinusOne(); in isSimplestForm()
334 return ((C.Index->isOne() || C.Index->isMinusOne()) && in isSimplestForm()
H A DLoopIdiomRecognize.cpp1491 !((SubOneOp->getOpcode() == Instruction::Sub && Dec->isOne()) || in detectPopcountIdiom()
1514 if (!Inc || !Inc->isOne()) in detectPopcountIdiom()
1609 if (!Shft || !Shft->isOne()) in detectShiftUntilZeroIdiom()
1640 if (!Inc || (!Inc->isOne() && !Inc->isMinusOne())) in detectShiftUntilZeroIdiom()
1899 if (cast<ConstantInt>(CntInst->getOperand(1))->isOne()) { in transformLoopToCountable()
H A DIndVarSimplify.cpp873 if (!Step || !Step->isOne()) in isLoopCounter()
1005 ->getElementType())->isOne() && in genLoopLimit()
1023 assert(AR->getStepRecurrence(*SE)->isOne() && "only handles unit stride"); in genLoopLimit()
H A DCorrelatedValuePropagation.cpp139 Value *ReplaceWith = CI->isOne() ? S->getTrueValue() : S->getFalseValue(); in processSelect()
453 bool IsIntMinPoison = cast<ConstantInt>(II->getArgOperand(1))->isOne(); in processAbsIntrinsic()
H A DJumpThreading.cpp272 (CI->isOne() ? BranchProbability::getBranchProbability( in updatePredecessorProfileMetadata()
784 cast<ConstantInt>(I->getOperand(1))->isOne()) { in computeValueKnownInPredecessorsImpl()
967 KnownCond = CI->isOne(); in computeValueKnownInPredecessorsImpl()
2196 } else if (CI->isOne()) { in maybethreadThroughTwoBasicBlocks()
H A DLowerMatrixIntrinsics.cpp867 cast<ConstantInt>(Inst->getArgOperand(2))->isOne(), in LowerColumnMajorLoad()
935 cast<ConstantInt>(Inst->getArgOperand(3))->isOne(), in LowerColumnMajorStore()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DConstantFold.cpp688 bool isOne = isa<ConstantInt>(Idx) && cast<ConstantInt>(Idx)->isOne(); in ConstantFoldCastInstruction() local
689 if (Constant *C = getFoldedSizeOf(Ty, DestTy, !isOne)) { in ConstantFoldCastInstruction()
701 if (CI->isOne() && in ConstantFoldCastInstruction()
1264 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1269 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1276 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1353 assert(CI2->isOne()); in ConstantFoldBinaryInstruction()
2325 if (!CI->isOne()) in isInBoundsIndices()
2330 if (!CI || !CI->isOne()) in isInBoundsIndices()
H A DInstruction.cpp643 return cast<ConstantInt>(II->getArgOperand(2))->isOne(); in isVolatile()
645 return cast<ConstantInt>(II->getArgOperand(3))->isOne(); in isVolatile()
H A DModule.cpp564 return Val && cast<ConstantInt>(Val->getValue())->isOne(); in isDwarf64()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DCharUnits.h119 bool isOne() const { return Quantity == 1; } in isOne() function
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DScalarEvolutionDivision.cpp79 if (Denominator->isOne()) { in divide()
H A DLoopInfo.cpp167 if (CI->isOne()) in getCanonicalInductionVariable()
423 if (!Step || !Step->isOne()) in isCanonical()
H A DScalarEvolution.cpp413 bool SCEV::isOne() const { in isOne() function in SCEV
415 return SC->getValue()->isOne(); in isOne()
533 if (CI->isOne()) { in isSizeOf()
555 if (CI->isOne() && in isAlignOf()
2864 if (LHSC->getValue()->isOne()) { in getMulExpr()
3102 if (RHSC->getValue()->isOne()) in getURemExpr()
3137 if (RHSC->getValue()->isOne()) in getUDivExpr()
4348 bool IsOne = cast<SCEVConstant>(Res.getValue())->getValue()->isOne(); in visitUnknown()
5440 return getSCEV(CI->isOne() ? TrueVal : FalseVal); in createNodeForSelectOrPHI()
6887 /*IsNSW=*/cast<ConstantInt>(II->getArgOperand(1))->isOne()); in createSCEV()
[all …]
H A DLint.cpp406 !cast<ConstantInt>(UnderlyingObject)->isOne(), in visitMemoryReference()
H A DMemoryBuiltins.cpp544 cast<ConstantInt>(ObjectSize->getArgOperand(2))->isOne(); in lowerObjectSizeCall()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp77 bool isOne() const { return isInt() && IntVal == 1; } in isOne() function in __anon0831a0f10111::FAddendCoef
295 if (That.isOne()) in operator *=()
416 if (!BreakNum || Coeff.isOne()) in drillAddendDownOneStep()
484 return CE.isOne() ? Opnd0.getSymVal() : nullptr; in simplify()
724 if (!CE.isMinusOne() && !CE.isOne()) in calcInstrNumber()
748 if (Coeff.isMinusOne() || Coeff.isOne()) { in createAddendVal()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGCleanup.h328 assert(Var.getAlignment().isOne()); in setActiveFlag()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUAtomicOptimizer.cpp450 return (CI && CI->isOne()) ? RHS : B.CreateMul(LHS, RHS); in buildMul()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DScaledNumber.h544 bool isOne() const { in isOne() function
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationLegality.cpp519 ID.getConstIntStepValue() && ID.getConstIntStepValue()->isOne() && in addInductionPhi()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h1555 bool isOne() const { return Value->isOne(); }
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DConstants.h198 bool isOne() const { return Val.isOneValue(); } in isOne() function

123