Home
last modified time | relevance | path

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

12345

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueLattice.h241 bool isConstant() const { return Tag == constant; } in isConstant() function
257 assert(isConstant() && "Cannot get the constant of a non-constant!"); in getConstant()
277 if (isConstant() && isa<ConstantInt>(getConstant())) { in asConstantInteger()
306 if (isConstant()) {
399 if (RHS.isConstant())
413 if (isConstant()) {
414 if (RHS.isConstant() && getConstant() == RHS.getConstant())
457 if (isConstant() && Other.isConstant()) in getCompare()
462 if ((isNotConstant() && Other.isConstant() && in getCompare()
464 (isConstant() && Other.isNotConstant() && in getCompare()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DPseudoSourceValue.cpp42 bool PseudoSourceValue::isConstant(const MachineFrameInfo *) const { in isConstant() function in PseudoSourceValue
60 bool FixedStackPseudoSourceValue::isConstant( in isConstant() function in FixedStackPseudoSourceValue
86 bool CallEntryPseudoSourceValue::isConstant(const MachineFrameInfo *) const { in isConstant() function in CallEntryPseudoSourceValue
/freebsd-13.1/contrib/llvm-project/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;
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DGlobalVariable.h53 GlobalVariable(Type *Ty, bool isConstant, LinkageTypes Linkage,
59 GlobalVariable(Module &M, Type *Ty, bool isConstant, LinkageTypes Linkage,
153 bool isConstant() const { return isConstantGlobal; } in isConstant() function
H A DMDBuilder.h163 bool isConstant = false);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp50 bool isConstant(const ValueLatticeElement &LV) { in isConstant() function
51 return LV.isConstant() || in isConstant()
60 return !LV.isUnknownOrUndef() && !isConstant(LV); in isOverdefined()
511 if (!isConstant(LV)) in isStructLatticeConstant()
518 if (LV.isConstant()) in getConstant()
940 if (isConstant(V0State)) { in visitUnaryOperator()
974 if ((V1State.isConstant() || V2State.isConstant())) { in visitBinaryOperator()
1041 !isConstant(ValueState[&I])) in visitCmpInst()
1131 if (isConstant(PtrVal)) { in visitLoadInst()
1195 assert(isConstant(State) && "Unknown state!"); in handleCallOverdefined()
[all …]
H A DRelLookupTableConverter.cpp35 !GV.isConstant() || in shouldConvertToRelLookupTable()
78 if (!GlovalVarOp || !GlovalVarOp->isConstant()) in shouldConvertToRelLookupTable()
100 M, IntArrayTy, LookupTable.isConstant(), LookupTable.getLinkage(), in createRelLookupTable()
H A DCtorUtils.cpp48 new GlobalVariable(CA->getType(), GCL->isConstant(), GCL->getLinkage(), in removeGlobalCtors()
/freebsd-13.1/contrib/llvm-project/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()
536 if (RHS.isConstant() && RHS.getConstant().isPowerOf2()) { in urem()
557 if (RHS.isConstant() && RHS.getConstant().isPowerOf2()) { in srem()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSCCP.cpp87 static bool isConstant(const ValueLatticeElement &LV) { in isConstant() function
88 return LV.isConstant() || in isConstant()
97 return !LV.isUnknownOrUndef() && !isConstant(LV); in isOverdefined()
111 ConstVals.push_back(isConstant(V) in tryToReplaceWithConstant()
122 isConstant(IV) ? Solver.getConstant(IV) : UndefValue::get(V->getType()); in tryToReplaceWithConstant()
611 if (isConstant(ReturnValue) || ReturnValue.isUnknownOrUndef()) in runIPSCCP()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDeadStoresChecker.cpp418 if (isConstant(E)) in observeStmt()
453 bool isConstant(const InitListExpr *Candidate) const { in isConstant() function in __anon5c9151650211::DeadStoreObs
457 [this](const Expr *Init) { return isConstant(Init); }); in isConstant()
461 bool isConstant(const Expr *E) const { in isConstant() function in __anon5c9151650211::DeadStoreObs
468 return isConstant(ILE); in isConstant()
H A DFixedAddressChecker.cpp48 if (!RV.isConstant() || RV.isZeroConstant()) in checkPreStmt()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DValueLatticeUtils.cpp28 if (GV->isConstant() || !GV->hasLocalLinkage() || in canTrackGlobalVariableInterprocedurally()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetObjectFile.cpp43 if (GVar && GVar->isConstant() && in SelectSectionForGlobal()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSVals.cpp259 bool SVal::isConstant() const { in isConstant() function in SVal
263 bool SVal::isConstant(int I) const { in isConstant() function in SVal
272 return isConstant(0); in isZeroConstant()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBlocks.h172 bool isConstant() const { return !isIndex(); } in isConstant() function
192 assert(isConstant()); in getConstant()
H A DCGCUDARuntime.h70 bool isConstant() const { return Constant; } in isConstant() function
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp73 return !LV.isUnknownOrUndef() && !LV.isConstant(); in isOverdefined()
141 auto *Const = IV.isConstant() ? Solver.getConstant(IV) in tryToReplaceWithConstant()
492 if (isa<Constant>(V) && (Solver.getLatticeValueFor(V).isConstant() || in getPossibleConstants()
H A DExtractGV.cpp88 (!GV.isConstant() || !keepConstInit); in runOnModule()
H A DGlobalSplit.cpp81 GV.isConstant(), GlobalValue::PrivateLinkage, in splitGlobal()
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp91 if (GV->isConstant()) in isSuitableForBSS()
247 if (GVar->isConstant()) { in getKindForGlobal()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsTargetObjectFile.cpp134 if (EmbeddedData && GVA->isConstant()) in IsGlobalInSmallSectionImpl()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DMDBuilder.cpp178 bool isConstant) { in createTBAANode() argument
179 if (isConstant) { in createTBAANode()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAliasAnalysis.cpp136 if (GV->isConstant()) in pointsToConstantMemory()

12345