[llvm-commits] [PATCH] Re-introduce llvm::sys::getHostTriple() function.

Joerg Sonnenberger joerg at NetBSD.org
Sun Dec 30 17:47:36 PST 2012


  The problem I have with this is that there are three pretty much unrelated concepts:

  (1) The default target of the compiler
  (2) The platform LLVM was built in
  (3) The platform LLVM is running on

  The current answer is the (1) and (3) are identical unless the user explicitly specifies something else. This is important if you consider building and running on a bi-size platform like X86. What is the correct and/or preferable choice -- 64bit or 32bit code? Solaris for example still has a mostly 32bit user land as the majority of programs don't get any benefits (but certain penalties) when compiled as 64bit code. So far I haven't seen a good argument that making (1) and (3) separate switches/choices is useful. At the very least, the name "getHostTriple" doesn't reflect it either, since i386 might very well be a saner default for JIT on x86.

http://llvm-reviews.chandlerc.com/D254



More information about the llvm-commits mailing list