[Mlir-commits] [mlir] [MLIR] Enable import of non self referential alias scopes (PR #121987)
William Moses
llvmlistbot at llvm.org
Tue Jan 7 15:14:09 PST 2025
================
@@ -427,6 +427,13 @@ ModuleImport::processAliasScopeMetadata(const llvm::MDNode *node) {
return node->getNumOperands() != 0 &&
node == dyn_cast<llvm::MDNode>(node->getOperand(0));
};
+ auto verifySelfRefOrString = [](const llvm::MDNode *node) {
+ if (node->getNumOperands() != 0 &&
+ node == dyn_cast<llvm::MDNode>(node->getOperand(0)))
+ return true;
+ return node->getNumOperands() != 0 &&
+ isa<llvm::MDNode>(node->getOperand(0));
+ };
----------------
wsmoses wrote:
yeah sorry I failed to push the last commit [was on a plane and the wifi was ... not good ... ]
https://github.com/llvm/llvm-project/pull/121987
More information about the Mlir-commits
mailing list