This is an archive of the discontinued LLVM Phabricator instance.

[HLSL] Add llvm intrinsic for HLSL.
AbandonedPublic

Authored by python3kgae on Apr 27 2022, 10:40 PM.

Details

Summary

A directx specific llvm intrinsic is introduced:

float @llvm.dx.sin.f32(float)

It is for https://github.com/Microsoft/DirectXShaderCompiler/blob/master/docs/DXIL.rst#sin.
This change the llvm intrinsic and test it can be generated from clang codeGen.
The clang builtin change is in https://reviews.llvm.org/D124593

Diff Detail

Event Timeline

python3kgae created this revision.Apr 27 2022, 10:40 PM
python3kgae requested review of this revision.Apr 27 2022, 10:40 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 27 2022, 10:40 PM

Remove clang part change.

python3kgae abandoned this revision.Apr 28 2022, 2:56 PM

Change to different implementation.