mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 07:56:08 +00:00

Create the `ReportedErrors` class to track the number of reported errors during verification. The class will block reporting errors if some other thread is currently reporting an error. I've encountered a case where there were many different verifications reporting errors at the same time on different threads. This ensures that we don't start printing the error from one case until we are completely done printing errors from other cases. Most of the time `AbortOnError = true` so we usually abort after reporting the first error. Depends on https://github.com/llvm/llvm-project/pull/111602.
23 lines
582 B
YAML
23 lines
582 B
YAML
# RUN: not --crash llc -mtriple=aarch64 -o /dev/null -run-pass=none %s 2>&1 | FileCheck %s --implicit-check-not="Bad machine code"
|
|
# REQUIRES: aarch64-registered-target
|
|
|
|
# Since we abort after reporting the first error, we should only expect one error to be reported.
|
|
# CHECK: *** Bad machine code: Generic virtual register use cannot be undef ***
|
|
# CHECK: Found 1 machine code errors.
|
|
|
|
---
|
|
name: foo
|
|
liveins:
|
|
body: |
|
|
bb.0:
|
|
$x0 = COPY undef %0:_(s64)
|
|
...
|
|
|
|
---
|
|
name: bar
|
|
liveins:
|
|
body: |
|
|
bb.0:
|
|
$x0 = COPY undef %0:_(s64)
|
|
...
|