[llvm-commits] PATCH: Add support to llvm::Triple for computing 32-bit and 64-bit variant triples.

Chandler Carruth chandlerc at gmail.com
Mon Jan 30 22:25:31 PST 2012


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120130/0452cc4d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: triple-predicates3.patch
Type: text/x-patch
Size: 6094 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120130/0452cc4d/attachment.bin>


More information about the llvm-commits mailing list