[all-commits] [llvm/llvm-project] 267b57: [TableGen] Fix anonymous record self-reference in ...
Jyun-Yan You via All-commits
all-commits at lists.llvm.org
Mon Feb 1 08:01:41 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 267b573b55f7f43aaeaf4860e31101cd6a3dbba0
https://github.com/llvm/llvm-project/commit/267b573b55f7f43aaeaf4860e31101cd6a3dbba0
Author: J-Y You <jyyou.tw at gmail.com>
Date: 2021-02-01 (Mon, 01 Feb 2021)
Changed paths:
M llvm/include/llvm/TableGen/Record.h
M llvm/lib/TableGen/Record.cpp
M llvm/lib/TableGen/TGParser.cpp
M llvm/test/TableGen/self-reference.td
Log Message:
-----------
[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
More information about the All-commits
mailing list