[PATCH] D43278: Add Xray instrumentation support to FreeBSD

Stephen Checkoway via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 10:30:19 PST 2018


stevecheckoway added inline comments.


================
Comment at: lib/xray/xray_x86_64.inc:25
+  unsigned long Rax, Rdx;
+  __asm__ __volatile__("rdtscp\n" : "=a"(Rax), "=b"(Rdx), "=c"(LongCPU) ::);
   CPU = LongCPU;
----------------
The constraint on Rdx should be "=d".


https://reviews.llvm.org/D43278





More information about the llvm-commits mailing list