This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Implement vector float and vector double version for vec_orc builtin
ClosedPublic

Authored by Conanap on Sep 30 2021, 10:41 AM.

Details

Summary

The builtin for vec_orc has support for the following two signatures,
but currently the compiler marks it ambiguous:
vector float vec_orc(vector float, vector float)
vector double vec_orc(vector double, vector double)

This patch implements these two builtins.

Diff Detail

Event Timeline

Conanap created this revision.Sep 30 2021, 10:41 AM
Conanap requested review of this revision.Sep 30 2021, 10:41 AM
nemanjai accepted this revision.Sep 30 2021, 6:00 PM

LGTM. Please run clang-format on the patch (only the modified lines).

clang/lib/Headers/altivec.h
7164

nit: line too long?

This revision is now accepted and ready to land.Sep 30 2021, 6:00 PM