This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Add ds_fadd, ds_fmin, ds_fmax builtins functions
ClosedPublic

Authored by dfukalov on Jan 26 2018, 7:25 AM.

Diff Detail

Repository
rC Clang

Event Timeline

dfukalov created this revision.Jan 26 2018, 7:25 AM

Were you going to add min and max separately?

dfukalov updated this revision to Diff 131593.Jan 26 2018, 8:29 AM
dfukalov retitled this revision from [AMDGPU] Add ds_fadd builtin function to [AMDGPU] Add ds_fadd, ds_fmin, ds_fmax builtins functions.

Sorry, missed them

arsenm added inline comments.Jan 29 2018, 8:13 AM
include/clang/Basic/BuiltinsAMDGPU.def
96–98

These are definitely not const intrinsics and need the c removed

dfukalov updated this revision to Diff 131820.Jan 29 2018, 9:47 AM

fixed builtins descriptions

dfukalov marked an inline comment as done.Jan 29 2018, 9:47 AM

Should we expect that the last 3 arguments have any effect? Do we want to test to ensure they have the expected effects?

arsenm accepted this revision.Jan 29 2018, 10:21 PM

LGTM

This revision is now accepted and ready to land.Jan 29 2018, 10:21 PM
This revision was automatically updated to reflect the committed changes.
This revision was automatically updated to reflect the committed changes.