[MLIR][NVVM] Add support for alloc_class in tensormap.replace (#245657)
This change adds:
- The `tensormap.replace.alloc_class` NVVM Op to specify the allocation
class of the tensormap object, which lowers to the
`llvm.nvvm.tensormap.replace.alloc.class` intrinsic with the appropriate
`alloc_class` argument.
- The `alloc_class` optional attribute to the `tensormap.replace` Op to
lower to the `llvm.nvvm.tensormap.replace.global.address` intrinsic when
specified with the `global_address` field.
- The `tensormap.query.alloc_class_large` NVVM Op to query the
allocation class of a tensormap object, which lowers to the
`llvm.nvvm.tensormap.query.alloc.class.large` intrinsic.
PTX Spec Reference:
-
[tensormap.replace](https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#data-movement-and-conversion-instructions-tensormap-replace)
-
[tensormap.query.alloc.class.large](https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#data-movement-and-conversion-instructions-tensormap-query-alloc-class-large)