[mlir][Parser] Fix memory leak when failing to parse a forward declared blockThis commit fixes a failure edge case where we accidentally drop forwarddeclared blocks in the error case. This allows
[mlir][Parser] Fix memory leak when failing to parse a forward declared blockThis commit fixes a failure edge case where we accidentally drop forwarddeclared blocks in the error case. This allows for running theinvalid.mlir test in asan mode now.Fixes #51387Differential Revision: https://reviews.llvm.org/D130132
show more ...
[mlir] Refactor the Parser library in preparation for an MLIR binary formatThe current Parser library is solely focused on providing API forthe textual MLIR format, but MLIR will soon also provide
[mlir] Refactor the Parser library in preparation for an MLIR binary formatThe current Parser library is solely focused on providing API forthe textual MLIR format, but MLIR will soon also provide a binaryformat. This commit renames the current Parser library to AsmParser tobetter correspond to what the library is actually intended for. A newParser library is added which will act as a unified parser interfacebetween both text and binary formats. Most parser clients areunaffected, given that the unified interface is essentially the same asthe current interface. Only clients that rely on utilizing theAsmParserState, or those that want to parse Attributes/Types need to beupdated to point to the AsmParser library.Differential Revision: https://reviews.llvm.org/D129605