HomePhabricator

[FileCheck] Share variable instance among uses

Description

[FileCheck] Share variable instance among uses

Summary:
This patch changes expression support to use one instance of
FileCheckNumericVariable per numeric variable rather than one per
variable and per definition. The current system was only necessary for
the last patch of the numeric expression support patch series in order
to handle a line using a variable defined earlier on the same line from
the input text. However this can be dealt more efficiently.

Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk

Subscribers: JonChesterfield, rogfer01, hfinkel, kristina, rnk, tra, arichardson, grimar, dblaikie, probinson, llvm-commits, hiraditya

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64229

Details

Committed
thopreJul 5 2019, 9:25 AM
Differential Revision
D64229: [FileCheck] Share variable instance among uses
Parents
rL365219: [FileCheck] Don't diagnose undef vars at parse time
Branches
Unknown
Tags
Unknown