HomePhabricator

[MLIR][SPIRV] Use getAsmResultName(...) hook for AddressOfOp.

Authored by KareemErgawy <kareem.ergawy@tomtom.com> on Jun 7 2021, 4:19 AM.

Description

[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