[mlir][TOSA]Add optional attributes to TOSA custom op
authorEric Kunze <eric.kunze@arm.com>
Tue, 1 Nov 2022 22:09:56 +0000 (15:09 -0700)
committerRob Suderman <suderman@google.com>
Tue, 1 Nov 2022 22:10:05 +0000 (15:10 -0700)
commitd94ee70f4f01e4d9eec49e02eff57a5655618401
treef276f62a920158a2ba7cbf06866eb475d8ea4ee8
parentd71a8ad3460f1a04686f7087a44c1fef64311239
[mlir][TOSA]Add optional attributes to TOSA custom op

The implementation_attrs attr allows passing of backend specific
attributes to TOSA custom ops.

Also adds a config option to avoid namespace collisions on the
identifier.

Reviewed By: rsuderman

Differential Revision: https://reviews.llvm.org/D137133
mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
mlir/test/Dialect/Tosa/ops.mlir