[mlir][Interfaces] Add implicit casts from concrete operation types to the interfaces...
authorRiver Riddle <riddleriver@gmail.com>
Fri, 13 Nov 2020 06:55:28 +0000 (22:55 -0800)
committerRiver Riddle <riddleriver@gmail.com>
Fri, 13 Nov 2020 06:56:08 +0000 (22:56 -0800)
commit7f61396cfac5f114707a4240a314dec28e03a1d5
tree4d3de3751df51e7d5051ad273e72788e749fa2ff
parent2e71dad3328e03337eca53352e7d45b6efc7e0a2
[mlir][Interfaces] Add implicit casts from concrete operation types to the interfaces they implement.

This removes the need to have an explicit `cast<>` given that we always know it `isa` instance of the interface.

Differential Revision: https://reviews.llvm.org/D91304
mlir/include/mlir/Support/InterfaceSupport.h
mlir/lib/Dialect/Linalg/Transforms/FusionOnTensors.cpp