[PATCH] D134319: [HLSL] add ceil library function
Joshua Batista via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 20 16:03:45 PDT 2022
bob80905 updated this revision to Diff 461747.
bob80905 added a comment.
fix attempt 1
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134319/new/
https://reviews.llvm.org/D134319
Files:
clang/lib/Headers/hlsl/hlsl_intrinsics.h
Index: clang/lib/Headers/hlsl/hlsl_intrinsics.h
===================================================================
--- clang/lib/Headers/hlsl/hlsl_intrinsics.h
+++ clang/lib/Headers/hlsl/hlsl_intrinsics.h
@@ -73,14 +73,6 @@
// ceil builtins
#ifdef __HLSL_ENABLE_16_BIT
-__attribute__((clang_builtin_alias(__builtin_elementwise_ceil)))
-int16_t ceil(int16_t);
-__attribute__((clang_builtin_alias(__builtin_elementwise_ceil)))
-int16_t2 ceil(int16_t2);
-__attribute__((clang_builtin_alias(__builtin_elementwise_ceil)))
-int16_t3 ceil(int16_t3);
-__attribute__((clang_builtin_alias(__builtin_elementwise_ceil)))
-int16_t4 ceil(int16_t4);
__attribute__((clang_builtin_alias(__builtin_elementwise_ceil))) half ceil(half);
__attribute__((clang_builtin_alias(__builtin_elementwise_ceil)))
half2 ceil(half2);
@@ -90,10 +82,6 @@
half4 ceil(half4);
#endif
-__attribute__((clang_builtin_alias(__builtin_elementwise_ceil))) int ceil(int);
-__attribute__((clang_builtin_alias(__builtin_elementwise_ceil))) int2 ceil(int2);
-__attribute__((clang_builtin_alias(__builtin_elementwise_ceil))) int3 ceil(int3);
-__attribute__((clang_builtin_alias(__builtin_elementwise_ceil))) int4 ceil(int4);
__attribute__((clang_builtin_alias(__builtin_elementwise_ceil))) float
ceil(float);
__attribute__((clang_builtin_alias(__builtin_elementwise_ceil)))
@@ -102,14 +90,7 @@
float3 ceil(float3);
__attribute__((clang_builtin_alias(__builtin_elementwise_ceil)))
float4 ceil(float4);
-__attribute__((clang_builtin_alias(__builtin_elementwise_ceil)))
-int64_t ceil(int64_t);
-__attribute__((clang_builtin_alias(__builtin_elementwise_ceil)))
-int64_t2 ceil(int64_t2);
-__attribute__((clang_builtin_alias(__builtin_elementwise_ceil)))
-int64_t3 ceil(int64_t3);
-__attribute__((clang_builtin_alias(__builtin_elementwise_ceil)))
-int64_t4 ceil(int64_t4);
+
__attribute__((clang_builtin_alias(__builtin_elementwise_ceil))) double
ceil(double);
__attribute__((clang_builtin_alias(__builtin_elementwise_ceil)))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134319.461747.patch
Type: text/x-patch
Size: 1992 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220920/96e0e6c6/attachment.bin>
More information about the cfe-commits
mailing list