29 Records.saveInputFilename(MainFileBuffer->getBufferIdentifier().str());
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.
unsigned getMainFileID() const
DiagHandlerTy getDiagHandler() const
void setIncludeDirs(const std::vector< std::string > &Dirs)
const MemoryBuffer * getMemoryBuffer(unsigned i) const
void setDiagHandler(DiagHandlerTy DH, void *Ctx=nullptr)
Specify a diagnostic handler to be invoked every time PrintMessage is called.
void takeSourceBuffersFrom(SourceMgr &SrcMgr, SMLoc MainBufferIncludeLoc=SMLoc())
Takes the source buffers from the given source manager and append them to the current manager.
bool ParseFile()
ParseFile - Main entrypoint for parsing a tblgen file.
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.