diff graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/Register.java @ 7804:447f9ba1962b

Experimental PTX backend. Contribution by Christian Thalinger.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Mon, 18 Feb 2013 14:47:54 -0800
parents 5e3d1a68664e
children 0e58445d54df
line wrap: on
line diff
--- a/graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/Register.java	Mon Feb 18 18:58:39 2013 +0100
+++ b/graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/Register.java	Mon Feb 18 14:47:54 2013 -0800
@@ -65,6 +65,13 @@
     public final int encoding;
 
     /**
+     * The assembler calls this method to get the register's encoding.
+     */
+    public final int encoding() {
+        return encoding;
+    }
+
+    /**
      * The size of the stack slot used to spill the value of this register.
      */
     public final int spillSlotSize;