This is an archive of the discontinued LLVM Phabricator instance.

Prefer __vector over vector keyword for altivec use
ClosedPublic

Authored by serge-sans-paille on Feb 6 2020, 7:44 AM.

Details

Summary

`vector' uses the keyword-and-predefine mode from gcc, while __vector is
reliably supported.

As a side effect, it also makes the code consistent in its usage of __vector.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptFeb 6 2020, 7:45 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

@hans : clang 10.0.0rc1 doesn't build on ppc64le in Fedora without that patch.

hans accepted this revision.Feb 10 2020, 4:14 AM

It looks like the current code goes way back, to https://llvm.org/r39093 Do you know why it's started failing now?

Consistency is nice though, so I don't see any downside to this.

This revision is now accepted and ready to land.Feb 10 2020, 4:14 AM

Do you know why it's started failing now?

Not quite, probably a gcc update.

This revision was automatically updated to reflect the committed changes.
hans added a comment.Feb 11 2020, 1:29 AM

@hans : clang 10.0.0rc1 doesn't build on ppc64le in Fedora without that patch.

Cherry-picked to 10.x as 699e2a6c5551eacf10be7e64f579120954f55b10. Thanks!