RL4ReAl: Reinforcement Learning for Register Allocation

04/05/2022
by   S. VenkataKeerthy, et al.
0

We propose a novel solution for the Register Allocation problem, leveraging multi-agent hierarchical Reinforcement Learning. We formalize the constraints that precisely define the problem for a given instruction-set architecture, while ensuring that the generated code preserves semantic correctness. We also develop a gRPC based framework providing a modular and efficient compiler interface for training and inference. Experimental results match or outperform the LLVM register allocators, targeting Intel x86 and ARM AArch64.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset