This is an archive of the discontinued LLVM Phabricator instance.

[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.
This change only add clang builtin and test it can make into ast.

Diff Detail

Event Timeline

python3kgae created this revision.Apr 27 2022, 9:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2022, 9:49 PM
Herald added a subscriber: Anastasia. · View Herald Transcript
python3kgae requested review of this revision.Apr 27 2022, 9:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2022, 9:49 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
python3kgae abandoned this revision.Apr 28 2022, 2:57 PM

Change to different implementation.