[clang] d76c654 - [HLSL] remove unnecessary abs attributes
Chris Bieneman via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 20 14:05:03 PDT 2022
Author: Joshua Batista
Date: 2022-09-20T16:04:21-05:00
New Revision: d76c654d02b66d8ec695d531d82a482224f21c79
URL: https://github.com/llvm/llvm-project/commit/d76c654d02b66d8ec695d531d82a482224f21c79
DIFF: https://github.com/llvm/llvm-project/commit/d76c654d02b66d8ec695d531d82a482224f21c79.diff
LOG: [HLSL] remove unnecessary abs attributes
remove abs non-elementwise attribute statements, stick to elementwise.
Reviewed By: beanz
Differential Revision: https://reviews.llvm.org/D134312
Added:
Modified:
clang/lib/Headers/hlsl/hlsl_intrinsics.h
Removed:
################################################################################
diff --git a/clang/lib/Headers/hlsl/hlsl_intrinsics.h b/clang/lib/Headers/hlsl/hlsl_intrinsics.h
index 3eb16b22d5ab..172e78d0357a 100644
--- a/clang/lib/Headers/hlsl/hlsl_intrinsics.h
+++ b/clang/lib/Headers/hlsl/hlsl_intrinsics.h
@@ -15,11 +15,6 @@ WaveActiveCountBits(bool bBit);
// abs builtins
-__attribute__((clang_builtin_alias(__builtin_abs))) int abs(int In);
-__attribute__((clang_builtin_alias(__builtin_labs))) int64_t abs(int64_t In);
-__attribute__((clang_builtin_alias(__builtin_fabsf))) float abs(float In);
-__attribute__((clang_builtin_alias(__builtin_fabs))) double abs(double In);
-
#ifdef __HLSL_ENABLE_16_BIT
__attribute__((clang_builtin_alias(__builtin_elementwise_abs)))
int16_t abs(int16_t);
More information about the cfe-commits
mailing list