A directx specific clang intrinsic is introduced:
float __builtin_dx_sin_f32(float);
It is for https://github.com/Microsoft/DirectXShaderCompiler/blob/master/docs/DXIL.rst#sin.
This change only add clang builtin and test it can make into ast.
Paths
| Differential D124593
[HLSL][clang] Add clang builtin for HLSL. AbandonedPublic Authored by python3kgae on Apr 27 2022, 9:49 PM.
Details
Summary A directx specific clang intrinsic is introduced: float __builtin_dx_sin_f32(float); It is for https://github.com/Microsoft/DirectXShaderCompiler/blob/master/docs/DXIL.rst#sin.
Diff Detail
Event Timelinepython3kgae added a child revision: D124595: [HLSL] Add llvm intrinsic for HLSL..Apr 27 2022, 10:55 PM
Revision Contents
Diff 425694 clang/include/clang/Basic/BuiltinsDirectX.def
clang/include/clang/Basic/TargetBuiltins.h
clang/lib/Basic/Targets/DirectX.h
clang/lib/Basic/Targets/DirectX.cpp
clang/test/SemaHLSL/Builtins/sin_f32.hlsl
|