5 * The "storage" that underlies an incoming/outgoing pseudo. It's
6 * basically the backing store for a pseudo, and may be a real hw
7 * register, a stack slot or a static symbol. Or nothing at all,
8 * since some pseudos can just be recalculated on the fly.
25 DECLARE_PTR_LIST(storage_ptr_list
, struct storage
*);
28 enum storage_type type
;
30 struct storage_ptr_list
*users
;
38 DECLARE_PTR_LIST(storage_list
, struct storage
);
41 struct basic_block
*bb
;
43 enum inout_enum inout
;
44 struct storage
*storage
;
47 DECLARE_PTR_LIST(storage_hash_list
, struct storage_hash
);
49 extern struct storage_hash_list
*gather_storage(struct basic_block
*, enum inout_enum
);
50 extern void free_storage(void);
51 extern const char *show_storage(struct storage
*);
52 extern void set_up_storage(struct entrypoint
*);
54 DECLARE_ALLOCATOR(storage
);
55 DECLARE_ALLOCATOR(storage_hash
);
57 static inline struct storage
*alloc_storage(void)
59 return __alloc_storage(0);
62 static inline struct storage_hash
*alloc_storage_hash(struct storage
*s
)
64 struct storage_hash
*entry
= __alloc_storage_hash(0);
65 struct storage
**usep
= &entry
->storage
;
68 add_ptr_list(&s
->users
, usep
);
72 #endif /* STORAGE_H */