Package iota
Class NNaiveRegisterAllocator
java.lang.Object
iota.NRegisterAllocator
iota.NNaiveRegisterAllocator
A register allocator that uses a naive round-robin approach to allocate physical registers to virtual registers.
-
Field Summary
Fields inherited from class iota.NRegisterAllocator
cfg
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an NNaiveRegisterAllocator object. -
Method Summary
-
Constructor Details
-
NNaiveRegisterAllocator
Constructs an NNaiveRegisterAllocator object.- Parameters:
cfg
- control flow graph for the method.
-
-
Method Details
-
run
public void run()Allocates physical registers to virtual registers.- Specified by:
run
in classNRegisterAllocator
-