[PATCH] Add Clang support for intrinsic __rdpmc.

Andrea Di Biagio andrea.dibiagio at gmail.com
Mon Jun 30 11:32:28 PDT 2014


Thanks Reid.

Committed revision 212053.

On Mon, Jun 30, 2014 at 7:16 PM, Reid Kleckner <rnk at google.com> wrote:
> lgtm
>
>
> On Mon, Jun 30, 2014 at 10:47 AM, Andrea Di Biagio
> <andrea.dibiagio at gmail.com> wrote:
>>
>> Hi,
>>
>> This patch adds Clang support for intrinsic __rdpmc in "ia32intrin.h".
>> Intrinsic __rdpmc is implemented as a call to the x86 builtin
>> '__builtin_ia32_rdpmc'.
>> It takes as input a value representing the index of the performance
>> counter to read.
>> The value of the performance counter is then returned as an unsigned
>> 64-bit quantity.
>>
>> LLVM support for builtin rdpmc has been committed already at revision
>> 212049.
>>
>>
>> Please let me know if ok to submit.
>>
>> Thanks!
>> Andrea
>
>



More information about the cfe-commits mailing list