This is an archive of the discontinued LLVM Phabricator instance.

[HLSL] add asin library function
Needs ReviewPublic

Authored by bob80905 on Aug 24 2022, 2:47 PM.

Details

Reviewers
beanz
pow2clk
Summary

This change exposes the asin library function for HLSL scalar types,
excluding long long doubles. Asin is supported for all scalar, vector,
and matrix types. This patch only adds a subset of scalar type support.

Long long double support is missing in this patch because that type
doesn't exist in HLSL.

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

Diff Detail

Event Timeline

bob80905 created this revision.Aug 24 2022, 2:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2022, 2:47 PM
Herald added a subscriber: Anastasia. · View Herald Transcript
bob80905 requested review of this revision.Aug 24 2022, 2:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2022, 2:47 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript