From a200fa04a34535fb790b5a0496917aa4f8ef4161 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Sat, 7 Jan 2023 08:39:15 -0500 Subject: [PATCH] AMDGPU: Move intrinsic definition point This was incorrectly listed under the block for backend internal intrinsics only. --- llvm/include/llvm/IR/IntrinsicsAMDGPU.td | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td index f24bae9..e621bcd4 100644 --- a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td +++ b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td @@ -2432,6 +2432,12 @@ 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>]>; +// 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. @@ -2465,10 +2471,4 @@ def int_amdgcn_fdiv_fast : DefaultAttrsIntrinsic< [llvm_float_ty], [llvm_float_ty, llvm_float_ty], [IntrNoMem, IntrSpeculatable] >; - -// Represent a relocation constant. -def int_amdgcn_reloc_constant : DefaultAttrsIntrinsic< - [llvm_i32_ty], [llvm_metadata_ty], - [IntrNoMem, IntrSpeculatable] ->; } -- 2.7.4