[llvm-commits] PATCH: Add support to llvm::Triple for computing 32-bit and 64-bit variant triples.
echristo at apple.com
Wed Feb 1 02:51:06 CST 2012
On Jan 30, 2012, at 10:25 PM, Chandler Carruth wrote:
> This patch teaches the Triple class to compute 32-bit variants of 64-bit architectures and 64-bit variants of 32-bit architectures. These can be used when reasoning about what alternate triples may have semi-compatible toolchains such as multiarch and bi-arch toolchains. The goal in placing this logic here is to associate it closely with the triple and architecture definitions themselves so that as those change, this gets updated and maintained.
> Comments on the somewhat clunky API welcome. The reason I went with returning a full triple rather than operating exclusively on the Arch is to make code using the interface as concise as possible.
Any reason why the 32-bit version of an already 32-bit arch returns unknown rather than the existing arch itself?
More information about the llvm-commits