[Mlir-commits] [mlir] [MLIR][LLVM] Extend DIScopeForLLVMFuncOp to handle cross-file operatio… (PR #167844)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Nov 18 21:59:38 PST 2025


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 7085 tests passed
* 594 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### MLIR
<details>
<summary>MLIR.Dialect/LLVMIR/add-debuginfo-func-scope.mlir</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/LLVMIR/add-debuginfo-func-scope.mlir --pass-pipeline="builtin.module(ensure-debug-info-scope-on-llvm-func)" --split-input-file --mlir-print-debuginfo | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/LLVMIR/add-debuginfo-func-scope.mlir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/LLVMIR/add-debuginfo-func-scope.mlir '--pass-pipeline=builtin.module(ensure-debug-info-scope-on-llvm-func)' --split-input-file --mlir-print-debuginfo
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/LLVMIR/add-debuginfo-func-scope.mlir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/LLVMIR/add-debuginfo-func-scope.mlir:146:17: error: CHECK-LABEL: expected string not found in input
# | // CHECK-LABEL: llvm.func @func_cross_file_op()
# |                 ^
# | <stdin>:119:31: note: scanning from here
# |  llvm.func @func_callsiteloc() loc(#loc4)
# |                               ^
# | <stdin>:133:2: note: possible intended match here
# |  llvm.func @func_cross_file_op(%arg0: i32 loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/LLVMIR/add-debuginfo-func-scope.mlir":157:33)) -> i32 {
# |  ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/LLVMIR/add-debuginfo-func-scope.mlir
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |            114: #loc3 = loc(fused<"myPass">[#loc1, #loc2]) 
# |            115: #loc4 = loc(fused<#di_subprogram>[#loc3]) 
# |            116:  
# |            117: // ----- 
# |            118: module { 
# |            119:  llvm.func @func_callsiteloc() loc(#loc4) 
# | label:146'0                                   X~~~~~~~~~~~ error: no match found
# |            120: } loc(#loc) 
# | label:146'0     ~~~~~~~~~~~~
# |            121: #di_file = #llvm.di_file<"mysource.cc" in ""> 
# | label:146'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            122: #di_subroutine_type = #llvm.di_subroutine_type<callingConvention = DW_CC_normal> 
# | label:146'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            123: #loc = loc(unknown) 
# | label:146'0     ~~~~~~~~~~~~~~~~~~~~
# |            124: #loc1 = loc("foo") 
# | label:146'0     ~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            128: #loc4 = loc(fused<#di_subprogram>[#loc3]) 
# | label:146'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            129:  
# | label:146'0     ~
# |            130: // ----- 
# | label:146'0     ~~~~~~~~~
# |            131: #loc2 = loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/LLVMIR/add-debuginfo-func-scope.mlir":157:33) 
# | label:146'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            132: module { 
# | label:146'0     ~~~~~~~~~
# |            133:  llvm.func @func_cross_file_op(%arg0: i32 loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/LLVMIR/add-debuginfo-func-scope.mlir":157:33)) -> i32 { 
# | label:146'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | label:146'1      ?                                                                                                                                                                                 possible intended match
# |            134:  %0 = llvm.add %arg0, %arg0 : i32 loc(#loc6) 
# | label:146'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            135:  llvm.return %0 : i32 loc(#loc7) 
# | label:146'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            136:  } loc(#loc5) 
# | label:146'0     ~~~~~~~~~~~~~~
# |            137: } loc(#loc) 
# | label:146'0     ~~~~~~~~~~~~
# |            138: #di_file = #llvm.di_file<"<unknown>" in ""> 
# | label:146'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the Mlir-commits mailing list