OpenCL: Defining __ENDIAN_LITTLE__ and fix target endianness
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280787 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/TargetInfo.h 1 addition, 0 deletionsinclude/clang/Basic/TargetInfo.h
- lib/Basic/TargetInfo.cpp 1 addition, 1 deletionlib/Basic/TargetInfo.cpp
- lib/Basic/Targets.cpp 3 additions, 21 deletionslib/Basic/Targets.cpp
- lib/Frontend/InitPreprocessor.cpp 3 additions, 0 deletionslib/Frontend/InitPreprocessor.cpp
- test/Preprocessor/init.c 1 addition, 0 deletionstest/Preprocessor/init.c
Loading
Please register or sign in to comment