[PATCH] D93419: [TableGen] Add the !substr() bang operator

Paul C. Anagnostopoulos via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 18 08:39:30 PST 2020


Paul-C-Anagnostopoulos added a comment.

I'm afraid I may have gotten your hopes up. It turns out that it's quite difficult to add an assert statement given the structure of the TableGen parser. A couple of the issues:

1. It's not clear at all when the assert expression should be evaluated, particularly when it appears in a def or class.

2. There is no straightforward mechanism for carrying an assertion along with a multiclass definition, for use when the multiclass is instantiated.

I haven't given up, but it will take some time.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93419/new/

https://reviews.llvm.org/D93419



More information about the llvm-commits mailing list