[llvm-dev] Conditional includes in TableGen?

陳韋任 via llvm-dev llvm-dev at lists.llvm.org
Mon Nov 6 06:07:22 PST 2017

I don't think there is no C-style conditional include in tablegen. Maybe
you can do what you want by defining a file scope Predicates?

2017-11-06 21:50 GMT+08:00 David Chisnall via llvm-dev <
llvm-dev at lists.llvm.org>:

> Hello the list,
> We have just moved things over to using the new multiple register size
> things, but this is not (yet?) supported by FastISel.  This isn’t an issue
> for us, because fast isel never worked for our extensions to base MIPS.
> We’ve temporarily simply disabled fast isel entirely, but it would be nice
> if we could only include our .td file for the TableGen runs that are *not*
> generating the fast isel code.
> Looking at the tablegen docs, I can’t see any mechanism that allows me to
> conditionally include a file.  Does this exist in any form?
> David
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

Wei-Ren Chen (陳韋任)
Homepage: https://people.cs.nctu.edu.tw/~chenwj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171106/0eb01e0a/attachment.html>

More information about the llvm-dev mailing list