[PATCH] D44108: TableGen: Allow arbitrary list values as ranges of foreach

Nicolai Hähnle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 5 12:20:35 PST 2018


nhaehnle created this revision.
nhaehnle added reviewers: arsenm, craig.topper, tra, MartinO.
Herald added a subscriber: wdng.
nhaehnle added a dependency: D44107: TableGen: Remove unused ParseForeachMode.
nhaehnle added a dependent revision: D44109: TableGen: Add a defset statement.

The changes to FieldInit are required to make field references (Def.field)
work inside a ForeachDeclaration: previously, Def.field wasn't resolved
immediately when Def was already a fully resolved DefInit.

Change-Id: I9875baec2fc5aac8c2b249e45b9cf18c65ae699b


Repository:
  rL LLVM

https://reviews.llvm.org/D44108

Files:
  docs/TableGen/LangRef.rst
  include/llvm/TableGen/Record.h
  lib/TableGen/Record.cpp
  lib/TableGen/TGParser.cpp
  test/TableGen/ForeachList.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44108.137056.patch
Type: text/x-patch
Size: 5176 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180305/e46df8e1/attachment.bin>


More information about the llvm-commits mailing list