diff options
author | Mitch Phillips <mitchphillips@outlook.com> | 2017-11-07 21:16:46 +0000 |
---|---|---|
committer | Mitch Phillips <mitchphillips@outlook.com> | 2017-11-07 21:16:46 +0000 |
commit | 40d6663367b7e7c0cc5c3686e18fe75facd30403 (patch) | |
tree | 71dc720d12860321da69b4ae9197f6ae0af943df /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | |
parent | 512fa40b3ed9523133e8792f41e6f2b44a14cef6 (diff) | |
download | bcm5719-llvm-40d6663367b7e7c0cc5c3686e18fe75facd30403.tar.gz bcm5719-llvm-40d6663367b7e7c0cc5c3686e18fe75facd30403.zip |
Extend SpecialCaseList to allow users to blame matches on entries in the file.
Summary:
Extends SCL functionality to allow users to find the line number in the file the SCL is built from through SpecialCaseList::inSectionBlame(...).
Also removes the need to compile the SCL before use. As the matcher now contains a list of regexes to test against instead of a single regex, the regexes can be individually built on each insertion rather than one large compilation at the end of construction.
This change also fixes a bug where blank lines would cause the parser to become out-of-sync with the line number. An error on line `k` was being reported as being on line `k - num_blank_lines_before_k`.
Note: This change has a cyclical dependency on D39486. Both these changes must be submitted at the same time to avoid a build breakage.
Reviewers: vlad.tsyrklevich
Reviewed By: vlad.tsyrklevich
Subscribers: kcc, pcc, llvm-commits
Differential Revision: https://reviews.llvm.org/D39485
llvm-svn: 317617
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
0 files changed, 0 insertions, 0 deletions