added offset and symconst as attributes
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Wed, 2 Nov 2005 14:45:39 +0000 (14:45 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Wed, 2 Nov 2005 14:45:39 +0000 (14:45 +0000)
ir/be/firm2arch_nodes_attr.h

index c455e82..16b21cf 100644 (file)
@@ -4,7 +4,13 @@
 #include "firm_types.h"
 
 typedef struct {
-  tarval *tv;
+  enum { asmop_Const, asmop_SymConst } tp;
+  struct {
+    tarval  *tv;       /**<< tarval for immediate operations */
+    tarval  *offset;   /**<< offset for LEA */
+    ir_node *symconst; /**<< old symconst node in case of asmop_SymConst */
+  } data;
+
   void *reg_constraints;
 } asmop_attr;