[Mlir-commits] [mlir] [MLIR][Python] Remove partial LLVM APIs in python bindings (5/n) (PR #180644)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Feb 10 06:30:22 PST 2026
================
@@ -910,7 +952,7 @@ MlirAttribute PyDenseElementsAttribute::getAttributeFromBuffer(
MlirAttribute PyDenseElementsAttribute::getBitpackedAttributeFromBooleanBuffer(
Py_buffer &view, std::optional<std::vector<int64_t>> explicitShape,
MlirContext &context) {
- if (llvm::endianness::native != llvm::endianness::little) {
----------------
RattataKing wrote:
See [line 71-75](https://llvm.org/doxygen/bit_8h_source.html#l00071), `llvm::endianness::native` value will be decided at compile time. There are constants like `std::endianness::native` too but only for c++20+, I use this runtime checking implementation
https://github.com/llvm/llvm-project/pull/180644
More information about the Mlir-commits
mailing list