Hi,
Currently, TableGen generates all the instruction selection functions (in the .inc file) as if they were top-most functions. To make them members of their corresponding SelectionDAGISel derivative, each target has to include the .inc file directly into the body of the class:
--- FooDAGISel.inc ---
void SelectCode(Node *N) {
// 1E6 lines of pattern matching code
}
...