Add a `skipRegion()` feature to the OpPrintingFlags for MLIR ASM printer
authorMehdi Amini <joker.eph@gmail.com>
Sun, 12 Mar 2023 22:44:21 +0000 (23:44 +0100)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 13 Mar 2023 15:50:53 +0000 (16:50 +0100)
commit0fe16607a523af3d8978ad636134e4d3034e365c
treed7d61528ed0a2a1e754d5765e81b799fd20d67f8
parent1285a495d5886b99f8d193c90b258a56f89c8937
Add a `skipRegion()` feature to the OpPrintingFlags for MLIR ASM printer

This is a convenient flag for context where we intend to summarize a top-level
operation without the full-blown regions it may hold.

Differential Revision: https://reviews.llvm.org/D145889
mlir/include/mlir/IR/OperationSupport.h
mlir/lib/IR/AsmPrinter.cpp
mlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp
mlir/test/mlir-lsp-server/hover.test