]> granicus.if.org Git - clang/commit
[X86] Add Clang support for intrinsics __rdtsc and __rdtscp.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Thu, 24 Apr 2014 18:26:35 +0000 (18:26 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Thu, 24 Apr 2014 18:26:35 +0000 (18:26 +0000)
commit09a39309c30bbd1850d1983687b45c1431b18a59
treef9d6cc6accb61cd968a07dd2dcf70e486e549f34
parent5a48fb5809163f65ea20ddae64b08203dc94f05e
[X86] Add Clang support for intrinsics __rdtsc and __rdtscp.

This patch:
 1. Adds a definition for two new GCCBuiltins in BuiltinsX86.def:
   __builtin_ia32_rdtsc;
   __builtin_ia32_rdtscp;

 2. Replaces the already existing definition of intrinsic __rdtsc in
    ia32intrin.h with a simple call to the new GCC builtin __builtin_ia32_rdtsc.

 3. Adds a definition for the new intrinsic __rdtscp in ia32intrin.h

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207132 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/BuiltinsX86.def
lib/Headers/ia32intrin.h
test/CodeGen/builtins-x86.c