[llvm] [AMDGPU] Add no return image_sample intrinsics and instructions (PR #97542)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 3 02:04:51 PDT 2024
================
@@ -970,6 +984,21 @@ defset list<AMDGPUImageDimIntrinsic> AMDGPUImageDimIntrinsics = {
AMDGPUImageDMaskIntrinsic;
}
+ multiclass AMDGPUImageDimSampleNoReturnDims<string opmod,
+ AMDGPUSampleVariant sample> {
+ foreach dim = AMDGPUDims.NoMsaa in {
+ def !strconcat(NAME, "_", dim.Name) : AMDGPUImageDimIntrinsic<
----------------
arsenm wrote:
If it's the same signature as the existing cases, can you just overload the return type to void?
https://github.com/llvm/llvm-project/pull/97542
More information about the llvm-commits
mailing list