Color entry block arguments using the function signature.

The arguments to the entry block arrive in registers determined by the
ABI. This information is stored in the signature.

Use a separate function for coloring entry block arguments using the
signature information. We can't handle stack arguments yet.
This commit is contained in:
Jakob Stoklund Olesen
2017-04-26 14:38:16 -07:00
parent bb8ae9a4fb
commit 4c8eb85f39
2 changed files with 69 additions and 13 deletions

View File

@@ -6,8 +6,7 @@ isa riscv
function add(i32, i32) {
ebb0(v1: i32, v2: i32):
v3 = iadd v1, v2
; TODO: This shouldn't clobber the link register.
; check: [R#0c,%x1]
; check: [R#0c,%x5]
; sameln: iadd
return
}