Implement jump table fix-ups for linear register allocator.
authorEdward Z. Yang <ezyang@mit.edu>
Sun, 17 Apr 2011 22:29:29 +0000 (23:29 +0100)
committerEdward Z. Yang <ezyang@mit.edu>
Wed, 27 Apr 2011 17:01:53 +0000 (18:01 +0100)
We achieve this by splitting up instruction selection for case
switches into two parts: the actual code generation, and the
generation of the accompanying jump table.  With this scheme,
the jump fixup code can modify the contents of the jump table
stored within the JMP_TBL (or BCTL) instruction, before the
actual data section is created.

SPARC and PPC patches are untested; they might not work!

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>


No differences found