14 #ifndef MLIR_TOOLS_PARSEUTILITIES_H
15 #define MLIR_TOOLS_PARSEUTILITIES_H
26 inline OwningOpRef<Operation *>
29 if (insertImplicitModule) {
31 return parseSourceFile<ModuleOp>(sourceMgr,
config);
This class represents a configuration for the MLIR assembly parser.
Include the generated interface declarations.
const FrozenRewritePatternSet GreedyRewriteConfig config
OwningOpRef< Operation * > parseSourceFileForTool(const std::shared_ptr< llvm::SourceMgr > &sourceMgr, const ParserConfig &config, bool insertImplicitModule)
This parses the file specified by the indicated SourceMgr.
LogicalResult parseSourceFile(const llvm::SourceMgr &sourceMgr, Block *block, const ParserConfig &config, LocationAttr *sourceFileLoc=nullptr)
This parses the file specified by the indicated SourceMgr and appends parsed operations to the given ...