[LLVMdev] The Trouble with Triples

Vedant Kumar vsk at apple.com
Wed Jul 8 11:24:06 PDT 2015


> Another very annoying fact is that the Clang driver re-parses triples many
> times, and sometimes they change the triple based on a CPU, and then end
> up with a different CPU.

I’ve recently been tasked with cleaning this up.

Before starting on this full gusto, I want to make sure I’m not stepping on
any toes or duplicating work.

The rough plan is as follows;

 1. Replace the call to Driver::computeTargetTriple() in getToolChain() with
    some variety of ComputeEffectiveClangTriple().

 2. Cache the result of ComputeEffectiveClangTriple() so we can avoid
    re-parsing the argument list.

Daniel -- if this will cause too much interference with steps 2-3 of your
plan, please let me know. 

vedant

p.s: I'm rather new to LLVM & Clang. Hello everybody!



More information about the llvm-dev mailing list