Skip to content

Commit d33b46c

Browse files
authored
Merge pull request llvm#119 from pcc/filc10
Handle llvm.x86.rdtsc
2 parents 286e5cd + 9e2ec13 commit d33b46c

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

filc/tests/rdtsc/manifest

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
return:
2+
success

filc/tests/rdtsc/rdtsc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <stdio.h>
2+
3+
int main()
4+
{
5+
printf("TSC = %llu\n", __rdtsc());
6+
}

llvm/lib/Transforms/Instrumentation/FilPizlonator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6883,6 +6883,7 @@ class Pizlonator {
68836883

68846884
case Intrinsic::x86_xgetbv:
68856885
case Intrinsic::x86_sse2_pause:
6886+
case Intrinsic::x86_rdtsc:
68866887
return true;
68876888

68886889
case Intrinsic::returnaddress:

0 commit comments

Comments
 (0)