Home
last modified time | relevance | path

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

1234567

/freebsd-14.2/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.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);
358 APValue(const ValueDecl *Member, bool IsDerivedMember,
575 const ValueDecl *getMemberPointerDecl() const;
675 void MakeMemberPointer(const ValueDecl *Member, bool IsDerivedMember,
698 setMemberPointerUninit(const ValueDecl *Member, bool IsDerivedMember,
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.h5199 ValueDecl *AssociatedDeclaration = nullptr;
5221 ValueDecl *getAssociatedDeclaration() const { in getAssociatedDeclaration()
5333 return MutableArrayRef<ValueDecl *>( in getUniqueDeclsRef()
5340 ArrayRef<ValueDecl *> getUniqueDeclsRef() const { in getUniqueDeclsRef()
5341 return ArrayRef<ValueDecl *>( in getUniqueDeclsRef()
5349 void setUniqueDecls(ArrayRef<ValueDecl *> UDs) { in setUniqueDecls()
5579 ArrayRef<ValueDecl *>::iterator DeclCur;
5629 const ValueDecl *Declaration, ArrayRef<ValueDecl *> UniqueDecls, in const_component_lists_iterator()
5679 const ValueDecl *>
5682 const ValueDecl *Mapper = nullptr;
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.h79 std::optional<unsigned> getGlobal(const ValueDecl *VD);
82 std::optional<unsigned> getOrCreateGlobal(const ValueDecl *VD,
86 std::optional<unsigned> getOrCreateDummy(const ValueDecl *VD);
89 std::optional<unsigned> createGlobal(const ValueDecl *VD, const Expr *E);
134 DeclScope(Program &P, const ValueDecl *VD) : P(P) { in DeclScope()
211 llvm::DenseMap<const ValueDecl *, unsigned> DummyParams;
227 void startDeclaration(const ValueDecl *Decl) { in startDeclaration()
H A DProgram.cpp105 std::optional<unsigned> Program::getGlobal(const ValueDecl *VD) { in getGlobal()
129 std::optional<unsigned> Program::getOrCreateGlobal(const ValueDecl *VD, in getOrCreateGlobal()
141 std::optional<unsigned> Program::getOrCreateDummy(const ValueDecl *VD) { in getOrCreateDummy()
160 std::optional<unsigned> Program::createGlobal(const ValueDecl *VD, in createGlobal()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DDataflowEnvironment.h255 StorageLocation &createStorageLocation(const ValueDecl &D);
267 void setStorageLocation(const ValueDecl &D, StorageLocation &Loc);
271 StorageLocation *getStorageLocation(const ValueDecl &D) const;
274 void removeDecl(const ValueDecl &D);
300 get(const ValueDecl &D) const { in get()
443 StorageLocation &createObject(const ValueDecl &D, const Expr *InitExpr) { in createObject()
471 Value *getValue(const ValueDecl &D) const;
489 get(const ValueDecl &D) const { in get()
664 StorageLocation &createObjectInternal(const ValueDecl *D, QualType Ty,
701 llvm::DenseMap<const ValueDecl *, StorageLocation *> DeclToLoc;
H A DStorageLocation.h96 using FieldToLoc = llvm::DenseMap<const ValueDecl *, StorageLocation *>;
125 StorageLocation *getChild(const ValueDecl &D) const { in getChild()
162 void setChild(const ValueDecl &D, StorageLocation *Loc) { in setChild()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaSYCL.cpp44 ValueDecl *DeclToCheck) { in deepTypeCheckForSYCLDevice()
51 auto Check = [&](QualType TypeToCheck, const ValueDecl *D) { in deepTypeCheckForSYCLDevice()
73 SmallVector<const ValueDecl *, 4> StackForRecursion; in deepTypeCheckForSYCLDevice()
81 const ValueDecl *Next = StackForRecursion.pop_back_val(); in deepTypeCheckForSYCLDevice()
H A DScopeInfo.cpp236 llvm::function_ref<void(ValueDecl *, Expr *)> Callback) const { in visitPotentialCaptures() argument
239 Callback(cast<ValueDecl>(DRE->getFoundDecl()), E); in visitPotentialCaptures()
241 Callback(cast<ValueDecl>(ME->getMemberDecl()), E); in visitPotentialCaptures()
243 for (ValueDecl *VD : *FP) in visitPotentialCaptures()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DAPValue.cpp42 APValue::LValueBase::LValueBase(const ValueDecl *P, unsigned I, unsigned 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()
783 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) in printPretty()
812 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) { in printPretty()
837 const ValueDecl *VD = cast<ValueDecl>(BaseOrMember); in printPretty()
927 if (const ValueDecl *VD = getMemberPointerDecl()) { 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()
737 Expr *FromExpr, ValueDecl *ToValueDecl, bool ToAddressOf, in SetFromIntegerAndToDeclarationDiff()
854 void GetDeclarationDiff(ValueDecl *&FromValueDecl, ValueDecl *&ToValueDecl, in GetDeclarationDiff()
887 Expr *&FromExpr, ValueDecl *&ToValueDecl, bool &ToAddressOf, in GetFromIntegerAndToDeclarationDiff()
1285 ValueDecl *FromValueDecl = nullptr, *ToValueDecl = nullptr; in DiffNonTypes()
1540 ValueDecl *FromValueDecl, *ToValueDecl; in TreeToString()
1553 ValueDecl *FromValueDecl; in TreeToString()
1575 ValueDecl *ToValueDecl; in TreeToString()
1922 void PrintValueDecl(ValueDecl *FromValueDecl, ValueDecl *ToValueDecl, in PrintValueDecl()
[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()
1249 ArrayRef<ValueDecl *> Declarations, in Create()
[all …]
H A DTemplateBase.cpp171 void TemplateArgument::initFromDeclaration(ValueDecl *D, QualType QT, in initFromDeclaration()
216 static const ValueDecl *getAsSimpleValueDeclRef(const ASTContext &Ctx, in getAsSimpleValueDeclRef()
231 return V.getLValueBase().dyn_cast<const ValueDecl *>(); in getAsSimpleValueDeclRef()
244 else if (const ValueDecl *VD = getAsSimpleValueDeclRef(Ctx, Type, V)) in TemplateArgument()
246 initFromDeclaration(const_cast<ValueDecl *>(VD), Type, IsDefaulted); in TemplateArgument()
524 if (auto *VD = dyn_cast<ValueDecl>(ND)) { in print()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/
H A DScopeInfo.h571 ValueDecl *CapturedVar;
607 Capture(ValueDecl *Var, bool Block, bool ByRef, bool IsNested, in Capture()
658 ValueDecl *getVariable() const { in getVariable()
697 llvm::DenseMap<ValueDecl *, unsigned> CaptureMap;
714 void addCapture(ValueDecl *Var, bool isBlock, bool isByref, bool isNested, in addCapture()
741 bool isCaptured(ValueDecl *Var) const { return CaptureMap.count(Var); } in isCaptured()
748 Capture &getCapture(ValueDecl *Var) { in getCapture()
753 const Capture &getCapture(ValueDecl *Var) const { in getCapture()
754 llvm::DenseMap<ValueDecl *, unsigned>::const_iterator Known = in getCapture()
1054 llvm::function_ref<void(ValueDecl *, Expr *)> Callback) const;
H A DExternalSemaSource.h35 class ValueDecl; variable
181 SmallVectorImpl<std::pair<ValueDecl *, in ReadPendingInstantiations() argument
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp112 ArrayRef<const ValueDecl *> EscapedDeclsForTeams, in buildRecordForGlobalizedVars()
120 for (const ValueDecl *D : EscapedDecls) in buildRecordForGlobalizedVars()
122 for (const ValueDecl *D : EscapedDeclsForTeams) in buildRecordForGlobalizedVars()
134 const ValueDecl *VD = Pair.second; in buildRecordForGlobalizedVars()
186 llvm::SetVector<const ValueDecl *> EscapedDecls;
195 void markAsEscaped(const ValueDecl *VD) { in markAsEscaped()
200 VD = cast<ValueDecl>(VD->getCanonicalDecl()); in markAsEscaped()
248 void VisitValueDecl(const ValueDecl *VD) { in VisitValueDecl()
267 const ValueDecl *VD = C.getCapturedVar(); in VisitOpenMPCapturedStmt()
360 const ValueDecl *VD = C.getCapturedVar(); in VisitCapturedStmt()
[all …]
H A DCGOpenMPRuntimeGPU.h379 llvm::SmallVector<const ValueDecl*, 4> EscapedVariableLengthDecls;
380 llvm::SmallVector<const ValueDecl *, 4> DelayedVariableLengthDecls;
395 std::pair<const Decl *, llvm::SmallVector<const ValueDecl *, 4>>
/freebsd-14.2/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-14.2/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-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DDataflowEnvironment.cpp39 static llvm::DenseMap<const ValueDecl *, StorageLocation *> intersectDeclToLoc( in intersectDeclToLoc()
40 const llvm::DenseMap<const ValueDecl *, StorageLocation *> &DeclToLoc1, in intersectDeclToLoc() argument
41 const llvm::DenseMap<const ValueDecl *, StorageLocation *> &DeclToLoc2) { in intersectDeclToLoc()
42 llvm::DenseMap<const ValueDecl *, StorageLocation *> Result; in intersectDeclToLoc()
361 const ValueDecl *VD = E->getMemberDecl(); in getFieldsGlobalsAndFuncs()
692 StorageLocation &Environment::createStorageLocation(const ValueDecl &D) { in createStorageLocation()
711 StorageLocation *Environment::getStorageLocation(const ValueDecl &D) const { in getStorageLocation()
721 void Environment::removeDecl(const ValueDecl &D) { DeclToLoc.erase(&D); } in removeDecl()
827 Value *Environment::getValue(const ValueDecl &D) const { in getValue()
893 llvm::DenseMap<const ValueDecl *, StorageLocation *> FieldLocs; in createValueUnlessSelfReferential()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DThreadSafety.cpp279 using BeforeVect = SmallVector<const ValueDecl *, 4>;
296 BeforeInfo* insertAttrExprs(const ValueDecl* Vd,
299 BeforeInfo *getBeforeInfoForDecl(const ValueDecl *Vd,
302 void checkBeforeAfter(const ValueDecl* Vd,
635 const ValueDecl *VDec = DRE->getDecl(); in VisitBinaryOperator()
1133 BeforeSet::getBeforeInfoForDecl(const ValueDecl *Vd, in getBeforeInfoForDecl()
1154 std::function<bool (const ValueDecl*)> traverse = [&](const ValueDecl* Vd) { in checkBeforeAfter()
1235 const ValueDecl *VD = LP->clangDecl(); in inCurrentScope()
1250 const ValueDecl *VD = P->clangDecl(); in inCurrentScope()
1728 const ValueDecl *D = getValueDecl(Exp); in checkAccess()
[all …]
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