[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:21 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-nvptx64-nvidia-ubuntu` running on `as-builder-7` while building `llvm` at step 6 "test-build-unified-tree-check-llvm".

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

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

Command Output (stderr):
--
RUN: at line 1: not /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/llvm-tblgen -I /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/../../../include -gen-global-isel-combiner      -combiners=MyCombiner /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td 2>&1|  /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td -implicit-check-not=error:
+ not /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/llvm-tblgen -I /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/../../../include -gen-global-isel-combiner -combiners=MyCombiner /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td -implicit-check-not=error:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/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:255: note: scanning from here
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/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:255: note: with "@LINE+1" equal to "31"
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/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:146: note: possible intended match here
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/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/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td

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

Input was:
<<<<<<
            .
            .
            .
           11: def ConflictingInference : GICombineRule< 
           12:  ^ 
           13: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td:24:5: note: 'args' seen with type 'GIVariadic<2,4>' in '__ConflictingInference_match_0' 
           14: def ConflictingInference : GICombineRule< 
           15:  ^ 
           16: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/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 
check:30'0                                                                                                                                                                                                                                                                   X error: no match found
check:30'1                                                                                                                                                                                                                                                                     with "@LINE+1" equal to "31"
           17: def InvalidBounds0 : GICombineRule< 
check:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           18:  ^ 
check:30'0     ~~~
           19: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/variadic-errors.td:31:5: error: Failed to parse pattern: '(G_BUILD_VECTOR ?:$dst, anonymous_8022:$a)' 
check:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:30'2                                                                                                                                                      ?                                                                                     possible intended match
           20: def InvalidBounds0 : GICombineRule< 
check:30'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           21:  ^ 
check:30'0     ~~~
...

```

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


More information about the llvm-commits mailing list