| /llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/ |
| H A D | ReduceOperands.cpp | 35 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 D | Block_private.h | 138 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 D | runtime.c | 213 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 D | LoopInfoTest.cpp | 281 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 D | CStringSyntaxChecker.cpp | 66 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 D | SimplifyCFG.cpp | 156 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 D | TosaDecomposeDepthwise.cpp | 48 if (!stride.cast<IntegerAttr>().getValue().isOne()) { in matchAndRewrite()
|
| H A D | TosaDecomposeConv2D.cpp | 44 if (!stride.isOne()) in matchAndRewrite()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | CharUnits.h | 119 bool isOne() const { return Quantity == 1; } in isOne() function
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopPredication.cpp | 510 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 D | StraightLineStrengthReduce.cpp | 325 return C.Index->isOne() || C.Index->isMinusOne(); in isSimplestForm() 333 return ((C.Index->isOne() || C.Index->isMinusOne()) && in isSimplestForm()
|
| H A D | LoopIdiomRecognize.cpp | 1044 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 D | CorrelatedValuePropagation.cpp | 145 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 D | ScalarEvolutionDivision.cpp | 77 if (Denominator->isOne()) { in divide()
|
| H A D | LoopInfo.cpp | 163 if (CI->isOne()) in getCanonicalInductionVariable() 420 if (!Step || !Step->isOne()) in isCanonical()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineAddSub.cpp | 77 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 D | ConstantFold.cpp | 1017 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 D | Instruction.cpp | 676 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 D | MatrixBuilder.h | 237 assert(cast<ConstantInt>(Cmp)->isOne() && "Index must be valid!");
|
| H A D | Constants.h | 200 bool isOne() const { return Val.isOne(); } in isOne() function
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 938 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 D | ArithmeticToSPIRV.cpp | 629 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 D | CGCleanup.h | 328 assert(Var.getAlignment().isOne()); in setActiveFlag()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 371 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 D | RISCVGatherScatterLowering.cpp | 304 if (isa<ConstantInt>(Stride) && cast<ConstantInt>(Stride)->isOne()) in matchStridedRecurrence()
|