[LLVMdev] Use two ComplexPatterns (possible bug of TableGen?)

Brandner Florian brandner at complang.tuwien.ac.at
Wed Jan 14 09:59:03 PST 2009


Alex schrieb:
> It seems that it's not allowed to two same 'ComplexPattern's  in a 'def',
> because TableGen generate the same variable names for the two ComplexPatterns.
> If I understand the source code of TableGen correctly, it's not designed to
> use more than one ComplexPattern instance (no matter they are the same or not).

I've run into this too, the problem is that variables generated for the
ComplexPattern get the same name(s).

I have a patch against llvm 2.4 that fixes this issue, but did not have
the time to post the patch here. I'll do so by tomorrow.

florian






More information about the llvm-dev mailing list