[Mlir-commits] [mlir] [mlir][LLVM] `ControlFlowToLLVM`: Add 1:N type conversion support (PR #153937)
LLVM Continuous Integration
llvmlistbot at llvm.org
Sat Aug 16 03:54:39 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `mlir` at step 5 "compile-openmp".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/28958
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (compile-openmp) failure: build (failure)
...
^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:98:58: warning: ‘clang::PointerAuthSchema::SelectedAuthenticationMode’ is too small to hold all values of ‘enum class clang::PointerAuthenticationMode’
PointerAuthenticationMode SelectedAuthenticationMode : 2;
^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:99:39: warning: ‘clang::PointerAuthSchema::DiscriminationKind’ is too small to hold all values of ‘enum class clang::PointerAuthSchema::Discrimination’
Discrimination DiscriminationKind : 2;
^
14.948 [2041/32/5295] Building AMDGPUGenDAGISel.inc...
14.972 [2040/32/5296] Building AMDGPUGenAsmMatcher.inc...
14.992 [2039/32/5297] Building CXX object tools/mlir/lib/Conversion/ControlFlowToLLVM/CMakeFiles/obj.MLIRControlFlowToLLVM.dir/ControlFlowToLLVM.cpp.o
FAILED: tools/mlir/lib/Conversion/ControlFlowToLLVM/CMakeFiles/obj.MLIRControlFlowToLLVM.dir/ControlFlowToLLVM.cpp.o
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/mlir/lib/Conversion/ControlFlowToLLVM -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/ControlFlowToLLVM -Itools/mlir/include -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include -Iinclude -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -Wno-deprecated-copy -O3 -DNDEBUG -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++1z -MD -MT tools/mlir/lib/Conversion/ControlFlowToLLVM/CMakeFiles/obj.MLIRControlFlowToLLVM.dir/ControlFlowToLLVM.cpp.o -MF tools/mlir/lib/Conversion/ControlFlowToLLVM/CMakeFiles/obj.MLIRControlFlowToLLVM.dir/ControlFlowToLLVM.cpp.o.d -o tools/mlir/lib/Conversion/ControlFlowToLLVM/CMakeFiles/obj.MLIRControlFlowToLLVM.dir/ControlFlowToLLVM.cpp.o -c /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp: In member function ‘virtual llvm::LogicalResult {anonymous}::BranchOpLowering::matchAndRewrite(mlir::cf::BranchOp, {anonymous}::BranchOpLowering::Adaptor, mlir::ConversionPatternRewriter&) const’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp:149:53: error: call of overloaded ‘TypeRange(llvm::SmallVector<mlir::Value>&)’ is ambiguous
TypeRange(flattenedAdaptor));
^
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/Support/TypeID.h:20:0,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/DialectInterface.h:12,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/Conversion/ConvertToLLVM/ToLLVMInterface.h:12,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp:16:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/ADT/STLExtras.h:1286:3: note: candidate: llvm::detail::indexed_accessor_range_base<DerivedT, BaseT, T, PointerT, ReferenceT>::indexed_accessor_range_base(const llvm::iterator_range<llvm::detail::indexed_accessor_range_base<DerivedT, BaseT, T, PointerT, ReferenceT>::iterator>&) [with DerivedT = mlir::TypeRange; BaseT = llvm::PointerUnion<const mlir::Value*, const mlir::Type*, mlir::OpOperand*, mlir::detail::OpResultImpl*>; T = mlir::Type; PointerT = mlir::Type; ReferenceT = mlir::Type]
indexed_accessor_range_base(const iterator_range<iterator> &range)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/OperationSupport.h:23:0,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/Dialect.h:17,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/OpDefinition.h:22,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/Conversion/ConvertToLLVM/ToLLVMInterface.h:14,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp:16:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/TypeRange.h:39:21: note: inherited here
using RangeBaseT::RangeBaseT;
^~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/TypeRange.h:43:12: note: candidate: mlir::TypeRange::TypeRange(mlir::ValueRange)
explicit TypeRange(ValueRange values);
^~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp: In member function ‘virtual llvm::LogicalResult {anonymous}::CondBranchOpLowering::matchAndRewrite(mlir::cf::CondBranchOp, {anonymous}::CondBranchOpLowering::Adaptor, mlir::ConversionPatternRewriter&) const’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp:181:57: error: call of overloaded ‘TypeRange(llvm::SmallVector<mlir::Value>&)’ is ambiguous
TypeRange(flattenedAdaptorTrue));
^
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/Support/TypeID.h:20:0,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/DialectInterface.h:12,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/Conversion/ConvertToLLVM/ToLLVMInterface.h:12,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp:16:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/ADT/STLExtras.h:1286:3: note: candidate: llvm::detail::indexed_accessor_range_base<DerivedT, BaseT, T, PointerT, ReferenceT>::indexed_accessor_range_base(const llvm::iterator_range<llvm::detail::indexed_accessor_range_base<DerivedT, BaseT, T, PointerT, ReferenceT>::iterator>&) [with DerivedT = mlir::TypeRange; BaseT = llvm::PointerUnion<const mlir::Value*, const mlir::Type*, mlir::OpOperand*, mlir::detail::OpResultImpl*>; T = mlir::Type; PointerT = mlir::Type; ReferenceT = mlir::Type]
indexed_accessor_range_base(const iterator_range<iterator> &range)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/OperationSupport.h:23:0,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/Dialect.h:17,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/OpDefinition.h:22,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/Conversion/ConvertToLLVM/ToLLVMInterface.h:14,
```
</details>
https://github.com/llvm/llvm-project/pull/153937
More information about the Mlir-commits
mailing list