Skip to content

Commit 6c462fe

Browse files
committed
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.
1 parent b84cb9c commit 6c462fe

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

llvm/include/llvm/IR/IntrinsicsAMDGPU.td

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ def int_amdgcn_wavefrontsize :
199199
ClangBuiltin<"__builtin_amdgcn_wavefrontsize">,
200200
DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable]>;
201201

202+
// Represent a relocation constant.
203+
def int_amdgcn_reloc_constant : DefaultAttrsIntrinsic<
204+
[llvm_i32_ty], [llvm_metadata_ty],
205+
[IntrNoMem, IntrSpeculatable]
206+
>;
202207

203208
//===----------------------------------------------------------------------===//
204209
// Instruction Intrinsics
@@ -2776,12 +2781,6 @@ def int_amdgcn_cvt_sr_fp8_f32 : ClangBuiltin<"__builtin_amdgcn_cvt_sr_fp8_f32">,
27762781
[llvm_float_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
27772782
[IntrNoMem, ImmArg<ArgIndex<3>>]>;
27782783

2779-
// Represent a relocation constant.
2780-
def int_amdgcn_reloc_constant : DefaultAttrsIntrinsic<
2781-
[llvm_i32_ty], [llvm_metadata_ty],
2782-
[IntrNoMem, IntrSpeculatable]
2783-
>;
2784-
27852784
//===----------------------------------------------------------------------===//
27862785
// Special Intrinsics for backend internal use only. No frontend
27872786
// should emit calls to these.

0 commit comments

Comments
 (0)