This is an archive of the discontinued LLVM Phabricator instance.

[docs] Fix vector literal examples that don't compile
Changes PlannedPublic

Authored by ahatanak on Oct 5 2020, 4:56 PM.

Details

Reviewers
nemanjai
ayartsev
Summary

Guard the AltiVec vector variables with #ifdef __VEC__ and remove the last line, which doesn't compile.

rdar://problem/34411929

Diff Detail

Unit TestsFailed

Event Timeline

ahatanak created this revision.Oct 5 2020, 4:56 PM
ahatanak requested review of this revision.Oct 5 2020, 4:56 PM
ahatanak planned changes to this revision.Oct 5 2020, 5:41 PM

The parenthesis initialization does not work as documented for GCC or OpenCL vectors, so that has to be fixed too.