-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NFC] Disallow unused prefixes under llvm/test
This patch sets the default for llvm tests, with the exception of tests under Reduce, because quite a few of them use 'FileCheck' as parameter to a tool, and including a flag as that parameter would complicate matters. The rest of the patch undo-es the lit.local.cfg changes we progressively introduced as temporary measure to avoid regressions under various directories. Differential Revision: https://reviews.llvm.org/D95111
- Loading branch information
Showing
22 changed files
with
53 additions
and
94 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
llvm/test/Instrumentation/AddressSanitizer/global_metadata_array.ll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
llvm/test/Instrumentation/MemorySanitizer/msan_asm_conservative.ll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
llvm/test/Instrumentation/MemorySanitizer/msan_x86_bts_asm.ll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,2 @@ | ||
from lit.llvm.subst import ToolSubst | ||
|
||
if 'AArch64' not in config.root.targets: | ||
config.unsupported = True | ||
|
||
fc = ToolSubst('FileCheck', unresolved='fatal') | ||
# Insert this first. Then, we'll first update the blank FileCheck command; then, | ||
# the default substitution of FileCheck will replace it to its full path. | ||
config.substitutions.insert(0, (fc.regex, | ||
'FileCheck --allow-unused-prefixes=false')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,2 @@ | ||
from lit.llvm.subst import ToolSubst | ||
|
||
if not 'AMDGPU' in config.root.targets: | ||
config.unsupported = True | ||
|
||
fc = ToolSubst('FileCheck', unresolved='fatal') | ||
# Insert this first. Then, we'll first update the blank FileCheck command; then, | ||
# the default substitution of FileCheck will replace it to its full path. | ||
config.substitutions.insert(0, (fc.regex, | ||
'FileCheck --allow-unused-prefixes=false')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,2 @@ | ||
from lit.llvm.subst import ToolSubst | ||
|
||
if not 'ARM' in config.root.targets: | ||
config.unsupported = True | ||
|
||
fc = ToolSubst('FileCheck', unresolved='fatal') | ||
# Insert this first. Then, we'll first update the blank FileCheck command; then, | ||
# the default substitution of FileCheck will replace it to its full path. | ||
config.substitutions.insert(0, (fc.regex, | ||
'FileCheck --allow-unused-prefixes=false')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,2 @@ | ||
from lit.llvm.subst import ToolSubst | ||
|
||
if not 'RISCV' in config.root.targets: | ||
config.unsupported = True | ||
|
||
fc = ToolSubst('FileCheck', unresolved='fatal') | ||
# Insert this first. Then, we'll first update the blank FileCheck command; then, | ||
# the default substitution of FileCheck will replace it to its full path. | ||
config.substitutions.insert(0, (fc.regex, | ||
'FileCheck --allow-unused-prefixes=false')) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79: | ||
# FIXME: remove this file when we flip the default for --allow-unused-prefixes. | ||
from lit.llvm.subst import ToolSubst | ||
|
||
fc = ToolSubst('FileCheck', unresolved='fatal') | ||
# the parent introduced the opposite rule, so we replace it if we see it. | ||
if len(config.substitutions) > 0 and config.substitutions[0] == (fc.regex, 'FileCheck --allow-unused-prefixes=false'): | ||
del config.substitutions[0] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters