hanchenye-llvm-project/mlir/test
Markus Böck a96911c49b [mlir] Escape strings of opaque attributes
Opaque attributes that currently contain string literals can't currently be properly roundtripped as they are not printed as escaped strings. This leads to incorrect tokens being generated and the parser to almost certainly fail. This patch simply uses llvm::printEscapedString from LLVM. It escapes all non printable characters and quotes to \xx hex literals, and backslashes to two backslashes. This syntax is supported by MLIRs Lexer as well. The same function is also currently in use for the same purpose in printSymbolReference, printAttribute for StringAttr and many more in AsmPrinter.cpp.

Differential Revision: https://reviews.llvm.org/D105405
2021-07-05 12:13:36 +02:00
..
Analysis [mlir] Add support for querying the ModRef behavior from the AliasAnalysis class 2021-05-27 13:57:29 -07:00
CAPI Add C API files for the LLVM dialect 2021-07-02 11:55:44 -07:00
Conversion [mlir] Add LogOp lowering from Complex dialect to Standard/Math dialect. 2021-07-05 09:33:45 +02:00
Dialect [mlir][sparse] support for negation and subtractions 2021-07-02 15:55:05 -07:00
Examples [MLIR] Fix Standalone dialect test to work in out-of-tree builds 2021-06-02 17:24:46 +00:00
IR [mlir] Escape strings of opaque attributes 2021-07-05 12:13:36 +02:00
Integration [mlir][Linalg] Add comprehensive bufferization support for linalg::InitTensor and tensor::CastOp (11/n) 2021-07-01 11:26:01 +00:00
Interfaces [mlir][tensor] Add tensor.dim operation 2021-07-01 10:00:19 +09:00
Pass [mlir] Add a ThreadPool to MLIRContext and refactor MLIR threading usage 2021-06-23 01:29:24 +00:00
Rewrite
Target [mlir] Add support for LLVM's dso_local attr 2021-06-29 15:00:48 +02:00
Transforms [mlir][tensor] Add tensor.dim operation 2021-07-01 10:00:19 +09:00
Unit Revert "Attempt to disable MLIR JIT tests on PowerPC to unbreak the bot" 2021-06-29 18:03:23 -05:00
lib [mlir][tosa] Add tosa shape inference with InferReturnTypeComponent 2021-07-01 16:04:26 -07:00
mlir-cpu-runner [mlir][llvm] Add a test for memref.copy lowering to llvm 2021-06-30 10:49:29 +02:00
mlir-linalg-ods-gen [mlir][linalg] Remove the StructuredOp capture mechanism. 2021-06-28 07:57:40 +00:00
mlir-lsp-server [mlir-lsp-server] Add support for textDocument/documentSymbols 2021-06-10 10:58:39 -07:00
mlir-opt [mlir] Remove SDBM 2021-06-29 14:46:26 +02:00
mlir-reduce [mlir-reduce] Reducer refactor. 2021-06-02 07:45:00 +08:00
mlir-spirv-cpu-runner
mlir-tblgen [mlir-tblgen] Avoid ODS verifier duplication 2021-07-05 10:09:41 +08:00
mlir-translate
mlir-vulkan-runner
python [mlir][linalg][python] Add min operation in OpDSL. 2021-07-02 16:27:30 +00:00
APITest.h
CMakeLists.txt Add C API files for the LLVM dialect 2021-07-02 11:55:44 -07:00
lit.cfg.py [mlir] Remove SDBM 2021-06-29 14:46:26 +02:00
lit.site.cfg.py.in [MLIR] Fix Standalone dialect test to work in out-of-tree builds 2021-06-02 17:24:46 +00:00