An input !foreach expression such as !foreach(a, lst, !add(a, 1))
would be re-emitted by llvm-tblgen -print-records with the first
argument in quotes, giving !foreach("a", lst, !add(a, 1)), which isn't
valid TableGen input syntax.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I happened to notice this minor discrepancy in the course of writing the original version of D46054 (which dumped all the interesting unresolved expression nodes as well as the concrete final values). It's not important, I admit, but it briefly confused me about what the right syntax for !foreach was, so I thought it would be worth fixing for that reason alone.