Add a `HasParent` operation trait to enforce a specific parent on an operation (NFC)
authorMehdi Amini <aminim@google.com>
Mon, 29 Jul 2019 17:45:17 +0000 (10:45 -0700)
committerjpienaar <jpienaar@google.com>
Tue, 30 Jul 2019 13:17:11 +0000 (06:17 -0700)
commitd5a02fcd9642007b98f7c80cc4a0bb204a78805d
tree23d4dcdc4eaa0294112d8d7678dff329250e8dc6
parentb2c2b4bb1dfc048f3a5e13ce3875c304e13e671d
Add a `HasParent` operation trait to enforce a specific parent on an operation (NFC)

PiperOrigin-RevId: 260532592
mlir/include/mlir/IR/OpBase.td
mlir/include/mlir/IR/OpDefinition.h
mlir/include/mlir/StandardOps/Ops.td
mlir/lib/StandardOps/Ops.cpp
mlir/test/IR/invalid-ops.mlir
mlir/test/IR/traits.mlir
mlir/test/lib/TestDialect/TestOps.td