Home
last modified time | relevance | path

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

1234567

/freebsd/contrib/llvm-project/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.h40 class ValueDecl; variable
95 virtual void InstantiationRequested(const ValueDecl *D) {} in InstantiationRequested()
H A DTemplateBase.h58 class ValueDecl;
119 ValueDecl *D;
182 void initFromDeclaration(ValueDecl *D, QualType QT, bool IsDefaulted);
200 TemplateArgument(ValueDecl *D, QualType QT, bool IsDefaulted = false) {
326 ValueDecl *getAsDecl() const {
H A DOpenMPClause.h5239 ValueDecl *AssociatedDeclaration = nullptr;
5244 ValueDecl *AssociatedDeclaration, in MappableComponent()
5250 ? cast<ValueDecl>(AssociatedDeclaration->getCanonicalDecl()) in MappableComponent()
5261 ValueDecl *getAssociatedDeclaration() const { in getAssociatedDeclaration()
5285 getUniqueDeclarationsTotalNumber(ArrayRef<const ValueDecl *> Declarations);
5372 MutableArrayRef<ValueDecl *> getUniqueDeclsRef() { in getUniqueDeclsRef()
5373 return MutableArrayRef<ValueDecl *>( in getUniqueDeclsRef()
5374 static_cast<T *>(this)->template getTrailingObjects<ValueDecl *>(), in getUniqueDeclsRef()
5380 ArrayRef<ValueDecl *> getUniqueDeclsRef() const { in getUniqueDeclsRef()
5381 return ArrayRef<ValueDecl *>( in getUniqueDeclsRef()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.h79 std::optional<unsigned> getGlobal(const ValueDecl *VD);
83 std::optional<unsigned> getOrCreateGlobal(const ValueDecl *VD,
87 std::optional<unsigned> getOrCreateDummy(const ValueDecl *VD);
90 std::optional<unsigned> createGlobal(const ValueDecl *VD, const Expr *Init);
135 DeclScope(Program &P, const ValueDecl *VD) : P(P) { in DeclScope()
213 llvm::DenseMap<const ValueDecl *, unsigned> DummyVariables;
229 void startDeclaration(const ValueDecl *Decl) { in startDeclaration()
H A DCompiler.h66 static InitLink Decl(const ValueDecl *D) { in Decl()
79 const ValueDecl *D;
279 bool visitDeclRef(const ValueDecl *D, const Expr *E);
294 allocateLocal(DeclTy &&Decl, const ValueDecl *ExtendingDecl = nullptr);
358 llvm::DenseMap<const ValueDecl *, Scope::Local> Locals;
380 const ValueDecl *InitializingDecl = nullptr;
408 VariableScope(Compiler<Emitter> *Ctx, const ValueDecl *VD) in VariableScope()
432 void addExtended(const Scope::Local &Local, const ValueDecl *ExtendingDecl) { in addExtended()
459 const ValueDecl *ValDecl = nullptr;
466 LocalScope(Compiler<Emitter> *Ctx, const ValueDecl *VD) in LocalScope()
H A DMemberPointer.cpp65 return APValue(static_cast<ValueDecl *>(nullptr), /*IsDerivedMember=*/false, in toAPValue()
71 return APValue(cast<ValueDecl>(getDecl()), /*IsDerivedMember=*/false, in toAPValue()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DDataflowEnvironment.h297 StorageLocation &createStorageLocation(const ValueDecl &D);
309 void setStorageLocation(const ValueDecl &D, StorageLocation &Loc);
313 StorageLocation *getStorageLocation(const ValueDecl &D) const;
316 void removeDecl(const ValueDecl &D);
342 get(const ValueDecl &D) const { in get()
474 StorageLocation &createObject(const ValueDecl &D, const Expr *InitExpr) { in createObject()
522 Value *getValue(const ValueDecl &D) const;
540 get(const ValueDecl &D) const { in get()
726 StorageLocation &createObjectInternal(const ValueDecl *D, QualType Ty,
800 llvm::DenseMap<const ValueDecl *, StorageLocation *> DeclToLoc;
H A DDataflowAnalysisContext.h121 StorageLocation &getStableStorageLocation(const ValueDecl &D);
263 llvm::DenseMap<const ValueDecl *, StorageLocation *> DeclToLoc;
/freebsd/contrib/llvm-project/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;
786 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) in printPretty()
815 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) { in printPretty()
[all …]
H A DAttrImpl.cpp153 OMPDeclareTargetDeclAttr::getActiveAttr(const ValueDecl *VD) { in getActiveAttr()
172 OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration(const ValueDecl *VD) { in isDeclareTargetDeclaration()
180 OMPDeclareTargetDeclAttr::getDeviceType(const ValueDecl *VD) { in getDeviceType()
188 OMPDeclareTargetDeclAttr::getLocation(const ValueDecl *VD) { in getLocation()
H A DASTDiagnostic.cpp596 ValueDecl *VD = nullptr;
701 void SetDeclarationDiff(ValueDecl *FromValueDecl, ValueDecl *ToValueDecl, in SetDeclarationDiff()
719 ValueDecl *FromValueDecl, bool FromAddressOf, bool FromNullPtr, in SetFromDeclarationAndToIntegerDiff()
737 Expr *FromExpr, ValueDecl *ToValueDecl, bool ToAddressOf, in SetFromIntegerAndToDeclarationDiff()
854 void GetDeclarationDiff(ValueDecl *&FromValueDecl, ValueDecl *&ToValueDecl, in GetDeclarationDiff()
870 ValueDecl *&FromValueDecl, bool &FromAddressOf, bool &FromNullPtr, in GetFromDeclarationAndToIntegerDiff()
887 Expr *&FromExpr, ValueDecl *&ToValueDecl, bool &ToAddressOf, in GetFromIntegerAndToDeclarationDiff()
1214 Expr *&E, ValueDecl *&VD, in InitializeNonTypeDiffVariables()
1307 ValueDecl *FromValueDecl = nullptr, *ToValueDecl = nullptr; in DiffNonTypes()
1562 ValueDecl *FromValueDecl, *ToValueDecl; in TreeToString()
[all …]
H A DOpenMPClause.cpp1127 ArrayRef<const ValueDecl *> Declarations) { in getUniqueDeclarationsTotalNumber()
1129 llvm::SmallPtrSet<const ValueDecl *, 8> Cache; in getUniqueDeclarationsTotalNumber()
1130 for (const ValueDecl *D : Declarations) { in getUniqueDeclarationsTotalNumber()
1131 const ValueDecl *VD = D ? cast<ValueDecl>(D->getCanonicalDecl()) : nullptr; in getUniqueDeclarationsTotalNumber()
1142 ArrayRef<ValueDecl *> Declarations, in Create()
1165 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
1187 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty()
1199 ArrayRef<ValueDecl *> Declarations, in Create()
1221 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
1239 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty()
[all …]
H A DTemplateBase.cpp171 void TemplateArgument::initFromDeclaration(ValueDecl *D, QualType QT, in initFromDeclaration()
216 static const ValueDecl *getAsSimpleValueDeclRef(const ASTContext &Ctx, in getAsSimpleValueDeclRef()
236 return V.getLValueBase().dyn_cast<const ValueDecl *>(); in getAsSimpleValueDeclRef()
249 else if (const ValueDecl *VD = getAsSimpleValueDeclRef(Ctx, Type, V)) in TemplateArgument()
251 initFromDeclaration(const_cast<ValueDecl *>(VD), Type, IsDefaulted); in TemplateArgument()
529 if (auto *VD = dyn_cast<ValueDecl>(ND)) { in print()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp88 static const ValueDecl *getPrivateItem(const Expr *RefExpr) { in getPrivateItem()
105 return cast<ValueDecl>(DE->getDecl()->getCanonicalDecl()); in getPrivateItem()
107 return cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl()); in getPrivateItem()
111 ASTContext &C, ArrayRef<const ValueDecl *> EscapedDecls, in buildRecordForGlobalizedVars()
112 ArrayRef<const ValueDecl *> EscapedDeclsForTeams, in buildRecordForGlobalizedVars()
113 llvm::SmallDenseMap<const ValueDecl *, const FieldDecl *> in buildRecordForGlobalizedVars() argument
116 using VarsDataTy = std::pair<CharUnits /*Align*/, const ValueDecl *>; in buildRecordForGlobalizedVars()
120 for (const ValueDecl *D : EscapedDecls) in buildRecordForGlobalizedVars()
122 for (const ValueDecl *D : EscapedDeclsForTeams) in buildRecordForGlobalizedVars()
131 llvm::SmallPtrSet<const ValueDecl *, 16> SingleEscaped( in buildRecordForGlobalizedVars()
[all …]
H A DCGOpenMPRuntimeGPU.h376 llvm::SmallVector<const ValueDecl*, 4> EscapedVariableLengthDecls;
377 llvm::SmallVector<const ValueDecl *, 4> DelayedVariableLengthDecls;
392 std::pair<const Decl *, llvm::SmallVector<const ValueDecl *, 4>>
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DScopeInfo.h582 ValueDecl *CapturedVar;
624 Capture(ValueDecl *Var, bool Block, bool ByRef, bool IsNested, in Capture()
675 ValueDecl *getVariable() const { in getVariable()
714 llvm::DenseMap<ValueDecl *, unsigned> CaptureMap;
731 void addCapture(ValueDecl *Var, bool isBlock, bool isByref, bool isNested, in addCapture()
758 bool isCaptured(ValueDecl *Var) const { return CaptureMap.count(Var); } in isCaptured()
765 Capture &getCapture(ValueDecl *Var) { in getCapture()
770 const Capture &getCapture(ValueDecl *Var) const { in getCapture()
771 llvm::DenseMap<ValueDecl *, unsigned>::const_iterator Known = in getCapture()
1071 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 DSemaOpenMP.h135 void tryCaptureOpenMPLambdas(ValueDecl *V);
142 bool isOpenMPCapturedByRef(const ValueDecl *D, unsigned Level,
148 VarDecl *isOpenMPCapturedDecl(ValueDecl *D, bool CheckScopeInfo = false,
155 bool isOpenMPRebuildMemberExpr(ValueDecl *D);
171 OpenMPClauseKind isOpenMPPrivateDecl(ValueDecl *D, unsigned Level,
177 void setOpenMPCaptureKind(FieldDecl *FD, const ValueDecl *D, unsigned Level);
182 bool isOpenMPTargetCapturedDecl(const ValueDecl *D, unsigned Level,
189 bool isOpenMPGlobalCapturedDecl(ValueDecl *D, unsigned Level,
298 const ValueDecl *getOpenMPDeclareMapperVarName() const;
409 llvm::SmallDenseMap<const ValueDecl *, const Expr *, 4>;
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaSYCL.cpp49 ValueDecl *DeclToCheck) { in deepTypeCheckForDevice()
56 auto Check = [&](QualType TypeToCheck, const ValueDecl *D) { in deepTypeCheckForDevice()
78 SmallVector<const ValueDecl *, 4> StackForRecursion; in deepTypeCheckForDevice()
86 const ValueDecl *Next = StackForRecursion.pop_back_val(); in deepTypeCheckForDevice()
H A DScopeInfo.cpp237 llvm::function_ref<void(ValueDecl *, Expr *)> Callback) const { in visitPotentialCaptures() argument
240 Callback(cast<ValueDecl>(DRE->getFoundDecl()), E); in visitPotentialCaptures()
242 Callback(cast<ValueDecl>(ME->getMemberDecl()), E); in visitPotentialCaptures()
244 for (ValueDecl *VD : *FP) in visitPotentialCaptures()
/freebsd/contrib/llvm-project/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 *>;
488 const ValueDecl *VD = nullptr);
489 til::SExpr *lookupVarDecl(const ValueDecl *VD);
490 til::SExpr *addVarDecl(const ValueDecl *VD, til::SExpr *E);
491 til::SExpr *updateVarDecl(const ValueDecl *VD, til::SExpr *E);
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DDataflowEnvironment.cpp50 static llvm::DenseMap<const ValueDecl *, StorageLocation *> intersectDeclToLoc( in intersectDeclToLoc()
51 const llvm::DenseMap<const ValueDecl *, StorageLocation *> &DeclToLoc1, in intersectDeclToLoc() argument
52 const llvm::DenseMap<const ValueDecl *, StorageLocation *> &DeclToLoc2) { in intersectDeclToLoc()
53 llvm::DenseMap<const ValueDecl *, StorageLocation *> Result; in intersectDeclToLoc()
835 StorageLocation &Environment::createStorageLocation(const ValueDecl &D) { in createStorageLocation()
849 void Environment::setStorageLocation(const ValueDecl &D, StorageLocation &Loc) { in setStorageLocation()
860 StorageLocation *Environment::getStorageLocation(const ValueDecl &D) const { in getStorageLocation()
870 void Environment::removeDecl(const ValueDecl &D) { DeclToLoc.erase(&D); } in removeDecl()
943 Value *Environment::getValue(const ValueDecl &D) const { in getValue()
1084 StorageLocation &Environment::createObjectInternal(const ValueDecl *D, in createObjectInternal()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DThreadSafetyCommon.cpp310 const auto *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); in translateDeclRefExpr()
356 static const ValueDecl *getValueDeclFromSExpr(const til::SExpr *E) { in getValueDeclFromSExpr()
396 const auto *D = cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl()); in translateMemberExpr()
544 const ValueDecl *VD = nullptr; in translateBinAssign()
682 const ValueDecl *VD) { in addStatement()
694 til::SExpr *SExprBuilder::lookupVarDecl(const ValueDecl *VD) { in lookupVarDecl()
704 static void maybeUpdateVD(til::SExpr *E, const ValueDecl *VD) { in maybeUpdateVD()
714 til::SExpr *SExprBuilder::addVarDecl(const ValueDecl *VD, til::SExpr *E) { in addVarDecl()
723 til::SExpr *SExprBuilder::updateVarDecl(const ValueDecl *VD, til::SExpr *E) { in updateVarDecl()

1234567