[Mlir-commits] [mlir] [MLIR][Python] Remove partial LLVM APIs in python bindings (2/n) (PR #178529)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Jan 29 08:58:03 PST 2026
================
@@ -4098,7 +4100,8 @@ void populateIRCore(nb::module_ &m) {
.def(
"__hash__",
[](PyBlock &self) {
- return static_cast<size_t>(llvm::hash_value(self.get().ptr));
+ return static_cast<size_t>(
+ std::hash<decltype(self.get().ptr)>{}(self.get().ptr));
----------------
RattataKing wrote:
thanks!
https://github.com/llvm/llvm-project/pull/178529
More information about the Mlir-commits
mailing list