[MLIR][SPIRV] Use getAsmResultName(...) hook for AddressOfOp.
authorKareemErgawy <kareem.ergawy@tomtom.com>
Mon, 7 Jun 2021 11:19:39 +0000 (13:19 +0200)
committerKareemErgawy <kareem.ergawy@tomtom.com>
Mon, 7 Jun 2021 11:58:26 +0000 (13:58 +0200)
commit2def12ebc6cc904cddb4bc608df63014ec2bfe86
treebbc4a3e7abb4d5f242968a82470e56a782bd1e33
parent721476e6b2119a93033903109b54f429b6e8c91b
[MLIR][SPIRV] Use getAsmResultName(...) hook for AddressOfOp.

Implements better naming for results of spv.mlir.addressof ops by making it
inherit from OpAsmOpInterface and implementing the associated
getAsmResultName(...) hook.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D103594
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVStructureOps.td
mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
mlir/test/Dialect/SPIRV/IR/asm-op-interface.mlir