ssrg-vt / popcorn-compiler

Popcorn Linux compiler toolchain for heterogeneous-ISA execution
42 stars 22 forks source link

Temporaries fix #38

Closed rlyerly closed 6 years ago

rlyerly commented 6 years ago

For some architectures the code generator may cache a live value in a register/stack slot whereas for others it may be able to cheaply materialize the value as needed. This can lead to the situation where one ISA needs a live value to recreate the stack frame and another doesn't. This patch provides the basic infrastructure to detect that situation and handle it for an initial set of live values (namely stack references).