[PATCH] Initial instrumentation based PGO implementation

Justin Bogner mail at justinbogner.com
Tue Dec 17 12:19:13 PST 2013


Justin Bogner <mail at justinbogner.com> writes:
>> +// RUN: %clangxx %s -o %t1 -fprofile-instr-generate
>> +// RUN: mkdir -p %tdir && cd %tdir && %t1
>>
>> This is going to fail on any platform that doesn't have native codegen
>> enabled by default.
>
> Hmm. Is there a REQUIRES or something I can use to conditionally enable
> them then? I'm guessing if we don't have native codegen I can't do
> something tricky like generate IR and run it with lli or something
> either.

This seems to be "REQUIRES: native". I'll add that to both tests.



More information about the cfe-commits mailing list