Displaying 1 result from an estimated 1 matches for "cycleentry".
Did you mean:
cacheentry
2018 May 11
2
best way to represent function call with new stack in LLVM IR?
...figured out how much to allocate and has this address ready
@new_sp = internal unnamed_addr global i64 3735928559, align 8
; Function Attrs: nobuiltin nounwind
define void @entry() #2 {
Entry:
%0 = call i64 asm "", "={sp}"()
%1 = load i64, i64* @new_sp, align 8
call void @cycleEntry(i64 %0, i64 %1)
ret void
}
; Function Attrs: nobuiltin nounwind
define internal void @cycleEntry(i64, i64) unnamed_addr #2 {
Entry:
call void asm sideeffect " # set the new base pointer for this
function\0A movq %rsi, %rbp\0A # store stack pointer of this function
for later\0A mov...