This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Reduce duplicate defs by using multiclasses; NFC
ClosedPublic

Authored by svenvh on Jul 30 2021, 4:48 AM.

Details

Summary

Builtin definitions with pointer arguments were duplicated to provide
overloads differing in the pointer argument's address space.

Reduce this duplication by capturing the definitions in multiclasses.
This still results in the same number of builtins in the generated
tables, but the description is more concise now.

Diff Detail

Event Timeline

svenvh created this revision.Jul 30 2021, 4:48 AM
svenvh requested review of this revision.Jul 30 2021, 4:48 AM
Anastasia accepted this revision.Aug 3 2021, 5:23 AM

LGTM! Looks very neat!

This revision is now accepted and ready to land.Aug 3 2021, 5:23 AM
This revision was automatically updated to reflect the committed changes.