llvm-project/llvm/lib/TableGen
J-Y You 267b573b55 [TableGen] Fix anonymous record self-reference in foreach and multiclass
If we instantiate self-referenced anonymous records in foreach and
multiclass, the NAME value will point to incorrect record. It's because
anonymous name is resolved too early.

This patch adds AnonymousNameInit to represent an anonymous record name.
When instantiating an anonymous record, it will update the referred name.

Differential Revision: https://reviews.llvm.org/D95309
2021-02-01 10:59:07 -05:00
..
CMakeLists.txt llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
DetailedRecordsBackend.cpp [TableGen] [DetailedRecords] Print record name that is null string as "" 2021-01-27 10:41:46 -05:00
Error.cpp [TableGen] Eliminate the 'code' type 2020-12-03 10:19:11 -05:00
JSONBackend.cpp [TableGen] Add field kind to the RecordVal class. 2021-01-07 09:31:27 -05:00
Main.cpp [TableGen] Add frontend/backend phase timing capability. 2020-11-14 10:10:29 -05:00
Record.cpp [TableGen] Fix anonymous record self-reference in foreach and multiclass 2021-02-01 10:59:07 -05:00
SetTheory.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
StringMatcher.cpp
TGLexer.cpp [TableGen] Add the assert statement, step 1 2021-01-08 09:47:51 -05:00
TGLexer.h [TableGen] Add the assert statement, step 1 2021-01-08 09:47:51 -05:00
TGParser.cpp [TableGen] Fix anonymous record self-reference in foreach and multiclass 2021-02-01 10:59:07 -05:00
TGParser.h [TableGen] Add the assert statement, step 1 2021-01-08 09:47:51 -05:00
TableGenBackend.cpp Explicitly include <cassert> when using assert 2020-03-02 22:45:28 +01:00
TableGenBackendSkeleton.cpp [TableGen] New backend to print detailed records. 2020-10-02 10:22:13 -04:00