[PATCH] D23953: OpenCL: Defining __ENDIAN_LITTLE__ and fix target endianness
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 26 20:07:26 PDT 2016
arsenm created this revision.
arsenm added a subscriber: cfe-commits.
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.
https://reviews.llvm.org/D23953
Files:
include/clang/Basic/TargetInfo.h
lib/Basic/TargetInfo.cpp
lib/Basic/Targets.cpp
lib/Frontend/InitPreprocessor.cpp
test/Preprocessor/init.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23953.69464.patch
Type: text/x-patch
Size: 7696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160827/8b3c8100/attachment.bin>
More information about the cfe-commits
mailing list