[LLVMdev] Old-style code generators broken?

Vladimir Prus ghost at cs.msu.su
Mon May 15 05:58:11 PDT 2006

it looks like old-style code generators can no longer work with LLVM CVS,

1. The TableGen uses the DAG from instruction to computed the number of
operands written in generated tables, and when there's no DAG, writes 0.

2. MachineInstructions::addRegOperand checks for maximum number of operands.

So, when not using DAGS in TableGen input, addRegOperand asserts on adding
the very first operand to any instruction.

If that was an explicit decision, maybe docs should be updated to say so?

- Volodya

More information about the llvm-dev mailing list