Rename "Stackmap" to "StackMap"

And "stackmap" to "stack_map".

This commit is purely mechanical.
This commit is contained in:
Nick Fitzgerald
2020-08-06 16:41:59 -07:00
parent b5a6daedc4
commit 05bf9ea3f3
44 changed files with 218 additions and 211 deletions

View File

@@ -0,0 +1,103 @@
test stack_maps
set enable_safepoints=true
target x86_64
function %icall_fast(r64) -> r64 fast {
; check: function %icall_fast
; nextln: ss0 = spill_slot 8, offset -32
fn0 = %none()
block0(v0: r64):
; check: ss0] v0 = spill v2
; check: safepoint v0
call fn0()
return v0
}
; check: Stack maps:
; nextln:
; nextln: safepoint v0
; nextln: - mapped words: 4
; nextln: - live: [0]
function %icall_sys_v(r64) -> r64 system_v {
; check: function %icall_sys_v
; nextln: ss0 = spill_slot 8, offset -32
fn0 = %none()
block0(v0: r64):
; check: ss0] v0 = spill v2
; check: safepoint v0
call fn0()
return v0
}
; check: Stack maps:
; nextln:
; nextln: safepoint v0
; nextln: - mapped words: 4
; nextln: - live: [0]
function %icall_fastcall(r64) -> r64 windows_fastcall {
; check: function %icall_fastcall
; nextln: ss0 = spill_slot 8, offset -32
; nextln: ss1 = incoming_arg 24, offset -24
; nextln: ss2 = explicit_slot 32, offset -64
fn0 = %none()
block0(v0: r64):
; check: ss0] v0 = spill v2
; check: safepoint v0
call fn0()
return v0
}
; check: Stack maps:
; nextln:
; nextln: safepoint v0
; nextln: - mapped words: 8
; nextln: - live: [4]
function %call_fast(r64) -> r64 fast {
; check: function %call_fast
; nextln: ss0 = spill_slot 8, offset -32
fn0 = colocated %none()
block0(v0: r64):
; check: ss0] v0 = spill v1
; check: safepoint v0
call fn0()
return v0
}
; check: Stack maps:
; nextln:
; nextln: safepoint v0
; nextln: - mapped words: 4
; nextln: - live: [0]
function %call_sys_v(r64) -> r64 system_v {
; check: function %call_sys_v
; nextln: ss0 = spill_slot 8, offset -32
fn0 = colocated %none()
block0(v0: r64):
; check: ss0] v0 = spill v1
; check: safepoint v0
call fn0()
return v0
}
; check: Stack maps:
; nextln:
; nextln: safepoint v0
; nextln: - mapped words: 4
; nextln: - live: [0]
function %call_fastcall(r64) -> r64 windows_fastcall {
; check: function %call_fastcall
; nextln: ss0 = spill_slot 8, offset -32
; nextln: ss1 = incoming_arg 24, offset -24
; nextln: ss2 = explicit_slot 32, offset -64
fn0 = colocated %none()
block0(v0: r64):
; check: ss0] v0 = spill v1
; check: safepoint v0
call fn0()
return v0
}
; check: Stack maps:
; nextln:
; nextln: safepoint v0
; nextln: - mapped words: 8
; nextln: - live: [4]

View File

@@ -0,0 +1,30 @@
test stack_maps
set enable_safepoints=true
target x86_64
;; Incoming args get included in stack maps.
function %incoming_args(r64, r64, r64, r64, r64) -> r64 windows_fastcall {
; check: r64 [32]
; nextln: ss0 = incoming_arg 8, offset 32
; nextln: ss1 = incoming_arg 24, offset -24
; nextln: ss2 = explicit_slot 32, offset -64
fn0 = %none()
; nextln: sig0 = () fast
; nextln: fn0 = %none sig0
block0(v0: r64, v1: r64, v2: r64, v3: r64, v4: r64):
; check: v4: r64 [ss0]
call fn0()
; check: safepoint v4
; nextln: call_indirect
return v4
}
; check: Stack maps:
; nextln:
; nextln: safepoint v4
; nextln: - mapped words: 13
; nextln: - live: [12]