[cfe-dev] valid triples

Dale Johannesen dalej at apple.com
Thu Oct 28 15:24:55 PDT 2010


On Oct 27, 2010, at 12:51 PMPDT, John Thompson wrote:

> I have a test I want to run for all plaforms that support inline asm, so I can test the generic constraints, i.e.
>  
> // RUN: %clang_cc1 -triple x86_64-pc-win64 %s -emit-llvm -o - | FileCheck %s
> // RUN: %clang_cc1 -triple i686-pc-win32 %s -emit-llvm -o - | FileCheck %s
> // RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -emit-llvm -o - | FileCheck %s
> // RUN: %clang_cc1 -triple i686-apple-darwin9 %s -emit-llvm -o - | FileCheck %s
> // etc.
> Is there a list somewhere of all the valid triples I should be using?

Not that I know of.  include/llvm/ADT/Triple.h has a list of all currently known Arch/Vendor/OSType values, but: not all combinations represent anything real; I doubt all of them support the target-specific forms of inline assembly; and people might add more at any time.







More information about the cfe-dev mailing list