-/**
- * this is a struct to minimize the number of parameters
- * for transformation walker
- */
-struct amd64_transform_env_t {
- dbg_info *dbg; /**< The node debug info */
- ir_graph *irg; /**< The irg, the node should be created in */
- ir_node *block; /**< The block, the node should belong to */
- ir_node *irn; /**< The irn, to be transformed */
- ir_mode *mode; /**< The mode of the irn */
-};
+static inline amd64_irg_data_t *amd64_get_irg_data(const ir_graph *irg)
+{
+ return (amd64_irg_data_t*) be_birg_from_irg(irg)->isa_link;
+}