Lines Matching refs:storage
2 * Storage - associate pseudos with "storage" that keeps them alive
4 * the global storage allocation problem as possible into a local
16 #include "storage.h"
18 ALLOCATOR(storage, "storages");
19 ALLOCATOR(storage_hash, "storage hash");
80 struct storage *storage = hash->storage;
81 if (storage->name)
83 storage->name = ++name;
88 struct storage *lookup_storage(struct basic_block *bb, pseudo_t pseudo, enum inout_enum inout)
95 return hash->storage;
100 void add_storage(struct storage *storage, struct basic_block *bb, pseudo_t pseudo, enum inout_enum inout)
103 struct storage_hash *hash = alloc_storage_hash(storage);
117 struct storage *aa = a->storage;
118 struct storage *bb = b->storage;
139 struct storage *a = last->storage;
140 struct storage *b = entry->storage;
148 printf("\t BAD: same storage as %s in %p: %s (%s and %s)\n",
170 const char *show_storage(struct storage *s)
193 * Combine two storage allocations into one.
198 static struct storage * combine_storage(struct storage *src, struct storage *dst)
200 struct storage **usep;
222 struct storage *child_in, *parent_out;
253 struct storage *storage = alloc_storage();
257 storage->type = REG_ARG;
258 storage->regno = arg->nr;
260 add_storage(storage, bb, arg, STOR_IN);
268 /* First set up storage for the incoming arguments */
271 /* Then do a list of all the inter-bb storage */