1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00
llvm-mirror/test
Joel E. Denny fcd363afd3 [FileCheck] Fix -dump-input per-pattern diagnostic indexing
In input dump annotations, `check:2'1` indicates diagnostic 1 for the
`CHECK` directive on check file line 2.  Without this patch,
`-dump-input` computes the diagnostic index with the assumption that
FileCheck *consecutively* produces all diagnostics for the same
pattern.  Already, that can be a false assumption, as in the examples
below.  Moreover, it seems like a brittle assumption as FileCheck
evolves.  Finally, it actually complicates the implementation even if
it makes it slightly more efficient.

This patch avoids that assumption.  Examples below show results after
applying this patch.  Before applying this patch, `'N` is omitted
throughout these examples because the implementation doesn't notice
there's more than one diagnostic per pattern.

First, `CHECK-LABEL` violates the assumption because `CHECK-LABEL`
tries to match twice, and other directives can match in between:

```
$ cat check
CHECK: foobar
CHECK-LABEL: foobar

$ FileCheck -vv check < input |& tail -8
<<<<<<
           1: text
           2: foobar
label:2'0     ^~~~~~
check:1       ^~~~~~
label:2'1           X error: no match found
           3: text
>>>>>>
```

Second, `--implicit-check-not` is obviously processed many times among
other directives:

```
$ cat check
CHECK: foo
CHECK: foo

$ FileCheck -vv -dump-input=always -implicit-check-not=foo \
            check < input |& tail -16
<<<<<<
            1: text
not:imp1'0     X~~~~
            2: foo
check:1        ^~~
not:imp1'1        X
            3: text
not:imp1'1     ~~~~~
            4: foo
check:2        ^~~
not:imp1'2        X
            5: text
not:imp1'2     ~~~~~
            6:
eof:2          ^
>>>>>>
```

Reviewed By: thopre, jhenderson

Differential Revision: https://reviews.llvm.org/D97813
2021-03-27 10:36:21 -04:00
..
Analysis [BasicAA] Correct handle implicit sext in decomposition 2021-03-27 15:15:47 +01:00
Assembler [Assembler] Fix global icmp test 2021-03-08 17:26:49 +01:00
Bindings [OCaml][DebugInfo][Test] Disable debuginfo tests as they fail on some machines 2021-03-26 22:56:38 +05:30
Bitcode [IR] Add vscale_range IR function attribute 2021-03-22 12:05:06 +00:00
BugPoint
CodeGen [X86][SSE] combineX86ShuffleChain - attempt to recognise 'hidden' identity shuffles 2021-03-27 11:09:30 +00:00
DebugInfo [XCore][Test] XFAIL tests requiring 8-byte stack alignment. 2021-03-24 09:12:53 +00:00
Demangle [Demangle] Support demangling Swift calling convention in MS demangler. 2021-01-27 13:24:54 -08:00
Examples
ExecutionEngine [JITLink][MachO] Use full <segment>,<section> names for MachO jitlink::Sections. 2021-03-25 18:31:18 -07:00
Feature
FileCheck [FileCheck] Fix -dump-input per-pattern diagnostic indexing 2021-03-27 10:36:21 -04:00
Instrumentation [llvm][hwasan] Add Fuchsia shadow mapping configuration 2021-03-25 15:28:59 -07:00
Integer Temporarily revert "[lli] Make -jit-kind=orc the default JIT engine" 2021-03-23 12:01:30 +01:00
JitListener
Linker Support intrinsic overloading on unnamed types 2021-03-19 14:34:25 +01:00
LTO [LTO][MC] Discard non-prevailing defined symbols in module-level assembly 2021-03-18 15:33:42 -07:00
MachineVerifier [GlobalISel] Add G_ROTR and G_ROTL opcodes for rotates. 2021-03-25 17:23:30 -07:00
MC [AArch64] Support .arch_extension pan 2021-03-24 11:29:22 -07:00
Object AMDGPU: Add target id and code object v4 support 2021-03-24 11:54:05 -04:00
ObjectYAML [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
Other add print-change diff modes that do not use colour 2021-03-25 10:35:27 -04:00
Reduce [FileCheck] Default --allow-unused-prefixes to false 2021-02-08 13:37:04 -08:00
SafepointIRVerifier
Support On Windows, handle interrupt signals without crash message 2020-05-21 13:27:10 +01:00
SymbolRewriter
TableGen [openacc][openmp] Reduce number of generated file and prefer inclusion of .inc 2021-03-23 09:16:53 -04:00
ThinLTO/X86 [llvm] Change DSOLocalEquivalent type if the underlying global value type changes 2021-03-09 15:09:48 -08:00
tools [MCA] Support carry-over instructions for in-order processors 2021-03-26 00:06:19 +03:00
Transforms Make FoldBranchToCommonDest poison-safe by default 2021-03-27 19:05:12 +09:00
Unit [lit] Sort test start times based on prior test timing data 2021-03-16 05:23:04 -04:00
Verifier [IR][SVE] Add new llvm.experimental.stepvector intrinsic 2021-03-23 10:43:35 +00:00
YAMLParser
.clang-format
CMakeLists.txt Revert "[IRSim] Adding basic implementation of llvm-sim." 2021-03-20 18:03:09 -05:00
lit.cfg.py Revert "[IRSim] Adding basic implementation of llvm-sim." 2021-03-20 18:03:09 -05:00
lit.site.cfg.py.in [test] Add ability to get error messages from CMake for errc substitution 2021-03-15 20:56:08 +01:00
TestRunner.sh