Skip to content

Commit

Permalink
Revert "[AMDGPU] Add ds_fadd, ds_fmin, ds_fmax builtins functions"
Browse files Browse the repository at this point in the history
This reverts https://reviews.llvm.org/rL323890

This reverts commit 251524ebd8c346a936f0e74b09d609d49fbaae4a.

llvm-svn: 323896
  • Loading branch information
dfukalov committed Jan 31, 2018
1 parent e490b6e commit 07df4ff
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
3 changes: 0 additions & 3 deletions clang/include/clang/Basic/BuiltinsAMDGPU.def
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ BUILTIN(__builtin_amdgcn_ds_bpermute, "iii", "nc")
BUILTIN(__builtin_amdgcn_readfirstlane, "ii", "nc")
BUILTIN(__builtin_amdgcn_readlane, "iii", "nc")
BUILTIN(__builtin_amdgcn_fmed3f, "ffff", "nc")
BUILTIN(__builtin_amdgcn_ds_fadd, "ff*3fiib", "n")
BUILTIN(__builtin_amdgcn_ds_fmin, "ff*3fiib", "n")
BUILTIN(__builtin_amdgcn_ds_fmax, "ff*3fiib", "n")

//===----------------------------------------------------------------------===//
// VI+ only builtins.
Expand Down
20 changes: 0 additions & 20 deletions clang/test/CodeGenOpenCL/builtins-amdgcn-vi.cl
Original file line number Diff line number Diff line change
Expand Up @@ -89,23 +89,3 @@ void test_mov_dpp(global int* out, int src)
*out = __builtin_amdgcn_mov_dpp(src, 0, 0, 0, false);
}

// CHECK-LABEL: @test_ds_fadd
// CHECK: call float @llvm.amdgcn.ds.fadd(float addrspace(3)* %out, float %src, i32 0, i32 0, i1 false)
void test_ds_fadd(local float *out, float src)
{
*out = __builtin_amdgcn_ds_fadd(out, src, 0, 0, false);
}

// CHECK-LABEL: @test_ds_fmin
// CHECK: call float @llvm.amdgcn.ds.fmin(float addrspace(3)* %out, float %src, i32 0, i32 0, i1 false)
void test_ds_fmin(local float *out, float src)
{
*out = __builtin_amdgcn_ds_fmin(out, src, 0, 0, false);
}

// CHECK-LABEL: @test_ds_fmax
// CHECK: call float @llvm.amdgcn.ds.fmax(float addrspace(3)* %out, float %src, i32 0, i32 0, i1 false)
void test_ds_fmax(local float *out, float src)
{
*out = __builtin_amdgcn_ds_fmax(out, src, 0, 0, false);
}

0 comments on commit 07df4ff

Please sign in to comment.