[llvm] 6c462fe - AMDGPU: Move intrinsic definition out of subtarget specific section

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 26 18:13:14 PST 2023


Author: Matt Arsenault
Date: 2023-11-27T11:12:55+09:00
New Revision: 6c462fe2112c83b2682ffa3e7b0a70c33ea4ca7e

URL: https://github.com/llvm/llvm-project/commit/6c462fe2112c83b2682ffa3e7b0a70c33ea4ca7e
DIFF: https://github.com/llvm/llvm-project/commit/6c462fe2112c83b2682ffa3e7b0a70c33ea4ca7e.diff

LOG: AMDGPU: Move intrinsic definition out of subtarget specific section

This was at the end of the subtarget specific intrinsics and
before backend internal intrinsics. Move it with other genericish
synthetic intrinsics.

Added: 
    

Modified: 
    llvm/include/llvm/IR/IntrinsicsAMDGPU.td

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td
index f10bc7c75eb199b..f76e88eab8e4a36 100644
--- a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td
+++ b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td
@@ -199,6 +199,11 @@ def int_amdgcn_wavefrontsize :
   ClangBuiltin<"__builtin_amdgcn_wavefrontsize">,
   DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable]>;
 
+// Represent a relocation constant.
+def int_amdgcn_reloc_constant : DefaultAttrsIntrinsic<
+  [llvm_i32_ty], [llvm_metadata_ty],
+  [IntrNoMem, IntrSpeculatable]
+>;
 
 //===----------------------------------------------------------------------===//
 // Instruction Intrinsics
@@ -2776,12 +2781,6 @@ def int_amdgcn_cvt_sr_fp8_f32 : ClangBuiltin<"__builtin_amdgcn_cvt_sr_fp8_f32">,
             [llvm_float_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
             [IntrNoMem, ImmArg<ArgIndex<3>>]>;
 
-// Represent a relocation constant.
-def int_amdgcn_reloc_constant : DefaultAttrsIntrinsic<
-  [llvm_i32_ty], [llvm_metadata_ty],
-  [IntrNoMem, IntrSpeculatable]
->;
-
 //===----------------------------------------------------------------------===//
 // Special Intrinsics for backend internal use only. No frontend
 // should emit calls to these.


        


More information about the llvm-commits mailing list