[LLVMdev] [patch] SPARCV9 subtarget support
Chris Lattner
clattner at apple.com
Wed Feb 3 23:13:01 PST 2010
On Feb 3, 2010, at 10:47 PM, Anton Korobeynikov wrote:
> Hello, Nathan
>
>> I may need to clarify, sparcv9-* is used for the SPARCV9 ABI (ie 64-bit ABI), rather than the SPARCV9 CPU per se. It serves the same purpose as x86_64-* and powerpc64-*, which is to say it's associated with -m64, not -mcpu=v9 (although unsurprisingly -m64 does require a V9 or later CPU). I may be wrong, but I think the only distinction in ARM is between arm and thumb code, which do have distinct archtypes in Triple.h
> I mean for arm we have arm vs armv4, armv5, armv6, armv6t2, armv7-*.
> Same for thumb - thumb vs thumb2.
On sparc, sparc-foo-bar is the 32-bit ABI, and sparcv9-foo-bar is the 64-bit abi. Whether V9-specific instructions are used or not in 32-bit mode is controlled by -mattr=v9
-Chris
More information about the llvm-dev
mailing list