llvm-project/mlir
Chris Lattner 596da62d21 Add support for custom op parser/printer hooks to know about result names.
Summary:
This allows the custom parser/printer hooks to do interesting things with
the SSA names.  This patch:

 - Adds a new 'getResultName' method to OpAsmParser that allows a parser
   implementation to get information about its result names, along with
   a getNumResults() method that allows op parser impls to know how many
   results are expected.
 - Adds a OpAsmPrinter::printOperand overload that takes an explicit stream.
 - Adds a test.string_attr_pretty_name operation that uses these hooks to
   do fancy things with the result name.

Reviewers: rriddle!

Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D76205
2020-03-23 08:58:05 -07:00
..
cmake/modules [MLIR] Fix Xcode build due to incorrect library path 2020-03-20 16:38:16 -07:00
docs [mlir] Change include image to be toplevel 2020-03-22 13:13:17 -07:00
examples [mlir][NFC] Cleanup AffineOps directory structure 2020-03-20 14:23:43 -07:00
include Add support for custom op parser/printer hooks to know about result names. 2020-03-23 08:58:05 -07:00
lib Add support for custom op parser/printer hooks to know about result names. 2020-03-23 08:58:05 -07:00
test Add support for custom op parser/printer hooks to know about result names. 2020-03-23 08:58:05 -07:00
tools Fix all-reduce int tests by host-registering memrefs. 2020-03-23 11:48:13 +01:00
unittests [mlir][NFC] Rename QuantOps to Quant 2020-03-17 15:16:47 -07:00
utils [mlir][spirv] Support implied extensions and capabilities 2020-01-17 08:01:57 -05:00
.clang-format [mlir] add .clang-format 2019-03-29 12:41:43 -07:00
.clang-tidy Fix MLIR clang-tidy: when tweaking it does not inherit from the parent 2020-03-07 17:44:21 +00:00
CMakeLists.txt [mlir] Fix cross compiling MLIR 2020-03-14 19:18:40 +00:00
LICENSE.TXT Add the Apache2 with LLVM exceptions license to MLIR 2019-12-24 00:58:06 -08:00
README.md mlir README.md: Fix the syntax 2019-12-24 13:31:07 +01:00

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.