Home
last modified time | relevance | path

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

123456

/netbsd/external/apache2/llvm/dist/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()
716 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) in printPretty()
745 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) { in printPretty()
770 const ValueDecl *VD = cast<ValueDecl>(BaseOrMember); in printPretty()
850 if (const ValueDecl *VD = getMemberPointerDecl()) { in printPretty()
[all …]
H A DAttrImpl.cpp145 OMPDeclareTargetDeclAttr::getActiveAttr(const ValueDecl *VD) { in getActiveAttr()
162 OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration(const ValueDecl *VD) { in isDeclareTargetDeclaration()
170 OMPDeclareTargetDeclAttr::getDeviceType(const ValueDecl *VD) { in getDeviceType()
178 OMPDeclareTargetDeclAttr::getLocation(const ValueDecl *VD) { in getLocation()
H A DASTDiagnostic.cpp563 ValueDecl *VD = nullptr;
668 void SetDeclarationDiff(ValueDecl *FromValueDecl, ValueDecl *ToValueDecl, in SetDeclarationDiff()
704 Expr *FromExpr, ValueDecl *ToValueDecl, bool ToAddressOf, in SetFromIntegerAndToDeclarationDiff()
821 void GetDeclarationDiff(ValueDecl *&FromValueDecl, ValueDecl *&ToValueDecl, in GetDeclarationDiff()
854 Expr *&FromExpr, ValueDecl *&ToValueDecl, bool &ToAddressOf, in GetFromIntegerAndToDeclarationDiff()
1249 ValueDecl *FromValueDecl = nullptr, *ToValueDecl = nullptr; in DiffNonTypes()
1504 ValueDecl *FromValueDecl, *ToValueDecl; in TreeToString()
1517 ValueDecl *FromValueDecl; in TreeToString()
1539 ValueDecl *ToValueDecl; in TreeToString()
1869 void PrintValueDecl(ValueDecl *FromValueDecl, ValueDecl *ToValueDecl, in PrintValueDecl()
[all …]
H A DOpenMPClause.cpp1068 ArrayRef<const ValueDecl *> Declarations) { in getUniqueDeclarationsTotalNumber()
1070 llvm::SmallPtrSet<const ValueDecl *, 8> Cache; in getUniqueDeclarationsTotalNumber()
1071 for (const ValueDecl *D : Declarations) { in getUniqueDeclarationsTotalNumber()
1072 const ValueDecl *VD = D ? cast<ValueDecl>(D->getCanonicalDecl()) : nullptr; in getUniqueDeclarationsTotalNumber()
1083 ArrayRef<ValueDecl *> Declarations, in Create()
1106 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
1127 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in CreateEmpty()
1137 ArrayRef<ValueDecl *> Declarations, in Create()
1159 totalSizeToAlloc<Expr *, ValueDecl *, unsigned, in Create()
1187 ArrayRef<ValueDecl *> Declarations, in Create()
[all …]
/netbsd/external/apache2/llvm/dist/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyCommon.h305 const ValueDecl* valueDecl() const { in valueDecl()
429 using LVarIndexMap = llvm::DenseMap<const ValueDecl *, unsigned>;
432 using NameVarPair = std::pair<const ValueDecl *, til::SExpr *>;
469 til::SExpr *getCurrentLVarDefinition(const ValueDecl *VD);
472 const ValueDecl *VD = nullptr);
473 til::SExpr *lookupVarDecl(const ValueDecl *VD);
474 til::SExpr *addVarDecl(const ValueDecl *VD, til::SExpr *E);
475 til::SExpr *updateVarDecl(const ValueDecl *VD, til::SExpr *E);
H A DThreadSafetyTIL.h373 Variable(SExpr *D, const ValueDecl *Cvd = nullptr)
393 const ValueDecl *clangDecl() const { return Cvdecl; } in clangDecl()
404 void setClangDecl(const ValueDecl *VD) { Cvdecl = VD; } in setClangDecl()
430 const ValueDecl *Cvdecl = nullptr;
645 const ValueDecl *clangDecl() const { return Cvdecl; } in clangDecl()
658 const ValueDecl *Cvdecl;
914 Project(SExpr *R, const ValueDecl *Cvd) in Project()
924 const ValueDecl *clangDecl() const { return Cvdecl; } in clangDecl()
961 const ValueDecl *Cvdecl;
1319 const ValueDecl *clangDecl() const { return Cvdecl; } in clangDecl()
[all …]
/netbsd/external/apache2/llvm/dist/clang/lib/Analysis/
H A DThreadSafety.cpp282 using BeforeVect = SmallVector<const ValueDecl *, 4>;
299 BeforeInfo* insertAttrExprs(const ValueDecl* Vd,
305 void checkBeforeAfter(const ValueDecl* Vd,
640 const ValueDecl *VDec = DRE->getDecl(); in VisitBinaryOperator()
1123 BeforeSet::getBeforeInfoForDecl(const ValueDecl *Vd, in getBeforeInfoForDecl()
1144 std::function<bool (const ValueDecl*)> traverse = [&](const ValueDecl* Vd) { in checkBeforeAfter()
1261 if (const ValueDecl *VD = getValueDecl(Arg)) in ClassifyDiagnostic()
1272 const ValueDecl *VD = LP->clangDecl(); in inCurrentScope()
1287 const ValueDecl *VD = P->clangDecl(); in inCurrentScope()
1753 const ValueDecl *D = getValueDecl(Exp); in checkAccess()
[all …]
H A DThreadSafetyCommon.cpp274 const auto *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); in translateDeclRefExpr()
310 static const ValueDecl *getValueDeclFromSExpr(const til::SExpr *E) { in getValueDeclFromSExpr()
350 const auto *D = cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl()); in translateMemberExpr()
498 const ValueDecl *VD = nullptr; in translateBinAssign()
636 const ValueDecl *VD) { in addStatement()
648 til::SExpr *SExprBuilder::lookupVarDecl(const ValueDecl *VD) { in lookupVarDecl()
658 static void maybeUpdateVD(til::SExpr *E, const ValueDecl *VD) { in maybeUpdateVD()
668 til::SExpr *SExprBuilder::addVarDecl(const ValueDecl *VD, til::SExpr *E) { in addVarDecl()
677 til::SExpr *SExprBuilder::updateVarDecl(const ValueDecl *VD, til::SExpr *E) { in updateVarDecl()
H A DBodyFarm.cpp102 MemberExpr *makeMemberExpression(Expr *base, ValueDecl *MemberDecl,
108 ValueDecl *findMemberField(const RecordDecl *RD, StringRef Name);
209 MemberExpr *ASTMaker::makeMemberExpression(Expr *base, ValueDecl *MemberDecl, in makeMemberExpression()
222 ValueDecl *ASTMaker::findMemberField(const RecordDecl *RD, StringRef Name) { in findMemberField()
234 return cast<ValueDecl>(FoundDecl); in findMemberField()
351 ValueDecl *FlagFieldDecl = M.findMemberField(FlagRecordDecl, "__state_"); in create_call_once()
/netbsd/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp144 ArrayRef<const ValueDecl *> EscapedDeclsForTeams, in buildRecordForGlobalizedVars()
151 for (const ValueDecl *D : EscapedDecls) in buildRecordForGlobalizedVars()
157 for (const ValueDecl *D : EscapedDeclsForTeams) in buildRecordForGlobalizedVars()
173 const ValueDecl *VD = Pair.second; in buildRecordForGlobalizedVars()
225 llvm::SetVector<const ValueDecl *> EscapedDecls;
233 void markAsEscaped(const ValueDecl *VD) { in markAsEscaped()
238 VD = cast<ValueDecl>(VD->getCanonicalDecl()); in markAsEscaped()
279 void VisitValueDecl(const ValueDecl *VD) { in VisitValueDecl()
298 const ValueDecl *VD = C.getCapturedVar(); in VisitOpenMPCapturedStmt()
391 const ValueDecl *VD = C.getCapturedVar(); in VisitCapturedStmt()
[all …]
/netbsd/external/apache2/llvm/dist/clang/lib/AST/Interp/
H A DProgram.h60 llvm::Optional<unsigned> getGlobal(const ValueDecl *VD);
63 llvm::Optional<unsigned> getOrCreateGlobal(const ValueDecl *VD);
69 llvm::Optional<unsigned> createGlobal(const ValueDecl *VD);
H A DDescriptor.h115 const ValueDecl *asValueDecl() const { in asValueDecl()
116 return dyn_cast_or_null<ValueDecl>(asDecl()); in asValueDecl()
H A DProgram.cpp87 llvm::Optional<unsigned> Program::getGlobal(const ValueDecl *VD) { in getGlobal()
111 llvm::Optional<unsigned> Program::getOrCreateGlobal(const ValueDecl *VD) { in getOrCreateGlobal()
141 llvm::Optional<unsigned> Program::createGlobal(const ValueDecl *VD) { in createGlobal()
/netbsd/external/apache2/llvm/dist/clang/include/clang/AST/
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 DASTMutationListener.h38 class ValueDecl; variable
93 virtual void InstantiationRequested(const ValueDecl *D) {} in InstantiationRequested()
H A DOpenMPClause.h4843 ValueDecl *AssociatedDeclaration = nullptr;
4865 ValueDecl *getAssociatedDeclaration() const { in getAssociatedDeclaration()
4977 return MutableArrayRef<ValueDecl *>( in getUniqueDeclsRef()
4984 ArrayRef<ValueDecl *> getUniqueDeclsRef() const { in getUniqueDeclsRef()
4985 return ArrayRef<ValueDecl *>( in getUniqueDeclsRef()
4993 void setUniqueDecls(ArrayRef<ValueDecl *> UDs) { in setUniqueDecls()
5223 ArrayRef<ValueDecl *>::iterator DeclCur;
5273 const ValueDecl *Declaration, ArrayRef<ValueDecl *> UniqueDecls, in const_component_lists_iterator()
5323 const ValueDecl *>
5326 const ValueDecl *Mapper = nullptr;
[all …]
H A DTemplateBase.h59 class ValueDecl;
110 ValueDecl *D;
163 TemplateArgument(ValueDecl *D, QualType QT) {
276 ValueDecl *getAsDecl() const {
H A DDeclOpenMP.h171 class OMPDeclareReductionDecl final : public ValueDecl, public DeclContext {
286 class OMPDeclareMapperDecl final : public OMPDeclarativeDirective<ValueDecl>,
288 friend class OMPDeclarativeDirective<ValueDecl>;
305 : OMPDeclarativeDirective<ValueDecl>(OMPDeclareMapper, DC, L, Name, Ty), in OMPDeclareMapperDecl()
H A DDeclCXX.h3101 ValueDecl *ExtendingDecl = nullptr;
3128 ValueDecl *getExtendingDecl() { return ExtendingDecl; } in getExtendingDecl()
3129 const ValueDecl *getExtendingDecl() const { return ExtendingDecl; } in getExtendingDecl()
3604 class UnresolvedUsingValueDecl : public ValueDecl,
3624 : ValueDecl(UnresolvedUsingValue, DC, in UnresolvedUsingValueDecl()
3828 class BindingDecl : public ValueDecl {
3830 ValueDecl *Decomp;
3838 : ValueDecl(Decl::Binding, DC, IdLoc, Id, QualType()) {} in BindingDecl()
3856 ValueDecl *getDecomposedDecl() const { return Decomp; } in getDecomposedDecl()
3871 void setDecomposedDecl(ValueDecl *Decomposed) { Decomp = Decomposed; } in setDecomposedDecl()
[all …]
/netbsd/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DExternalSemaSource.h37 class ValueDecl; variable
183 SmallVectorImpl<std::pair<ValueDecl *, in ReadPendingInstantiations() argument
H A DMultiplexExternalSemaSource.h31 class ValueDecl; variable
321 SmallVectorImpl<std::pair<ValueDecl*, SourceLocation> >& Pending) override;
/netbsd/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaOpenMP.cpp575 hasDSA(ValueDecl *D,
583 hasInnermostDSA(ValueDecl *D,
985 const ValueDecl *VD, in addMappableExpressionComponents()
1129 static const ValueDecl *getCanonicalDecl(const ValueDecl *D) { in getCanonicalDecl()
1146 static ValueDecl *getCanonicalDecl(ValueDecl *D) { in getCanonicalDecl()
1827 const ValueDecl *D, in hasExplicitDSA()
15236 ValueDecl *D = Res.first; in ActOnOpenMPPrivateClause()
16128 Lookups, [&SemaRef, Ty](ValueDecl *D) -> ValueDecl * { in buildDeclareReductionRef()
16138 Lookups, [&SemaRef, Ty, Loc](ValueDecl *D) -> ValueDecl * { in buildDeclareReductionRef()
18866 Lookups, [&SemaRef, Type](ValueDecl *D) -> ValueDecl * { in buildUserDefinedMapperRef()
[all …]
/netbsd/external/apache2/llvm/dist/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp252 if (const auto *VD = dyn_cast<ValueDecl>(ND)) { in HandleTranslationUnit()
263 std::set<const ValueDecl *> ValueDecls; in HandleTranslationUnit()
315 auto VD = cast<ValueDecl>(E.first)->getType(); in HandleTranslationUnit()
/netbsd/external/apache2/llvm/dist/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp130 SmallVector<ValueDecl *, 8> BlockByCopyDecls;
132 SmallVector<ValueDecl *, 8> BlockByRefDecls;
1513 ValueDecl *VD = DR->getDecl(); in RewriteObjCForCollectionStmt()
3367 for (ValueDecl *VD : ImportedBlockDecls) { in SynthesizeBlockHelperFuncs()
3566 ValueDecl *VD = Exp->getDecl(); in SynthesizeBlockLiterals()
3847 ValueDecl *VD = DeclRefExp->getDecl(); in RewriteBlockDeclRefExpr()
3882 ValueDecl *VD = DRE->getDecl(); in RewriteLocalVariableExternalStorage()
4375 ValueDecl *VD = Exp->getDecl(); in SynthBlockInitExpr()
4492 ValueDecl *ND = (*I); in SynthBlockInitExpr()
4704 if (ValueDecl *ND = dyn_cast<ValueDecl>(SD)) { in RewriteFunctionBodyOrGlobalInitializer()
[all …]
/netbsd/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp45 unsigned getStorageAlign(CheckerContext &C, const ValueDecl *VD) const;
168 const ValueDecl *VD) const { in getStorageAlign()

123456