From 21f2858dcf3a556f01f6ae151bf7638b70f01c02 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 16 Jul 2019 22:00:10 +0000 Subject: [PATCH] AMDGPU: Partially revert r366250 GCCBuiltin doesn't work for these, because they have a mangled type (although they arguably should not). llvm-svn: 366271 --- llvm/include/llvm/IR/IntrinsicsAMDGPU.td | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td index 4c67cde..1f83517 100644 --- a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td +++ b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td @@ -1249,15 +1249,12 @@ def int_amdgcn_ds_swizzle : Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], [IntrNoMem, IntrConvergent, ImmArg<1>]>; -def int_amdgcn_ubfe : - GCCBuiltin<"__builtin_amdgcn_ubfe">, - Intrinsic<[llvm_anyint_ty], +def int_amdgcn_ubfe : Intrinsic<[llvm_anyint_ty], [LLVMMatchType<0>, llvm_i32_ty, llvm_i32_ty], [IntrNoMem, IntrSpeculatable] >; -def int_amdgcn_sbfe : GCCBuiltin<"__builtin_amdgcn_sbfe">, - Intrinsic<[llvm_anyint_ty], +def int_amdgcn_sbfe : Intrinsic<[llvm_anyint_ty], [LLVMMatchType<0>, llvm_i32_ty, llvm_i32_ty], [IntrNoMem, IntrSpeculatable] >; -- 2.7.4