This is an archive of the discontinued LLVM Phabricator instance.

[HLSL] add sqrt library function
AbandonedPublic

Authored by bob80905 on Sep 20 2022, 11:49 AM.

Details

Reviewers
bob80905
beanz
Summary

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

Long and 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-sqrt

Diff Detail

Event Timeline

bob80905 created this revision.Sep 20 2022, 11:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2022, 11:49 AM
Herald added a subscriber: Anastasia. · View Herald Transcript
bob80905 requested review of this revision.Sep 20 2022, 11:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2022, 11:49 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
bob80905 abandoned this revision.Sep 20 2022, 12:03 PM