[all-commits] [llvm/llvm-project] edbf36: [HLSL] [clang] Add vector version of abs for HLSL
Xiang Li via All-commits
all-commits at lists.llvm.org
Sun Sep 18 14:59:50 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: edbf36c5e9e84bb0e70ddbcacc20b14217688cba
https://github.com/llvm/llvm-project/commit/edbf36c5e9e84bb0e70ddbcacc20b14217688cba
Author: Xiang Li <python3kgae at outlook.com>
Date: 2022-09-18 (Sun, 18 Sep 2022)
Changed paths:
M clang/lib/AST/ASTContext.cpp
M clang/lib/Headers/hlsl/hlsl_intrinsics.h
M clang/test/CodeGenHLSL/builtins/abs.hlsl
Log Message:
-----------
[HLSL] [clang] Add vector version of abs for HLSL
Add vector version of abs as
```
__attribute__((clang_builtin_alias(__builtin_elementwise_abs)))
int2 abs (int2 );
__attribute__((clang_builtin_alias(__builtin_elementwise_abs)))
int3 abs (int3 );
```
To make this work.
Allowed custom type checking builtins to be recelareable.
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D133737
More information about the All-commits
mailing list