Add missing virtual inliner interface method in SPIR-V dialect.
authorMahesh Ravishankar <ravishankarm@google.com>
Tue, 17 Dec 2019 21:05:36 +0000 (13:05 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 17 Dec 2019 21:06:05 +0000 (13:06 -0800)
commit319cca3bbe69b20334caee2f93aaf6fe0318ca0d
tree0f799d931e405c787ac5caa9c9c21b847ec0ed5d
parent42b3fe833502390d44d2df126048c8310dffa9bd
Add missing virtual inliner interface method in SPIR-V dialect.

The inline interface uses two methods to check legality of inling:
1) Can a region be inlined into another.
2) Can an operation be inlined into another.
Setting the former to true, allows the inliner to use the second for
legality checks. Add this method to the SPIR-V dialect inlining
interface.

PiperOrigin-RevId: 286041734
mlir/lib/Dialect/SPIRV/SPIRVDialect.cpp
mlir/test/Dialect/SPIRV/Transforms/inlining.mlir