[LLVMdev] Forward-declaring defs in TableGen

David Greene dag at cray.com
Fri Jun 19 14:32:37 PDT 2009


Is there a way to forward-declare a def in TableGen and then define it?

For example:

def foo : Foo;

def bar : Bar {
  let FooThing = foo;
}

def foo : Foo {
  let BarThing = bar;
}

This causes a multiple-definition error in TableGen.

                            -Dave



More information about the llvm-dev mailing list