Displaying 1 result from an estimated 1 matches for "fs_ptr".
Did you mean:
as_ptr
2014 Jan 27
2
[LLVMdev] Is addrspacecast implemented on Windows?
...or these magic values?) How can I
use this in IR? I want to express this assembler code in IR:
mov RAX, 8;
mov RAX, GS:[RAX];
ret;
I tried the following:
define i64 @getStackBottom(i64 %addr) {
entry:
%ptr = inttoptr i64 %addr to i64*
%fs_ptr = addrspacecast i64* %ptr to i64 addrspace(256)*
%bottom = load i64 addrspace(256)* %fs_ptr, align 1
ret i64 %bottom
}
but this results in
LLVM ERROR: Cannot select: 0xcc6c60: i64 = addrspacecast 0xcc6b60[0 ->
256] [ORD=3] [ID=6]
0xcc6b60: i64,ch = CopyFromReg 0xc95e38, 0xcc6a60 [ORD...