[mlir] Refactor pass crash reproducer generation to be an assembly resourceWe currently generate reproducer configurations using a comment placed atthe top of the generated .mlir file. This is kin
[mlir] Refactor pass crash reproducer generation to be an assembly resourceWe currently generate reproducer configurations using a comment placed atthe top of the generated .mlir file. This is kind of hacky given that commentshave no semantic context in the source file and can easily be dropped. Thisstrategy also wouldn't work if/when we have a bitcode format. This commitswitches to using an external assembly resource, which is verifiable/canwork with a hypothetical bitcode naturally/and removes the awkward processingfrom mlir-opt for splicing comments and re-applying command line options. Withthe removal of command line munging, this opens up new possibilities forexecuting reproducers in memory.Differential Revision: https://reviews.llvm.org/D126447
show more ...
[mlir] Add `enableSplitting` and `insertMarkerInOutput` options to `splitAndProcessBuffer``enableSplitting` simply enables/disables whether we should splitor use the full buffer. `insertMarkerInOu
[mlir] Add `enableSplitting` and `insertMarkerInOutput` options to `splitAndProcessBuffer``enableSplitting` simply enables/disables whether we should splitor use the full buffer. `insertMarkerInOutput` toggles if split markersshould be inserted in between prcessed output chunks.These options allow for merging the duplicate code paths we havewhen splitting is optional.Differential Revision: https://reviews.llvm.org/D128764
[mlir][NFC] Move MlirOptMain to the Tools/ directoryMlirOptMain is currently awkwardly shoved into mlir/Support. This commitmoves it to the Tools/ directory, which is intended for libraries used t
[mlir][NFC] Move MlirOptMain to the Tools/ directoryMlirOptMain is currently awkwardly shoved into mlir/Support. This commitmoves it to the Tools/ directory, which is intended for libraries used toimplement tools.Differential Revision: https://reviews.llvm.org/D121025