[mlir][EmitC] Remove Pure trait from `emitc.include`
authorChristopher Bate <cbate@nvidia.com>
Thu, 8 Dec 2022 00:28:27 +0000 (17:28 -0700)
committerChristopher Bate <cbate@nvidia.com>
Tue, 17 Jan 2023 17:04:17 +0000 (10:04 -0700)
commit2af1dc7071ff9a49552160ab03e1422a5daa830e
treede12ae9c1c8c6b9f244dbb5e42a378ae7eacf4f6
parent6dc9725471e05fe12bd72406f97daca49a47a0c0
[mlir][EmitC] Remove Pure trait from `emitc.include`

The op `emitc.include` does not have results and thus will be elided
during canonicalization, which is not correct behavior. This change
removes the 'Pure' trait and adds a canonicalization test.

Reviewed By: jpienaar, marbre

Differential Revision: https://reviews.llvm.org/D141704
mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
mlir/test/Dialect/EmitC/ops.mlir