Allow dialect to create friendly names for region arguments
authorFrank Laub <frank.laub@intel.com>
Fri, 20 Dec 2019 06:15:31 +0000 (22:15 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 20 Dec 2019 06:16:07 +0000 (22:16 -0800)
commit7811ad3c2b312fb5eda5ed5f3a1d15b8e6085b24
treea1a1bfe8a4c2ab0c22febc7b4186eabc9c31ca37
parentb6d54a1ba3f73aab629f73be1844674abc604294
Allow dialect to create friendly names for region arguments

This is the block argument equivalent of the existing `getAsmResultNames` hook.

Closes tensorflow/mlir#329

COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/mlir/pull/329 from plaidml:flaub-region-arg-names fc7876f2d1335024e441083cd25263fd6247eb7d
PiperOrigin-RevId: 286523299
mlir/include/mlir/IR/OpImplementation.h
mlir/lib/IR/AsmPrinter.cpp
mlir/test/IR/pretty-region-args.mlir [new file with mode: 0644]
mlir/test/lib/TestDialect/TestDialect.cpp