Home
last modified time | relevance | path

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

1234

/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceOperands.cpp35 static bool isOne(Use &Op) { in isOne() function
75 return (isOne(Op) || isZero(Op)) ? nullptr : ConstantInt::get(IntTy, 1); in reduceOperandsOneDeltaPass()
82 if (isOne(Op) || isZero(Op) || isZeroOrOneFP(Op)) in reduceOperandsOneDeltaPass()
/llvm-project-15.0.7/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
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DLoopInfoTest.cpp281 EXPECT_TRUE(StepValue && StepValue->isOne()); in TEST()
340 EXPECT_TRUE(StepValue && StepValue->isOne()); in TEST()
399 EXPECT_TRUE(StepValue && StepValue->isOne()); in TEST()
458 EXPECT_TRUE(StepValue && StepValue->isOne()); in TEST()
517 EXPECT_TRUE(StepValue && StepValue->isOne()); in TEST()
577 EXPECT_TRUE(StepValue && StepValue->isOne()); in TEST()
692 EXPECT_TRUE(StepValue && StepValue->isOne()); in TEST()
871 EXPECT_TRUE(StepValue && StepValue->isOne()); in TEST()
932 EXPECT_TRUE(StepValue && StepValue->isOne()); in TEST()
992 EXPECT_TRUE(StepValue && StepValue->isOne()); in TEST()
[all …]
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DCStringSyntaxChecker.cpp66 bool isOne(const Expr *E) { in isOne() function in __anon52d275540111::WalkAST
139 if (isSizeof(L, DstArg) && isOne(R->IgnoreParenCasts())) in containsBadStrncatPattern()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/
H A DTosaDecomposeDepthwise.cpp48 if (!stride.cast<IntegerAttr>().getValue().isOne()) { in matchAndRewrite()
H A DTosaDecomposeConv2D.cpp44 if (!stride.isOne()) in matchAndRewrite()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DCharUnits.h119 bool isOne() const { return Quantity == 1; } in isOne() function
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopPredication.cpp510 return Step->isOne() || (Step->isAllOnesValue() && EnableCountDownLoop); in isSupportedStep()
673 RC.IV->getStepRecurrence(*SE)->isOne() && in normalizePredicate()
737 if (Step->isOne()) in widenICmpRangeCheck()
901 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.cpp1044 if (!StoreSizeSCEV->isOne()) { in getStartForNegStride()
1682 !((SubOneOp->getOpcode() == Instruction::Sub && Dec->isOne()) || in detectPopcountIdiom()
1703 if (!Inc || !Inc->isOne()) in detectPopcountIdiom()
1798 if (!Shft || !Shft->isOne()) in detectShiftUntilZeroIdiom()
1827 if (!Inc || (!Inc->isOne() && !Inc->isMinusOne())) in detectShiftUntilZeroIdiom()
2086 if (cast<ConstantInt>(CntInst->getOperand(1))->isOne()) { in transformLoopToCountable()
H A DCorrelatedValuePropagation.cpp145 Value *ReplaceWith = CI->isOne() ? S->getTrueValue() : S->getFalseValue(); in processSelect()
503 bool IsIntMinPoison = cast<ConstantInt>(II->getArgOperand(1))->isOne(); in processAbsIntrinsic()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DScalarEvolutionDivision.cpp77 if (Denominator->isOne()) { in divide()
H A DLoopInfo.cpp163 if (CI->isOne()) in getCanonicalInductionVariable()
420 if (!Step || !Step->isOne()) in isCanonical()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp77 bool isOne() const { return isInt() && IntVal == 1; } in isOne() function in __anonbe741ed60111::FAddendCoef
295 if (That.isOne()) in operator *=()
416 if (!BreakNum || Coeff.isOne()) in drillAddendDownOneStep()
484 return CE.isOne() ? Opnd0.getSymVal() : nullptr; in simplify()
710 if (!CE.isMinusOne() && !CE.isOne()) in calcInstrNumber()
734 if (Coeff.isMinusOne() || Coeff.isOne()) { in createAddendVal()
952 if (C->isOne() && Op0->hasOneUse()) { in foldAddWithConstant()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantFold.cpp1017 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1022 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1029 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1106 assert(CI2->isOne()); in ConstantFoldBinaryInstruction()
1926 if (!CI->isOne()) in isInBoundsIndices()
1931 if (!CI || !CI->isOne()) in isInBoundsIndices()
H A DInstruction.cpp676 return cast<ConstantInt>(II->getArgOperand(2))->isOne(); in isVolatile()
678 return cast<ConstantInt>(II->getArgOperand(3))->isOne(); in isVolatile()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DMatrixBuilder.h237 assert(cast<ConstantInt>(Cmp)->isOne() && "Index must be valid!");
H A DConstants.h200 bool isOne() const { return Val.isOne(); } in isOne() function
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp938 if (!N1C || !N1C->isOne()) in combineShiftToAVG()
956 ConstOp->isOne()) { in combineShiftToAVG()
962 ConstOp->isOne()) { in combineShiftToAVG()
968 ConstOp->isOne()) { in combineShiftToAVG()
1901 if (DemandedBits.isOne()) in SimplifyDemandedBits()
3620 return CVal.isOne(); in isConstTrueVal()
3655 return N->isOne(); in isExtendedTrueVal()
4483 } else if (N1C->isOne()) { in SimplifySetCC()
6432 HadOneDivisor |= D.isOne(); in prepareSREMEqFold()
6433 AllDivisorsAreOnes &= D.isOne(); in prepareSREMEqFold()
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToSPIRV/
H A DArithmeticToSPIRV.cpp629 Value isOne = rewriter.create<spirv::IEqualOp>(loc, maskedSrc, mask); in matchAndRewrite() local
633 rewriter.replaceOpWithNewOp<spirv::SelectOp>(op, dstType, isOne, one, zero); in matchAndRewrite()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGCleanup.h328 assert(Var.getAlignment().isOne()); in setActiveFlag()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPInt.h371 bool isOne() const { in isOne() function
378 bool isOneValue() const { return isOne(); } in isOneValue()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp304 if (isa<ConstantInt>(Stride) && cast<ConstantInt>(Stride)->isOne()) in matchStridedRecurrence()

1234