LLVM: lib/TableGen/Parser.cpp Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
14
15using namespace llvm;
16
18
19
20
21
23 SrcMgr.takeSourceBuffersFrom(InputSrcMgr);
28
29
30 auto *MainFileBuffer = SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID());
31 Records.saveInputFilename(MainFileBuffer->getBufferIdentifier().str());
32
34 false,
35 true);
37
38
39
43}
Defines the virtual file system interface vfs::FileSystem.
This class represents success/failure for parsing-like operations that find it important to chain tog...
This owns the files read by a parser, handles include stacks, and handles diagnostic wrangling.
void * getDiagContext() const
ArrayRef< std::string > getIncludeDirs() const
Return the include directories of this source manager.
DiagHandlerTy getDiagHandler() const
IntrusiveRefCntPtr< vfs::FileSystem > getVirtualFileSystem() const
void takeSourceBuffersFrom(SourceMgr &SrcMgr, SMLoc MainBufferIncludeLoc=SMLoc())
Takes the source buffers from the given source manager and append them to the current manager.
This is an optimization pass for GlobalISel generic memory operations.
bool TableGenParseFile(SourceMgr &InputSrcMgr, RecordKeeper &Records)
Parse the TableGen file defined within the main buffer of the given SourceMgr.
Definition Parser.cpp:17