}
}
+
+ // Compute the ModuleLevel entries.
+ ModuleLevel.resize(getNumPlanes());
+ for (unsigned i = 0, e = getNumPlanes(); i != e; ++i)
+ ModuleLevel[i] = getPlane(i).size();
+ ModuleTypeLevel = Types.size();
+
SC_DEBUG("end processModule!\n");
}
void SlotCalculator::incorporateFunction(const Function *F) {
- assert((ModuleLevel.empty() ||
- ModuleTypeLevel == 0) && "Module already incorporated!");
-
SC_DEBUG("begin processFunction!\n");
- // Update the ModuleLevel entries to be accurate.
- ModuleLevel.resize(getNumPlanes());
- for (unsigned i = 0, e = getNumPlanes(); i != e; ++i)
- ModuleLevel[i] = getPlane(i).size();
- ModuleTypeLevel = Types.size();
-
// Iterate over function arguments, adding them to the value table...
for(Function::const_arg_iterator I = F->arg_begin(), E = F->arg_end();
I != E; ++I)
}
void SlotCalculator::purgeFunction() {
- assert((ModuleLevel.size() != 0 ||
- ModuleTypeLevel != 0) && "Module not incorporated!");
unsigned NumModuleTypes = ModuleLevel.size();
SC_DEBUG("begin purgeFunction!\n");
}
}
- // We don't need this state anymore, free it up.
- ModuleLevel.clear();
- ModuleTypeLevel = 0;
-
// Finally, remove any type planes defined by the function...
while (Table.size() > NumModuleTypes) {
TypePlane &Plane = Table.back();