summaryrefslogtreecommitdiffstats
path: root/mlir/include
diff options
context:
space:
mode:
authorFrank Laub <frank.laub@intel.com>2019-12-19 22:15:31 -0800
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-12-19 22:16:07 -0800
commit7811ad3c2b312fb5eda5ed5f3a1d15b8e6085b24 (patch)
treea1a1bfe8a4c2ab0c22febc7b4186eabc9c31ca37 /mlir/include
parentb6d54a1ba3f73aab629f73be1844674abc604294 (diff)
downloadbcm5719-llvm-7811ad3c2b312fb5eda5ed5f3a1d15b8e6085b24.tar.gz
bcm5719-llvm-7811ad3c2b312fb5eda5ed5f3a1d15b8e6085b24.zip
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
Diffstat (limited to 'mlir/include')
-rw-r--r--mlir/include/mlir/IR/OpImplementation.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/mlir/include/mlir/IR/OpImplementation.h b/mlir/include/mlir/IR/OpImplementation.h
index 97569cc06d9..7dd11d089c2 100644
--- a/mlir/include/mlir/IR/OpImplementation.h
+++ b/mlir/include/mlir/IR/OpImplementation.h
@@ -661,6 +661,11 @@ public:
/// OpAsmInterface.td#getAsmResultNames for usage details and documentation.
virtual void getAsmResultNames(Operation *op,
OpAsmSetValueNameFn setNameFn) const {}
+
+ /// Get a special name to use when printing the entry block arguments of the
+ /// region contained by an operation in this dialect.
+ virtual void getAsmBlockArgumentNames(Block *block,
+ OpAsmSetValueNameFn setNameFn) const {}
};
//===--------------------------------------------------------------------===//
OpenPOWER on IntegriCloud