Home
last modified time | relevance | path

Searched refs:ValueDecl (Results 1 – 25 of 148) sorted by relevance

123456

/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DLambdaCapture.h74 ValueDecl *Var = nullptr,
89 return isa_and_nonnull<ValueDecl>(DeclAndBits.getPointer()); in capturesVariable()
104 ValueDecl *getCapturedVar() const { in getCapturedVar()
106 return static_cast<ValueDecl *>(DeclAndBits.getPointer()); in getCapturedVar()
H A DASTMutationListener.h38 class ValueDecl; variable
93 virtual void InstantiationRequested(const ValueDecl *D) {} in InstantiationRequested()
H A DAPValue.h40 class ValueDecl; variable
147 typedef llvm::PointerUnion<const ValueDecl *, const Expr *, TypeInfoLValue,
153 LValueBase(const ValueDecl *P, unsigned I = 0, unsigned V = 0);
350 APValue(const ValueDecl *Member, bool IsDerivedMember,
567 const ValueDecl *getMemberPointerDecl() const;
667 void MakeMemberPointer(const ValueDecl *Member, bool IsDerivedMember,
690 setMemberPointerUninit(const ValueDecl *Member, bool IsDerivedMember,
H A DOpenMPClause.h5103 ValueDecl *AssociatedDeclaration = nullptr;
5108 ValueDecl *AssociatedDeclaration, in MappableComponent()
5114 ? cast<ValueDecl>(AssociatedDeclaration->getCanonicalDecl()) in MappableComponent()
5125 ValueDecl *getAssociatedDeclaration() const { in getAssociatedDeclaration()
5149 getUniqueDeclarationsTotalNumber(ArrayRef<const ValueDecl *> Declarations);
5236 MutableArrayRef<ValueDecl *> getUniqueDeclsRef() { in getUniqueDeclsRef()
5237 return MutableArrayRef<ValueDecl *>( in getUniqueDeclsRef()
5238 static_cast<T *>(this)->template getTrailingObjects<ValueDecl *>(), in getUniqueDeclsRef()
5244 ArrayRef<ValueDecl *> getUniqueDeclsRef() const { in getUniqueDeclsRef()
5245 return ArrayRef<ValueDecl *>( in getUniqueDeclsRef()
[all …]
H A DTemplateBase.h57 class ValueDecl;
108 ValueDecl *D;
161 TemplateArgument(ValueDecl *D, QualType QT) {
276 ValueDecl *getAsDecl() const {
/openbsd-src/gnu/llvm/clang/include/clang/Analysis/FlowSensitive/
H A DStorageLocation.h75 Type, llvm::DenseMap<const ValueDecl *, StorageLocation *>()) {} in AggregateStorageLocation()
79 llvm::DenseMap<const ValueDecl *, StorageLocation *> Children) in AggregateStorageLocation() argument
87 StorageLocation &getChild(const ValueDecl &D) const { in getChild()
94 llvm::DenseMap<const ValueDecl *, StorageLocation *> Children;
H A DDataflowEnvironment.h263 void setStorageLocation(const ValueDecl &D, StorageLocation &Loc);
268 StorageLocation *getStorageLocation(const ValueDecl &D, SkipPast SP) const;
313 Value *getValue(const ValueDecl &D, SkipPast SP) const;
485 llvm::DenseMap<const ValueDecl *, StorageLocation *> DeclToLoc;
493 std::pair<StructValue *, const ValueDecl *>>
H A DValue.h289 StructValue() : StructValue(llvm::DenseMap<const ValueDecl *, Value *>()) {} in StructValue()
291 explicit StructValue(llvm::DenseMap<const ValueDecl *, Value *> Children) in StructValue() argument
300 Value *getChild(const ValueDecl &D) const { in getChild()
308 void setChild(const ValueDecl &D, Value &Val) { Children[&D] = &Val; } in setChild()
311 llvm::DenseMap<const ValueDecl *, Value *> Children;
H A DDataflowAnalysisContext.h127 void setStorageLocation(const ValueDecl &D, StorageLocation &Loc) { in setStorageLocation()
134 StorageLocation *getStorageLocation(const ValueDecl &D) const { in getStorageLocation()
346 llvm::DenseMap<const ValueDecl *, StorageLocation *> DeclToLoc;
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DAPValue.cpp42 APValue::LValueBase::LValueBase(const ValueDecl *P, unsigned I, unsigned V) in LValueBase()
43 : Ptr(P ? cast<ValueDecl>(P->getCanonicalDecl()) : nullptr), Local{I, V} {} in LValueBase()
65 if (const ValueDecl *D = dyn_cast<const ValueDecl*>()) { in getType()
73 for (auto *Redecl = cast<ValueDecl>(D->getMostRecentDecl()); Redecl; in getType()
74 Redecl = cast_or_null<ValueDecl>(Redecl->getPreviousDecl())) { in getType()
190 B.Ptr = DenseMapInfo<const ValueDecl*>::getEmptyKey(); in getEmptyKey()
197 B.Ptr = DenseMapInfo<const ValueDecl*>::getTombstoneKey(); in getTombstoneKey()
257 llvm::PointerIntPair<const ValueDecl*, 1, bool> MemberAndIsDerivedMember;
781 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) in printPretty()
810 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) { in printPretty()
[all …]
H A DAttrImpl.cpp153 OMPDeclareTargetDeclAttr::getActiveAttr(const ValueDecl *VD) { in getActiveAttr()
170 OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration(const ValueDecl *VD) { in isDeclareTargetDeclaration()
178 OMPDeclareTargetDeclAttr::getDeviceType(const ValueDecl *VD) { in getDeviceType()
186 OMPDeclareTargetDeclAttr::getLocation(const ValueDecl *VD) { in getLocation()
H A DASTDiagnostic.cpp595 ValueDecl *VD = nullptr;
700 void SetDeclarationDiff(ValueDecl *FromValueDecl, ValueDecl *ToValueDecl, in SetDeclarationDiff()
718 ValueDecl *FromValueDecl, bool FromAddressOf, bool FromNullPtr, in SetFromDeclarationAndToIntegerDiff()
736 Expr *FromExpr, ValueDecl *ToValueDecl, bool ToAddressOf, in SetFromIntegerAndToDeclarationDiff()
853 void GetDeclarationDiff(ValueDecl *&FromValueDecl, ValueDecl *&ToValueDecl, in GetDeclarationDiff()
869 ValueDecl *&FromValueDecl, bool &FromAddressOf, bool &FromNullPtr, in GetFromDeclarationAndToIntegerDiff()
886 Expr *&FromExpr, ValueDecl *&ToValueDecl, bool &ToAddressOf, in GetFromIntegerAndToDeclarationDiff()
1213 Expr *&E, ValueDecl *&VD, in InitializeNonTypeDiffVariables()
1284 ValueDecl *FromValueDecl = nullptr, *ToValueDecl = nullptr; in DiffNonTypes()
1539 ValueDecl *FromValueDecl, *ToValueDecl; in TreeToString()
[all …]
H A DOpenMPClause.cpp1122 ArrayRef<const ValueDecl *> Declarations) { in getUniqueDeclarationsTotalNumber()
1124 llvm::SmallPtrSet<const ValueDecl *, 8> Cache; in getUniqueDeclarationsTotalNumber()
1125 for (const ValueDecl *D : Declarations) { in getUniqueDeclarationsTotalNumber()
1126 const ValueDecl *VD = D ? cast<ValueDecl>(D->getCanonicalDecl()) : nullptr; in getUniqueDeclarationsTotalNumber()
1137 ArrayRef<ValueDecl *> Declarations, in Create()
1160 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
1182 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty()
1194 ArrayRef<ValueDecl *> Declarations, in Create()
1216 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
1234 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaSYCL.cpp60 ValueDecl *DeclToCheck) { in deepTypeCheckForSYCLDevice()
67 auto Check = [&](QualType TypeToCheck, const ValueDecl *D) { in deepTypeCheckForSYCLDevice()
89 SmallVector<const ValueDecl *, 4> StackForRecursion; in deepTypeCheckForSYCLDevice()
97 const ValueDecl *Next = StackForRecursion.pop_back_val(); in deepTypeCheckForSYCLDevice()
H A DScopeInfo.cpp235 llvm::function_ref<void(ValueDecl *, Expr *)> Callback) const { in visitPotentialCaptures() argument
238 Callback(cast<ValueDecl>(DRE->getFoundDecl()), E); in visitPotentialCaptures()
240 Callback(cast<ValueDecl>(ME->getMemberDecl()), E); in visitPotentialCaptures()
242 for (ValueDecl *VD : *FP) in visitPotentialCaptures()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DScopeInfo.h559 ValueDecl *CapturedVar;
595 Capture(ValueDecl *Var, bool Block, bool ByRef, bool IsNested, in Capture()
646 ValueDecl *getVariable() const { in getVariable()
685 llvm::DenseMap<ValueDecl *, unsigned> CaptureMap;
702 void addCapture(ValueDecl *Var, bool isBlock, bool isByref, bool isNested, in addCapture()
729 bool isCaptured(ValueDecl *Var) const { return CaptureMap.count(Var); } in isCaptured()
736 Capture &getCapture(ValueDecl *Var) { in getCapture()
741 const Capture &getCapture(ValueDecl *Var) const { in getCapture()
742 llvm::DenseMap<ValueDecl *, unsigned>::const_iterator Known = in getCapture()
1034 llvm::function_ref<void(ValueDecl *, Expr *)> Callback) const;
H A DExternalSemaSource.h35 class ValueDecl; variable
181 SmallVectorImpl<std::pair<ValueDecl *, in ReadPendingInstantiations() argument
H A DSemaLambda.h36 ValueDecl *VarToCapture, Sema &S);
/openbsd-src/gnu/llvm/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyCommon.h315 const ValueDecl* valueDecl() const { in valueDecl()
447 using LVarIndexMap = llvm::DenseMap<const ValueDecl *, unsigned>;
450 using NameVarPair = std::pair<const ValueDecl *, til::SExpr *>;
487 til::SExpr *getCurrentLVarDefinition(const ValueDecl *VD);
490 const ValueDecl *VD = nullptr);
491 til::SExpr *lookupVarDecl(const ValueDecl *VD);
492 til::SExpr *addVarDecl(const ValueDecl *VD, til::SExpr *E);
493 til::SExpr *updateVarDecl(const ValueDecl *VD, til::SExpr *E);
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp100 static const ValueDecl *getPrivateItem(const Expr *RefExpr) { in getPrivateItem()
117 return cast<ValueDecl>(DE->getDecl()->getCanonicalDecl()); in getPrivateItem()
119 return cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl()); in getPrivateItem()
124 ASTContext &C, ArrayRef<const ValueDecl *> EscapedDecls, in buildRecordForGlobalizedVars()
125 ArrayRef<const ValueDecl *> EscapedDeclsForTeams, in buildRecordForGlobalizedVars()
126 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in buildRecordForGlobalizedVars() argument
128 using VarsDataTy = std::pair<CharUnits /*Align*/, const ValueDecl *>; in buildRecordForGlobalizedVars()
132 for (const ValueDecl *D : EscapedDecls) in buildRecordForGlobalizedVars()
138 for (const ValueDecl *D : EscapedDeclsForTeams) in buildRecordForGlobalizedVars()
151 llvm::SmallPtrSet<const ValueDecl *, 16> SingleEscaped( in buildRecordForGlobalizedVars()
[all …]
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLambdaCapturesChecker.cpp61 ValueDecl *CapturedVar = C.getCapturedVar(); in visitLambdaExpr()
72 void reportBug(const LambdaCapture &Capture, ValueDecl *CapturedVar, in reportBug()
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DProgram.h79 std::optional<unsigned> getGlobal(const ValueDecl *VD);
82 std::optional<unsigned> getOrCreateGlobal(const ValueDecl *VD,
89 std::optional<unsigned> createGlobal(const ValueDecl *VD, const Expr *E);
H A DDescriptor.h148 const ValueDecl *asValueDecl() const { in asValueDecl()
149 return dyn_cast_if_present<ValueDecl>(asDecl()); in asValueDecl()
/openbsd-src/gnu/llvm/clang/lib/Analysis/
H A DThreadSafety.cpp262 bool containsMutexDecl(FactManager &FM, const ValueDecl* Vd) const { in containsMutexDecl()
279 using BeforeVect = SmallVector<const ValueDecl *, 4>;
290 llvm::DenseMap<const ValueDecl *, std::unique_ptr<BeforeInfo>>;
291 using CycleMap = llvm::DenseMap<const ValueDecl *, bool>;
296 BeforeInfo* insertAttrExprs(const ValueDecl* Vd,
299 BeforeInfo *getBeforeInfoForDecl(const ValueDecl *Vd,
302 void checkBeforeAfter(const ValueDecl* Vd,
636 const ValueDecl *VDec = DRE->getDecl(); in VisitBinaryOperator()
1064 BeforeSet::BeforeInfo* BeforeSet::insertAttrExprs(const ValueDecl* Vd, in insertAttrExprs()
1086 if (const ValueDecl *Cpvd = Cp.valueDecl()) { in insertAttrExprs()
[all …]
H A DThreadSafetyCommon.cpp308 const auto *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); in translateDeclRefExpr()
348 static const ValueDecl *getValueDeclFromSExpr(const til::SExpr *E) { in getValueDeclFromSExpr()
388 const auto *D = cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl()); in translateMemberExpr()
536 const ValueDecl *VD = nullptr; in translateBinAssign()
674 const ValueDecl *VD) { in addStatement()
686 til::SExpr *SExprBuilder::lookupVarDecl(const ValueDecl *VD) { in lookupVarDecl()
696 static void maybeUpdateVD(til::SExpr *E, const ValueDecl *VD) { in maybeUpdateVD()
706 til::SExpr *SExprBuilder::addVarDecl(const ValueDecl *VD, til::SExpr *E) { in addVarDecl()
715 til::SExpr *SExprBuilder::updateVarDecl(const ValueDecl *VD, til::SExpr *E) { in updateVarDecl()

123456