[Mlir-commits] [llvm] [mlir] [MLIR][IR] Add ConstantLikeInterface for extensible constant creation (PR #177740)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Jan 23 23:14:47 PST 2026


github-actions[bot] wrote:

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

* 7417 tests passed
* 599 tests skipped
* 1 test failed

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

### MLIR-Unit
<details>
<summary>MLIR-Unit.IR/_/MLIRIRTests/69/75</summary>

```
Script(shard):
--
GTEST_OUTPUT=json:/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/unittests/IR/./MLIRIRTests-MLIR-Unit-367195-69-75.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=75 GTEST_SHARD_INDEX=69 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/unittests/IR/./MLIRIRTests
--

Note: This is test shard 70 of 75.
[==========] Running 2 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 1 test from ConstantLikeInterfaceTest
[ RUN      ] ConstantLikeInterfaceTest.ShapedTypeWithInterface
MLIRIRTests: /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/IR/BuiltinAttributes.cpp:978: static DenseElementsAttr mlir::DenseElementsAttr::get(ShapedType, ArrayRef<Attribute>): Assertion `intAttr.getType() == eltType && "expected integer attribute type to equal element type"' failed.
 #0 0x00000000005fd6a8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:842:13
 #1 0x00000000005fadcc llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
 #2 0x00000000005fe471 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:429:38
 #3 0x00007c72103aa330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
 #4 0x00007c7210403b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
 #5 0x00007c72103aa27e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
 #6 0x00007c721038d8ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
 #7 0x00007c721038d81b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
 #8 0x00007c72103a0517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
 #9 0x000000000067d09d cast<mlir::IntegerAttr, mlir::Attribute> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:560:3
#10 0x000000000067d09d mlir::DenseElementsAttr::get(mlir::ShapedType, llvm::ArrayRef<mlir::Attribute>) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/IR/BuiltinAttributes.cpp:976:22
#11 0x0000000000671672 mlir::Builder::getZeroAttr(mlir::Type) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/IR/Builders.cpp:353:12
#12 0x0000000000554c35 operator== /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include/mlir/IR/Attributes.h:44:56
#13 0x0000000000554c35 operator!= /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include/mlir/IR/Attributes.h:45:59
#14 0x0000000000554c35 (anonymous namespace)::ConstantLikeInterfaceTest_ShapedTypeWithInterface_Test::TestBody() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/unittests/IR/ConstantLikeInterfaceTest.cpp:397:3
#15 0x00000000006162a0 os_stack_trace_getter /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:6240:7
#16 0x00000000006162a0 testing::Test::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:2695:9
#17 0x0000000000617090 os_stack_trace_getter /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:6240:7
#18 0x0000000000617090 testing::TestInfo::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:2842:11
#19 0x0000000000617ca3 testing::TestSuite::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:3018:35
#20 0x0000000000628ec4 testing::internal::UnitTestImpl::RunAllTests() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:5922:41
#21 0x0000000000628289 testing::UnitTest::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:5485:10
#22 0x0000000000601b9a main /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/UnitTestMain/TestMain.cpp:55:3
#23 0x00007c721038f1ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
#24 0x00007c721038f28b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
#25 0x0000000000523a45 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/unittests/IR/./MLIRIRTests+0x523a45)

--
exit: -6
--
shard JSON output does not exist: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/unittests/IR/./MLIRIRTests-MLIR-Unit-367195-69-75.json
```
</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/177740


More information about the Mlir-commits mailing list