Displaying 1 result from an estimated 1 matches for "processgraph".
2007 Jun 16
2
[LLVMdev] Runtime optimization of C++ code with virtual functions
...* fArg2;
public:
PAR_DSP(DSP* a1, DSP* a2):fArg1(a1), fArg2(a2) {}
virtual~PAR_DSP() {delete fArg1; delete fArg2;}
virtual int Compute(int count, float** in, float** out)
{
// Some code that uses:
fArg1->Compute(count, in, out);
fArg2->Compute(count, in, out);
}
};
void ProcessGraph (float** in, float** out)
{
DSP* graph = new PAR_DSP(new SEQ_DDSP(new CONCRETE_DSP(), new
CONCRETE_DSP()), new CONCRETE_DSP());
graph->Compute(512, in, out);
delete graph;
}
At runtime after a graph is created, one could imagine optimizing by
resolving call to "virtual Compute&quo...