1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/utils
Jinsong Ji 94bc407832 [UpdateTestChecks][PowerPC] Avoid empty string when scrubbing loop comments
Summary:
SCRUB_LOOP_COMMENT_RE was introduced in https://reviews.llvm.org/D31285
This works for some loops.

However, we may generate lines with loop comments only.
And since we don't scrub leading white spaces, this will leave an empty
line there, and FileCheck will complain it.

eg: llvm/test/CodeGen/PowerPC/PR35812-neg-cmpxchg.ll:27:15:
error: found empty check string with prefix 'CHECK:'
; CHECK-NEXT:

This prevented us from using the `update_llc_test_checks.py` for quite some cases.

We should still keep the comment token there, so that we can safely
scrub the loop comment without breaking FileCheck.

Reviewers: timshen, hfinkel, lebedev.ri, RKSimon

Subscribers: nemanjai, jfb, llvm-commits

Tags: #llvm

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

llvm-svn: 364775
2019-07-01 14:37:48 +00:00
..
benchmark [benchmark] Disable CMake get_git_version 2019-07-01 10:58:20 +00:00
bugpoint
count
crosstool
docker
emacs
FileCheck FileCheck: Improve FileCheck variable terminology 2019-05-23 00:10:14 +00:00
fpcmp
gdb-scripts Fix GDB pretty printer for Optional after r354246 2019-05-28 20:22:16 +00:00
git
git-svn [git] Be more specific when looking for llvm-svn 2019-05-23 18:43:19 +00:00
gn [compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.* 2019-06-27 20:56:04 +00:00
jedit
kate
KillTheDoctor
lint
lit Fix some lit test ResourceWarnings on Windows 2019-06-18 16:36:57 +00:00
llvm-build
llvm-lit
LLVMVisualizers Clean up MSVC visualization of LLVM pointer types 2019-06-30 21:54:34 +00:00
Misc
not
PerfectShuffle
release
Reviewing
sanitizers
TableGen Teach TableGen Intrin Emitter to handle LLVMPointerType<llvm_any_ty> 2019-06-26 00:08:22 +00:00
Target/ARM
testgen
textmate
unittest Revert CMake: Make most target symbols hidden by default 2019-06-11 03:21:13 +00:00
UpdateTestChecks [UpdateTestChecks][PowerPC] Avoid empty string when scrubbing loop comments 2019-07-01 14:37:48 +00:00
valgrind
vim
vscode
yaml-bench
abtest.py
bisect
bisect-skip-count
bugpoint_gisel_reducer.py
check-each-file
chunk-print-before-all.py [Util] Add a helper script for converting -print-before-all output into a file based equivelent 2019-06-19 22:05:47 +00:00
clang-parse-diagnostics-file
codegen-diff
collect_and_build_with_pgo.py
countloc.sh
create_ladder_graph.py
demangle_tree.py
DSAclean.py
DSAextract.py
extract_symbols.py
extract_vplan.py
findmisopt
findoptdiff
findsym.pl
GenLibDeps.pl
GetRepositoryPath
GetSourceVersion
getsrcs.sh
indirect_calls.py
lldbDataFormatters.py
llvm-compilers-check
llvm-gisel-cov.py
llvm-native-gxx
llvm.grm
LLVMBuild.txt
llvmdo
llvmgrep
prepare-code-coverage-artifact.py svn propset svn:executable on utils/prepare-code-coverage-artifact.py 2019-06-04 23:35:07 +00:00
schedcover.py
shuffle_fuzz.py
shuffle_select_fuzz_tester.py
sort_includes.py
unicode-case-fold.py
update_analyze_test_checks.py
update_cc_test_checks.py
update_llc_test_checks.py UpdateTestChecks: fix AMDGPU handling 2019-05-18 13:00:03 +00:00
update_mca_test_checks.py
update_mir_test_checks.py
update_test_checks.py [utils] update_test_checks.py: allow opt-8, opt-9 2019-05-12 04:55:09 +00:00
UpdateCMakeLists.pl
wciia.py