Home
last modified time | relevance | path

Searched refs:AST (Results 1 – 25 of 99) sorted by relevance

1234

/src/contrib/llvm-project/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp45 ASTContext &AST = S.getASTContext(); in BuiltinTypeDeclBuilder() local
46 IdentifierInfo &II = AST.Idents.get(Name, tok::TokenKind::identifier); in BuiltinTypeDeclBuilder()
65 Record = CXXRecordDecl::Create(AST, TagDecl::TagKind::Class, HLSLNamespace, in BuiltinTypeDeclBuilder()
73 Record->addAttr(FinalAttr::CreateImplicit(AST, SourceRange(), in BuiltinTypeDeclBuilder()
89 ASTContext &AST = Record->getASTContext(); in addMemberVariable() local
91 IdentifierInfo &II = AST.Idents.get(Name, tok::TokenKind::identifier); in addMemberVariable()
93 AST.getTrivialTypeSourceInfo(Type, SourceLocation()); in addMemberVariable()
95 AST, Record, SourceLocation(), SourceLocation(), &II, Type, MemTySource, in addMemberVariable()
129 static DeclRefExpr *lookupBuiltinFunction(ASTContext &AST, Sema &S, in lookupBuiltinFunction()
131 IdentifierInfo &II = AST.Idents.get(Name, tok::TokenKind::identifier); in lookupBuiltinFunction()
[all …]
/src/contrib/llvm-project/llvm/lib/Support/
H A DZ3Solver.cpp154 Z3_ast AST; member in __anon1aad92b90111::Z3Expr
157 Z3Expr(Z3Context &C, Z3_ast ZA) : SMTExpr(), Context(C), AST(ZA) { in Z3Expr()
158 Z3_inc_ref(Context.Context, AST); in Z3Expr()
162 Z3Expr(const Z3Expr &Copy) : SMTExpr(), Context(Copy.Context), AST(Copy.AST) { in Z3Expr()
163 Z3_inc_ref(Context.Context, AST); in Z3Expr()
169 Z3_inc_ref(Context.Context, Other.AST); in operator =()
170 Z3_dec_ref(Context.Context, AST); in operator =()
171 AST = Other.AST; in operator =()
179 if (AST) in ~Z3Expr()
180 Z3_dec_ref(Context.Context, AST); in ~Z3Expr()
[all …]
/src/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineModuleSlotTracker.cpp17 AbstractSlotTrackerStorage *AST, const MachineFunction &MF) { in processMachineFunctionMetadata() argument
24 AST->createMetadataSlot(AAInfo.TBAA); in processMachineFunctionMetadata()
26 AST->createMetadataSlot(AAInfo.TBAAStruct); in processMachineFunctionMetadata()
28 AST->createMetadataSlot(AAInfo.Scope); in processMachineFunctionMetadata()
30 AST->createMetadataSlot(AAInfo.NoAlias); in processMachineFunctionMetadata()
35 AbstractSlotTrackerStorage *AST, const Module *M, in processMachineModule() argument
41 MDNStartSlot = AST->getNextMetadataSlot(); in processMachineModule()
43 processMachineFunctionMetadata(AST, *MF); in processMachineModule()
44 MDNEndSlot = AST->getNextMetadataSlot(); in processMachineModule()
51 AbstractSlotTrackerStorage *AST, const Function *F, in processMachineFunction() argument
[all …]
/src/contrib/llvm-project/clang/lib/Frontend/
H A DASTUnit.cpp791 ASTUnit &AST, in ConfigureDiags() argument
796 &AST.StoredDiagnostics, nullptr, in ConfigureDiags()
808 std::unique_ptr<ASTUnit> AST(new ASTUnit(true)); in LoadFromASTFile() local
812 ASTUnitCleanup(AST.get()); in LoadFromASTFile()
817 ConfigureDiags(Diags, *AST, CaptureDiagnostics); in LoadFromASTFile()
819 AST->LangOpts = LangOpts ? LangOpts : std::make_shared<LangOptions>(); in LoadFromASTFile()
820 AST->OnlyLocalDecls = OnlyLocalDecls; in LoadFromASTFile()
821 AST->CaptureDiagnostics = CaptureDiagnostics; in LoadFromASTFile()
822 AST->Diagnostics = Diags; in LoadFromASTFile()
823 AST->FileMgr = new FileManager(FileSystemOpts, VFS); in LoadFromASTFile()
[all …]
H A DFrontendAction.cpp152 std::unique_ptr<ASTUnit> AST) { in setCurrentInput() argument
154 CurrentASTUnit = std::move(AST); in setCurrentInput()
627 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile( in BeginSourceFile() local
631 if (!AST) in BeginSourceFile()
636 CI.getHeaderSearchOpts() = AST->getHeaderSearchOpts(); in BeginSourceFile()
637 CI.getPreprocessorOpts() = AST->getPreprocessorOpts(); in BeginSourceFile()
638 CI.getLangOpts() = AST->getLangOpts(); in BeginSourceFile()
642 CI.setFileManager(&AST->getFileManager()); in BeginSourceFile()
644 CI.getSourceManager().initializeForReplay(AST->getSourceManager()); in BeginSourceFile()
649 if (auto ASTReader = AST->getASTReader()) { in BeginSourceFile()
[all …]
/src/lib/clang/libclang/
H A DMakefile71 SRCS_MIN+= AST/APValue.cpp
72 SRCS_MIN+= AST/ASTConcept.cpp
73 SRCS_MIN+= AST/ASTConsumer.cpp
74 SRCS_MIN+= AST/ASTContext.cpp
75 SRCS_MIN+= AST/ASTDiagnostic.cpp
76 SRCS_MIN+= AST/ASTDumper.cpp
77 SRCS_MIN+= AST/ASTImporter.cpp
78 SRCS_MIN+= AST/ASTImporterLookupTable.cpp
79 SRCS_MIN+= AST/ASTStructuralEquivalence.cpp
80 SRCS_MIN+= AST/ASTTypeTraits.cpp
[all …]
/src/contrib/llvm-project/clang/include/clang/AST/
H A DExternalASTMerger.h54 ASTContext *AST; member
74 ASTContext &AST; member
84 ASTContext &AST; variable
95 ImporterSource(ASTContext &AST, FileManager &FM, const OriginMap &OM,
97 : AST(AST), FM(FM), OM(OM), Temporary(Temporary), Merger(Merger) {} in AST() function
98 ASTContext &getASTContext() const { return AST; } in getASTContext()
/src/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRefactoringRuleContext.h45 bool hasASTContext() const { return AST; } in hasASTContext()
48 assert(AST && "no AST!"); in getASTContext()
49 return *AST; in getASTContext()
52 void setASTContext(ASTContext &Context) { AST = &Context; } in setASTContext()
78 ASTContext *AST = nullptr; variable
/src/contrib/llvm-project/clang/include/
H A Dmodule.modulemap14 // FIXME: Exclude these headers to avoid pulling all of the AST matchers
16 // importing the AST matchers library gives a link dependency on the AST
17 // matchers (and thus the AST), which clang-format should not have.
23 umbrella "clang/AST"
25 textual header "clang/AST/BuiltinTypes.def"
26 textual header "clang/AST/CXXRecordDeclDefinitionBits.def"
27 textual header "clang/AST/OperationKinds.def"
28 textual header "clang/AST/TypeLocNodes.def"
111 module AST { header "clang/AST/ASTDiagnostic.h" export * }
112 module Comment { header "clang/AST/CommentDiagnostic.h" export * }
[all …]
/src/contrib/llvm-project/clang/include/clang/Basic/
H A DDiagnosticSerializationKinds.td10 let CategoryName = "AST Deserialization Issue" in {
17 "malformed or corrupted AST file: '%0'">, DefaultFatal;
22 "%select{precompiled header|module file|AST file}1 '%2' was built"
36 "%select{AST file was|current translation unit is}0 compiled with the target "
37 "feature '%1' but the %select{current translation unit is|AST file was}0 "
65 "%select{PCH|module|AST}0 file '%1' not found%select{|: %3}2">, DefaultFatal;
67 "%select{PCH|module|AST}0 file '%1' is out of date and "
70 "file '%1' is not a valid precompiled %select{PCH|module|AST}0 file: %2">, DefaultFatal;
74 "AST file '%0' was not built as a module">, DefaultFatal;
87 "module '%0' in AST file '%1' %select{(imported by AST file '%2') |}4"
[all …]
/src/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DAliasSetTracker.h94 void dropRef(AliasSetTracker &AST) { in dropRef() argument
97 removeFromTracker(AST); in dropRef()
115 void mergeSetIn(AliasSet &AS, AliasSetTracker &AST, BatchAAResults &BatchAA);
139 void removeFromTracker(AliasSetTracker &AST);
141 void addMemoryLocation(AliasSetTracker &AST, const MemoryLocation &MemLoc,
193 void add(const AliasSetTracker &AST); // Add alias relations from another AST
263 inline raw_ostream& operator<<(raw_ostream &OS, const AliasSetTracker &AST) {
264 AST.print(OS);
/src/contrib/llvm-project/clang/lib/Tooling/ASTDiff/
H A DASTDiff.cpp115 Impl(SyntaxTree *Parent, ASTContext &AST);
117 Impl(SyntaxTree *Parent, Decl *N, ASTContext &AST);
118 Impl(SyntaxTree *Parent, Stmt *N, ASTContext &AST);
121 std::enable_if_t<std::is_base_of_v<Stmt, T>, T> *Node, ASTContext &AST) in Impl() argument
122 : Impl(Parent, dyn_cast<Stmt>(Node), AST) {} in Impl()
125 std::enable_if_t<std::is_base_of_v<Decl, T>, T> *Node, ASTContext &AST) in Impl() argument
126 : Impl(Parent, dyn_cast<Decl>(Node), AST) {} in Impl()
129 ASTContext &AST; member in clang::diff::SyntaxTree::Impl
232 if (isNodeExcluded(Tree.AST.getSourceManager(), D)) in TraverseDecl()
242 if (isNodeExcluded(Tree.AST.getSourceManager(), S)) in TraverseStmt()
[all …]
/src/contrib/llvm-project/clang/lib/AST/
H A DExternalASTMerger.cpp210 Parent.HasImporterForOrigin(*FromOrigins.at(FromDC).AST)) { in Imported()
216 << (void*)FromOrigins.at(FromDC).AST in Imported()
281 LazyASTImporter &Importer = LazyImporterForOrigin(*this, *Origin.AST); in ForEachMatchingDC()
299 << ", (ASTContext*)" << (void*)&Target.AST in ForEachMatchingDC()
368 LazyASTImporter &Importer = LazyImporterForOrigin(*this, *Origin.AST); in MaybeRecordOrigin()
371 LookupSameContext(Origin.AST->getTranslationUnitDecl(), ToDC, Reverse); in MaybeRecordOrigin()
379 << ", (ASTContext*)" << (void*)&Origin.AST in MaybeRecordOrigin()
385 RecordOriginImpl(ToDC, Origin, ImporterForOrigin(*Origin.AST)); in ForceRecordOrigin()
397 *Target.AST.getTranslationUnitDecl()); in ExternalASTMerger()
402 assert(&D->getASTContext() == &Target.AST); in FindOriginalDecl()
[all …]
/src/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DExtract.cpp109 ASTContext &AST = Context.getASTContext(); in createSourceReplacements() local
110 SourceManager &SM = AST.getSourceManager(); in createSourceReplacements()
111 const LangOptions &LangOpts = AST.getLangOpts(); in createSourceReplacements()
117 QualType ReturnType = AST.VoidTy; in createSourceReplacements()
143 PrintingPolicy PP = AST.getPrintingPolicy(); in createSourceReplacements()
/src/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineModuleSlotTracker.h27 void processMachineFunctionMetadata(AbstractSlotTrackerStorage *AST,
29 void processMachineModule(AbstractSlotTrackerStorage *AST, const Module *M,
31 void processMachineFunction(AbstractSlotTrackerStorage *AST,
/src/contrib/llvm-project/llvm/lib/Analysis/
H A DAliasSetTracker.cpp44 void AliasSet::mergeSetIn(AliasSet &AS, AliasSetTracker &AST, in mergeSetIn() argument
87 AS.dropRef(AST); in mergeSetIn()
106 void AliasSet::removeFromTracker(AliasSetTracker &AST) { in removeFromTracker() argument
108 AST.removeAliasSet(this); in removeFromTracker()
111 void AliasSet::addMemoryLocation(AliasSetTracker &AST, in addMemoryLocation() argument
118 return AST.getAliasAnalysis().isMustAlias(MemLoc, ASMemLoc); in addMemoryLocation()
126 AST.TotalAliasSetSize++; in addMemoryLocation()
437 void AliasSetTracker::add(const AliasSetTracker &AST) { in add() argument
438 assert(&AA == &AST.AA && in add()
444 for (const AliasSet &AS : AST) { in add()
/src/contrib/llvm-project/clang/include/clang/Tooling/ASTDiff/
H A DASTDiff.h57 SyntaxTree(ASTContext &AST);
60 SyntaxTree(T *Node, ASTContext &AST) in SyntaxTree() argument
61 : TreeImpl(std::make_unique<Impl>(this, Node, AST)) {} in SyntaxTree()
/src/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DHTMLLogger.cpp349 const auto &AST = ACFG->getDecl().getASTContext(); in writeCode() local
358 AST.getSourceManager(), AST.getLangOpts()); in writeCode()
362 Range, AST.getSourceManager(), AST.getLangOpts(), &Invalid); in writeCode()
430 AST.getSourceManager(), AST.getLangOpts()); in writeCode()
450 AST.getSourceManager().getSpellingLineNumber(Range.getBegin()); in writeCode()
455 AST.getSourceManager().getFilename(Range.getBegin())), in writeCode()
/src/contrib/llvm-project/llvm/lib/FileCheck/
H A DFileCheckImpl.h192 std::unique_ptr<ExpressionAST> AST;
200 Expression(std::unique_ptr<ExpressionAST> AST, ExpressionFormat Format) in Expression() argument
201 : AST(std::move(AST)), Format(Format) {} in Expression()
205 ExpressionAST *getAST() const { return AST.get(); } in getAST()
/src/contrib/llvm-project/llvm/lib/Target/ARC/
H A DARCOptAddrMode.cpp70 const ARCSubtarget *AST = nullptr; member in __anon3defee290111::ARCOptAddrMode
469 Ldst.setDesc(AST->getInstrInfo()->get(NewOpcode)); in changeToAddrMode()
508 AST = &MF.getSubtarget<ARCSubtarget>(); in runOnMachineFunction()
509 AII = AST->getInstrInfo(); in runOnMachineFunction()
/src/share/i18n/esdb/AST/
H A DMakefile5 ESUBDIR= AST
/src/share/i18n/csmapper/AST/
H A DMakefile4 ESUBDIR= AST
/src/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopVersioningLICM.cpp230 AliasSetTracker AST(BAA); in legalLoopMemoryAccesses() local
234 AST.add(*Block); in legalLoopMemoryAccesses()
252 for (const auto &I : AST) { in legalLoopMemoryAccesses()
/src/targets/pseudo/userland/share/
H A DMakefile.depend27 share/i18n/csmapper/AST \
44 share/i18n/esdb/AST \
/src/contrib/tzdata/
H A Dzonenow.tab94 # -04 - AST
95 XX +1828-06954 America/Santo_Domingo Atlantic Standard (AST) - eastern Caribbean
100 # -04/-03 - AST/ADT (North America DST)
101 XX +4439-06336 America/Halifax Atlantic (AST/ADT) - Canada; Bermuda

1234