[llvm] [GlobalISel][TableGen] MIR Pattern Variadics (PR #100563)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 23:37:15 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `llvm` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/3675

Here is the relevant piece of the build log for the reference:
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: TableGen/GlobalISelCombinerEmitter/variadic-errors.td' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: not /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/llvm-tblgen -I /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/../../../include -gen-global-isel-combiner      -combiners=MyCombiner /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td 2>&1|  /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td -implicit-check-not=error:
+ not /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/llvm-tblgen -I /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/../../../include -gen-global-isel-combiner -combiners=MyCombiner /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td -implicit-check-not=error:
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td:30:11: error: CHECK: expected string not found in input
// CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Failed to parse pattern: '(G_BUILD_VECTOR ?:$dst, anonymous_8021:$a)'
          ^
<stdin>:16:248: note: scanning from here
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td:31:5: error: cannot parse operand type: minimum number of arguments must be greater than zero in GIVariadic
                                                                                                                                                                                                                                                       ^
<stdin>:16:248: note: with "@LINE+1" equal to "31"
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td:31:5: error: cannot parse operand type: minimum number of arguments must be greater than zero in GIVariadic
                                                                                                                                                                                                                                                       ^
<stdin>:19:139: note: possible intended match here
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td:31:5: error: Failed to parse pattern: '(G_BUILD_VECTOR ?:$dst, anonymous_8022:$a)'
                                                                                                                                          ^

Input file: <stdin>
Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td:12:5: error: 'G_BUILD_VECTOR': GIVariadic can only be used on the last operand 
check:11'0                                                                                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:11'1                                                                                                                                                                                                                                 with "@LINE+1" equal to "12"
not:imp1'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
not:imp1'1                                                                                                                                                                                                                               X
            2: def VariadicNotLastInList : GICombineRule< 
not:imp1'1     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            3:  ^ 
not:imp1'1     ~~~
            4: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td:18:5: error: 'G_IMPLICIT_DEF': GIVariadic cannot be used on defs 
check:17'0                                                                                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:17'1                                                                                                                                                                                                                   with "@LINE+1" equal to "18"
not:imp1'1     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
not:imp1'2                                                                                                                                                                                                                 X
            5: def VariadicAsDef : GICombineRule< 
not:imp1'2     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            6:  ^ 
not:imp1'2     ~~~
            7: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td:24:5: error: conflicting types for operand 'args': 'GIVariadic<2,4>' vs 'GIVariadic<3,6>' 
check:23'0                                                                                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:23'1                                                                                                                                                                                                                                            with "@LINE+1" equal to "24"
not:imp1'2     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

```

https://github.com/llvm/llvm-project/pull/100563


More information about the llvm-commits mailing list