[mlir] Update accessors to prefixed form (NFC)Follow up from flipping dialects to both, flip accessor used to prefixedvariant ahead to flipping from _Both to _Prefixed. This just flips tothe acce
[mlir] Update accessors to prefixed form (NFC)Follow up from flipping dialects to both, flip accessor used to prefixedvariant ahead to flipping from _Both to _Prefixed. This just flips tothe accessors introduced in the preceding change which are just prefixedforms of the existing accessor changed from.Mechanical change using helper scripthttps://github.com/jpienaar/llvm-project/blob/main/clang-tools-extra/clang-tidy/misc/AddGetterCheck.cpp and clang-format.
show more ...
[mlir] (NFC) Clean up bazel and CMake target namesAll dialect targets in bazel have been named *Dialect and all dialecttargets in CMake have been named MLIR*Dialect.
[MLIR][AMDGPU] Add AMDGPU dialect, wrappers around raw buffer intrinsicsBy analogy with the NVGPU dialect, introduce an AMDGPU dialect forAMD-specific intrinsic wrappers.The dialect initially in
[MLIR][AMDGPU] Add AMDGPU dialect, wrappers around raw buffer intrinsicsBy analogy with the NVGPU dialect, introduce an AMDGPU dialect forAMD-specific intrinsic wrappers.The dialect initially includes wrappers around the raw buffer intrinsics.On AMD GPUs, a memref can be converted to a "buffer descriptor" thatallows more precise control of memory access, such as by allowing forout of bounds loads/stores to be replaced by 0/ignored without addingadditional conditional logic, which is important for performance.The repository currently contains a limited conversion fromtransfer_read/transfer_write to Mubuf intrinsics, which are an older,deprecated intrinsic for the same functionality.The new amdgpu.raw_buffer_* ops allow these operations to be usedexplicitly and for including metadata such as whether the targetchipset is an RDNA chip or not (which impacts the interpretation ofsome bits in the buffer descriptor), while still maintaining anMLIR-like interface.(This change also exposes the floating-point atomic add intrinsic.)Reviewed By: ThomasRaouxDifferential Revision: https://reviews.llvm.org/D122765