* Move the x86 genSpill/genRestore functions to the right place.
* Allow HInstrArray to record the number of vregs in the instrs
  in the array.


git-svn-id: svn://svn.valgrind.org/vex/trunk@44 8f6e269a-dfd6-0310-a8e1-e2731360e62c
diff --git a/include/host_regs.h b/include/host_regs.h
index 9bf1a75..024acb1 100644
--- a/include/host_regs.h
+++ b/include/host_regs.h
@@ -143,14 +143,17 @@
 typedef  void  HInstr;
 
 
-/* An expandable array of HInstr*'s.  Handy for insn 
-   selection and register allocation. */
-
+/* An expandable array of HInstr*'s.  Handy for insn selection and
+   register allocation.  n_vregs indicates the number of virtual
+   registers mentioned in the code, something that reg-alloc needs to
+   know.  These are required to be numbered 0 .. n_vregs-1. 
+*/
 typedef
    struct {
       HInstr** arr;
       Int      arr_size;
       Int      arr_used;
+      Int      n_vregs;
    }
    HInstrArray;
 
@@ -171,7 +174,6 @@
 
    /* Incoming virtual-registerised code. */ 
    HInstrArray* instrs_in,
-   Int          n_vregs,
 
    /* An array listing all the real registers the allocator may use,
       in no particular order. */