[PATCH] ARM: Add command line option to select big or little endian
Christian Pirker
cpirker at a-bix.com
Mon Apr 7 06:23:27 PDT 2014
Hi All,
I added -EL to select little endian and -EB to select big endian ARM targets.
I also added -mlittle-endian as alias for -EL and -mbig-endian as alias for -EB.
Little endian (as e.g. for armv7):
--target=armv7
--target=armv7 -EL
--target=armv7 -mlittle-endian
--target=armebv7 -EL
--target=armebv7 -mlittle-endian
Big endian (as e.g. for armv7):
--target=armebv7
--target=armv7 -EB
--target=armv7 -mbig-endian
--target=armebv7 -EB
--target=armebv7 -mbig-endian
This patch is similar to D3215 for AArch64.
For the ARM target, I implemented the functionality in ToolChain::ComputeLLVMTriple, similar to the -mthumb option.
For the AArch64 target, I implemented the functionality in computeTargetTriple, similar to the MIPS implementation.
Please review.
Thanks,
Christian
http://reviews.llvm.org/D3307
Files:
include/clang/Driver/Options.td
lib/Driver/ToolChain.cpp
test/Driver/arm-cortex-cpus.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3307.1.patch
Type: text/x-patch
Size: 27988 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140407/c33578e6/attachment.bin>
More information about the cfe-commits
mailing list