namespace nv50_ir {
-Function::Function(Program *p, const char *fnName)
+Function::Function(Program *p, const char *fnName, uint32_t label)
: call(this),
+ label(label),
name(fnName),
prog(p)
{
binPos = 0;
binSize = 0;
+ stackPtr = NULL;
+ tlsBase = 0;
+ tlsSize = 0;
+
prog->add(this, id);
}
Function::~Function()
{
+ prog->del(this, id);
+
if (domTree)
delete domTree;
if (bbArray)
unsigned int
Function::orderInstructions(ArrayList &result)
{
+ result.clear();
+
for (IteratorRef it = cfg.iteratorCFG(); !it->end(); it->next()) {
BasicBlock *bb =
BasicBlock::get(reinterpret_cast<Graph::Node *>(it->get()));