This is an archive of the discontinued LLVM Phabricator instance.

OpenCL: Defining __ENDIAN_LITTLE__ and fix target endianness
ClosedPublic

Authored by arsenm on Aug 26 2016, 8:07 PM.

Details

Reviewers
Anastasia
Summary

OpenCL requires ENDIAN_LITTLE be set for little endian targets.
The default for targets was also apparently big endian, so AMDGPU
was incorrectly reported as big endian. Set this from the triple
so targets don't have another place to set the endianness.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 69464.Aug 26 2016, 8:07 PM
arsenm retitled this revision from to OpenCL: Defining __ENDIAN_LITTLE__ and fix target endianness.
arsenm updated this object.
arsenm added a subscriber: cfe-commits.
arsenm updated this revision to Diff 69465.Aug 26 2016, 8:14 PM

Fix typo

Anastasia accepted this revision.Sep 6 2016, 10:59 AM
Anastasia added a reviewer: Anastasia.
Anastasia added a subscriber: Anastasia.

LGTM!

This revision is now accepted and ready to land.Sep 6 2016, 10:59 AM
arsenm closed this revision.Sep 7 2016, 12:16 AM

r280787