Displaying 1 result from an estimated 1 matches for "r208104".
Did you mean:
r201104
2017 Jan 26
3
llvm.read_register for %RIP on x86_64
Hi,
I want implement an instrumentation that gets the current PC.
On x86_64 I can do it using inline asm (something like "lea (%%rip),%0"),
but I wonder if there is some more LLVM-ish way to do it, e.g. an
intrinsic?
I can only find r208104 which introduces llvm.read_register:
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20140505/215840.html
The LangRef says:
> Warning: So far it only works with the stack pointer on selected
architectures (ARM, AArch64,
> PowerPC and x86_64). Significant amount of work is needed to...