This is an archive of the discontinued LLVM Phabricator instance.

[HLSL] add sin library function
ClosedPublic

Authored by bob80905 on Nov 16 2022, 4:19 PM.

Details

Summary

This change exposes the sin library function for HLSL,
excluding long, int, and long long doubles.
Sin 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 sin function only works on floating type arguments.

The full documentation of the HLSL sin function is available here:
https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-sin

Diff Detail

Event Timeline

bob80905 created this revision.Nov 16 2022, 4:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 16 2022, 4:19 PM
bob80905 requested review of this revision.Nov 16 2022, 4:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 16 2022, 4:19 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
bob80905 updated this revision to Diff 475952.Nov 16 2022, 4:21 PM

[HLSL] add cos library function

bob80905 retitled this revision from add sin library function to [HLSL] add sin library function.Nov 16 2022, 4:22 PM
bob80905 edited the summary of this revision. (Show Details)
bob80905 added reviewers: python3kgae, beanz.
python3kgae accepted this revision.Nov 16 2022, 5:56 PM
This revision is now accepted and ready to land.Nov 16 2022, 5:56 PM
This revision was automatically updated to reflect the committed changes.