[Mlir-commits] [mlir] [mlir][python] Add bindings for mlirDenseElementsAttrGet (PR #91389)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed May 8 09:52:41 PDT 2024


pranavm-nvidia wrote:

> The build failure seems legit:
> 
> ```
> /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-qrksl-1/llvm-project/github-pull-requests/mlir/lib/Bindings/Python/IRAttributes.cpp:686:34: error: non-constant-expression cannot be narrowed from type 'size_t' (aka 'unsigned long') to 'long' in initializer list [-Wc++11-narrowing]
>       SmallVector<int64_t> shape{py::len(attributes)};
>                                  ^~~~~~~~~~~~~~~~~~~
> ```

Strangely, I did not see it locally. I guess I missed whichever CMake variable enables `-Werror`. I've pushed a fix for that now. 

Not sure if the error in the Windows build is caused by my change:
```
fatal error C1060: compiler is out of heap space
```

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


More information about the Mlir-commits mailing list