[all-commits] [llvm/llvm-project] be07c8: [HLSL] add ceil library function
Joshua Batista via All-commits
all-commits at lists.llvm.org
Thu Sep 29 14:04:42 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: be07c80cf7774e8ada84ddc29ae7ab5efa4d1ec9
https://github.com/llvm/llvm-project/commit/be07c80cf7774e8ada84ddc29ae7ab5efa4d1ec9
Author: Joshua Batista <jbatista at microsoft.com>
Date: 2022-09-29 (Thu, 29 Sep 2022)
Changed paths:
M clang/lib/Headers/hlsl/hlsl_intrinsics.h
A clang/test/CodeGenHLSL/builtins/ceil.hlsl
Log Message:
-----------
[HLSL] add ceil library function
This change exposes the ceil library function for HLSL,
excluding long, int, and long long doubles.
Ceil is supported for all scalar, vector, and matrix types.
Long and long long double support is missing in this patch because those types
don't exist in HLSL. Int is missing because the ceil function only works on floating type arguments.
The full documentation of the HLSL ceil function is available here:
https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-ceil
Reviewed By: python3kgae
Differential Revision: https://reviews.llvm.org/D134319
More information about the All-commits
mailing list