llvm-project/mlir/lib/IR
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
..
AffineExpr.cpp Affine expr simplification for add of const multiple of same expression 2020-03-17 08:22:17 +05:30
AffineExprDetail.h Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
AffineMap.cpp [mlir][LLVMIR] Fix fusion for rank-0 tensors 2020-03-20 13:17:19 -07:00
AffineMapDetail.h Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
AsmPrinter.cpp Add support for custom op parser/printer hooks to know about result names. 2020-03-23 08:58:05 -07:00
AttributeDetail.h Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
Attributes.cpp [mlir] Update several usages of IntegerType to properly handled unsignedness. 2020-03-02 09:19:26 -08:00
Block.cpp [mlir] Refactor a few users to no longer rely on the successor operand API of Operation. 2020-03-05 12:51:59 -08:00
Builders.cpp Add Builder::get{I32,I64}TensorAttr. 2020-03-19 11:37:59 -07:00
CMakeLists.txt [mlir][NFC] Move the interfaces and traits for side effects out of IR/ to Interfaces/ 2020-03-10 12:45:45 -07:00
Diagnostics.cpp [mlir] Use the first location in the fused location for diagnostic handler 2020-02-11 07:34:15 -05:00
Dialect.cpp [MLIR] Deduplicate dialect registration by ClassID 2020-03-18 19:52:27 -07:00
Function.cpp [mlir][spirv] Introduce spv.func 2020-02-12 07:46:43 -05:00
FunctionImplementation.cpp Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
IntegerSet.cpp Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
IntegerSetDetail.h Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
Location.cpp Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
LocationDetail.h Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
MLIRContext.cpp [mlir][Linalg] Revisit 0-D abstraction 2020-03-10 15:14:09 -04:00
Module.cpp Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
Operation.cpp [mlir][NFC] Move the interfaces and traits for side effects out of IR/ to Interfaces/ 2020-03-10 12:45:45 -07:00
OperationSupport.cpp [mlir] Remove successor operands from the Operation class 2020-03-05 12:53:02 -08:00
PatternMatch.cpp [mlir][NFC] Replace all usages of PatternMatchResult with LogicalResult 2020-03-17 20:21:32 -07:00
Region.cpp Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
StandardTypes.cpp [mlir][spirv] Use memref memory space for storage class 2020-03-18 20:11:04 -04:00
SymbolTable.cpp [mlir] Add a DCE pass for dead symbols. 2020-01-27 23:29:30 -08:00
TypeDetail.h [mlir] Add a signedness semantics bit to IntegerType 2020-02-21 09:16:54 -05:00
TypeUtilities.cpp Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
Types.cpp [mlir] Refactor the structure of the 'verifyConstructionInvariants' methods. 2020-02-20 10:37:52 -08:00
Value.cpp [mlir] Optimize OpResult use case for single result operations. 2020-01-28 11:20:54 -08:00
Visitors.cpp Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00