Displaying 2 results from an estimated 2 matches for "__z5test3v".
Did you mean:
__z5test2v
2014 Feb 08
2
[LLVMdev] selecting ISD node - help
...Node();
but I've a couple of problems:
getCopyToReg doesn't show on the final assembly
__Z5test2v proc near
push ebp
mov ebp, esp
rdmsr
pop ebp
retn
__Z5test2v endp
When I add rdmsr + rdmsr, first the rdmsr calls are made and only then he
adds eax, eax.
__Z5test3v proc near
push ebp
mov ebp, esp
rdmsr
rdmsr
add eax, eax
pop ebp
retn
__Z5test3v endp
Maybe it's because I use MF.addLiveIn but when I tried using X86::EAX it
failed with the message:
# Machine code for function _Z5test2v: Post SSA
BB#0: derived fr...
2014 Feb 08
2
[LLVMdev] selecting ISD node - help
Hey, I wanted to add an intrinsics to read MSRs.
So I added the intrinsics and lowered it to a new ISD node I created
ISD::RDMSR, its first operand is the MSR id.
I added a case in X86DAGToDAGISel::Select for ISD::RDMSR.
Now I know rdmsr works like so:
mov r/ecx, <id>
rdmsr
r/eax holds the lower 32/64 bit
>From what I understood this needs a Token Factor node, nodes which are