[PATCH] D124593: [HLSL][clang] Add clang builtin for HLSL.
Xiang Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 27 21:49:33 PDT 2022
python3kgae created this revision.
python3kgae added reviewers: anakryiko, ast, yonghong-song.
Herald added a subscriber: Anastasia.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D124593
Files:
clang/include/clang/Basic/BuiltinsDirectX.def
clang/include/clang/Basic/TargetBuiltins.h
clang/lib/Basic/Targets/DirectX.cpp
clang/lib/Basic/Targets/DirectX.h
clang/test/SemaHLSL/Builtins/sin_f32.hlsl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124593.425694.patch
Type: text/x-patch
Size: 4283 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220428/0d587bcd/attachment.bin>
More information about the cfe-commits
mailing list