[mlir][emitc] Disallow !emitc.opaque pointers
authorMarius Brehler <marius.brehler@iml.fraunhofer.de>
Tue, 19 Apr 2022 09:23:44 +0000 (09:23 +0000)
committerMarius Brehler <marius.brehler@iml.fraunhofer.de>
Thu, 28 Apr 2022 15:08:21 +0000 (15:08 +0000)
commit39dd29736ffa8e027400a2655861ca36929004a6
tree0522805e3bdfb15e1483e58e7a92b3a0736fecd6
parent501cc4ae304f29e392a2b7e21c316e3abf954daa
[mlir][emitc] Disallow !emitc.opaque pointers

Fordbids to express pointer via the `!emitc.opaque` type. Point the user
to use the `!emitc.ptr` type instead.

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D124002
mlir/lib/Dialect/EmitC/IR/EmitC.cpp
mlir/test/Dialect/EmitC/invalid_types.mlir
mlir/test/Dialect/EmitC/types.mlir