Home
last modified time | relevance | path

Searched refs:isConstant (Results 1 – 25 of 156) sorted by relevance

1234567

/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DValueLattice.h243 bool isConstant() const { return Tag == constant; } in isConstant() function
259 assert(isConstant() && "Cannot get the constant of a non-constant!"); in getConstant()
279 if (isConstant() && isa<ConstantInt>(getConstant())) { in asConstantInteger()
308 if (isConstant()) {
401 if (RHS.isConstant())
415 if (isConstant()) {
416 if (RHS.isConstant() && getConstant() == RHS.getConstant())
459 if (isConstant() && Other.isConstant()) in getCompare()
464 if ((isNotConstant() && Other.isConstant() && in getCompare()
466 (isConstant() && Other.isNotConstant() && in getCompare()
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dfold.cpp70 bool isConstant{true}; in FoldOperation() local
76 isConstant &= IsInitialProcedureTarget(expr); in FoldOperation()
78 isConstant &= IsInitialDataTarget(expr); in FoldOperation()
81 isConstant &= IsActuallyConstant(expr); in FoldOperation()
87 isConstant &= expr.Rank() > 0; in FoldOperation()
89 isConstant &= *valueShape == *componentShape; in FoldOperation()
96 if (isConstant) { in FoldOperation()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DPseudoSourceValue.cpp39 bool PseudoSourceValue::isConstant(const MachineFrameInfo *) const { in isConstant() function in PseudoSourceValue
57 bool FixedStackPseudoSourceValue::isConstant( in isConstant() function in FixedStackPseudoSourceValue
83 bool CallEntryPseudoSourceValue::isConstant(const MachineFrameInfo *) const { in isConstant() function in CallEntryPseudoSourceValue
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DPseudoSourceValue.h81 virtual bool isConstant(const MachineFrameInfo *) const;
105 bool isConstant(const MachineFrameInfo *MFI) const override;
121 bool isConstant(const MachineFrameInfo *) const override;
/llvm-project-15.0.7/flang/include/flang/Lower/
H A DBoxAnalyzer.h312 bool isConstant() const { in isConstant() function
385 bool isConstant = !isAssumedSize(sym); in analyze() local
391 if (!isConstant) in analyze()
410 isConstant = false; in analyze()
416 if (isConstant) in analyze()
424 if (isConstant) in analyze()
431 if (isConstant) in analyze()
440 if (isConstant) in analyze()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DGlobalVariable.h52 GlobalVariable(Type *Ty, bool isConstant, LinkageTypes Linkage,
58 GlobalVariable(Module &M, Type *Ty, bool isConstant, LinkageTypes Linkage,
152 bool isConstant() const { return isConstantGlobal; } in isConstant() function
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp48 bool isConstant(const ValueLatticeElement &LV) { in isConstant() function
49 return LV.isConstant() || in isConstant()
58 return !LV.isUnknownOrUndef() && !isConstant(LV); in isOverdefined()
507 if (!isConstant(LV)) in isStructLatticeConstant()
514 if (LV.isConstant()) in getConstant()
960 if (isConstant(V0State)) in visitUnaryOperator()
986 if ((V1State.isConstant() || V2State.isConstant())) { in visitBinaryOperator()
1051 !isConstant(ValueState[&I])) in visitCmpInst()
1139 if (isConstant(PtrVal)) { in visitLoadInst()
1200 assert(isConstant(State) && "Unknown state!"); in handleCallOverdefined()
[all …]
H A DRelLookupTableConverter.cpp32 !GV.isConstant() || in shouldConvertToRelLookupTable()
81 if (!GlovalVarOp || !GlovalVarOp->isConstant()) in shouldConvertToRelLookupTable()
103 M, IntArrayTy, LookupTable.isConstant(), LookupTable.getLinkage(), in createRelLookupTable()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMagicNumbersCheck.h33 bool isConstant(const clang::ast_matchers::MatchFinder::MatchResult &Result,
68 if (isConstant(Result, *MatchedLiteral)) in checkBoundMatch()
/llvm-project-15.0.7/llvm/lib/Support/
H A DKnownBits.cpp172 if (RHS.isConstant() && RHS.getConstant().ult(BitWidth)) { in shl()
225 if (RHS.isConstant() && RHS.getConstant().ult(BitWidth)) { in lshr()
278 if (RHS.isConstant() && RHS.getConstant().ult(BitWidth)) { in ashr()
334 if (LHS.isConstant() && RHS.isConstant()) in eq()
554 if (RHS.isConstant() && RHS.getConstant().isPowerOf2()) { in urem()
575 if (RHS.isConstant() && RHS.getConstant().isPowerOf2()) { in srem()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSCCP.cpp81 static bool isConstant(const ValueLatticeElement &LV) { in isConstant() function
82 return LV.isConstant() || in isConstant()
91 return !LV.isUnknownOrUndef() && !isConstant(LV); in isOverdefined()
116 ConstVals.push_back(isConstant(V) in tryToReplaceWithConstant()
127 isConstant(IV) ? Solver.getConstant(IV) : UndefValue::get(V->getType()); in tryToReplaceWithConstant()
670 if (isConstant(ReturnValue) || ReturnValue.isUnknownOrUndef()) in runIPSCCP()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DDeadStoresChecker.cpp415 if (isConstant(E)) in observeStmt()
450 bool isConstant(const InitListExpr *Candidate) const { in isConstant() function in __anon9ba7c1e10211::DeadStoreObs
454 [this](const Expr *Init) { return isConstant(Init); }); in isConstant()
458 bool isConstant(const Expr *E) const { in isConstant() function in __anon9ba7c1e10211::DeadStoreObs
465 return isConstant(ILE); in isConstant()
H A DFixedAddressChecker.cpp48 if (!RV.isConstant() || RV.isZeroConstant()) in checkPreStmt()
/llvm-project-15.0.7/polly/lib/Support/
H A DSCEVValidator.cpp66 bool isConstant() { return Type == SCEVType::INT || Type == SCEVType::PARAM; } in isConstant() function in ValidatorResult
255 assert(Recurrence.isConstant() && "Expected 'Recurrence' to be constant"); in visitAddRecExpr()
310 if (!Op.isConstant()) { in visitUMaxExpr()
325 if (!Op.isConstant()) { in visitUMinExpr()
340 if (!Op.isConstant()) { in visitSequentialUMinExpr()
387 if (LHS.isConstant() && RHS.isConstant()) in visitDivision()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp131 static bool isConstant(const ValueLatticeElement &LV) { in isConstant() function
132 return LV.isConstant() || in isConstant()
138 return !LV.isUnknownOrUndef() && !isConstant(LV); in isOverdefined()
360 isConstant(IV) ? Solver.getConstant(IV) : UndefValue::get(V->getType()); in tryToReplaceWithConstant()
741 if (!GV->isConstant()) in getPossibleConstants()
749 if (isa<Constant>(V) && (Solver.getLatticeValueFor(V).isConstant() || in getPossibleConstants()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DSVals.cpp249 bool SVal::isConstant() const { in isConstant() function in SVal
253 bool SVal::isConstant(int I) const { in isConstant() function in SVal
262 return isConstant(0); in isZeroConstant()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DValueLatticeUtils.cpp28 if (GV->isConstant() || !GV->hasLocalLinkage() || in canTrackGlobalVariableInterprocedurally()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCTargetObjectFile.cpp43 if (GVar && GVar->isConstant() && in SelectSectionForGlobal()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DSparsePropagation.cpp68 bool isConstant() const { return LatticeVal.getInt() == ConstantVal; } in isConstant() function in __anon483a29410211::TestLatticeVal
312 EXPECT_TRUE(Solver.getExistingValueState(MemGV).isConstant()); in TEST_F()
393 EXPECT_TRUE(Solver.getExistingValueState(RetF).isConstant()); in TEST_F()
482 EXPECT_TRUE(Solver.getExistingValueState(RegB).isConstant()); in TEST_F()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Affine/IR/
H A DAffineValueMap.h61 bool isConstant(unsigned idx) const;
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGBlocks.h176 bool isConstant() const { return !isIndex(); } in isConstant() function
196 assert(isConstant()); in getConstant()
H A DCGCUDARuntime.h83 bool isConstant() const { return Constant; } in isConstant() function
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dvbinop-simplify-bug.ll5 ; using the new method 'BuildVectorSDNode::isConstant' when possible.
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DKnownBits.h50 bool isConstant() const { in isConstant() function
58 assert(isConstant() && "Can only get value when all bits are known"); in getConstant()
/llvm-project-15.0.7/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp89 if (GV->isConstant()) in isSuitableForBSS()
252 if (GVar->isConstant()) { in getKindForGlobal()

1234567