add register names to allocator

make platform instantiate it
basic plumbing
This commit is contained in:
2020-03-18 15:27:40 +02:00
parent 500df01425
commit 8df1b8126f
5 changed files with 32 additions and 16 deletions

View File

@ -151,7 +151,8 @@ module Risc
# The Platform specifies how many registers there are, and the
# Allocator changes SSA names to allocated names
def allocate_regs(platform)
allocator = Allocator.new(self , platform)
allocator = platform.allocator(self)
allocator.allocate_regs
end
end
end