[Mlir-commits] [llvm] [mlir] [mlir][IR] Add SymbolUserTypeInterface (PR #198435)
Jacques Pienaar
llvmlistbot at llvm.org
Thu May 28 23:49:37 PDT 2026
================
@@ -332,6 +332,20 @@ uint64_t TestTypeWithLayoutType::extractKind(DataLayoutEntryListRef params,
return 1;
}
+//===----------------------------------------------------------------------===//
+// TestSymbolUserType
+//===----------------------------------------------------------------------===//
+
+LogicalResult
+TestSymbolUserType::verifySymbolUses(Operation *op,
+ SymbolTableCollection &symbolTable) const {
+ if (!symbolTable.lookupNearestSymbolFrom<SymbolOpInterface>(op, getSymbol()))
+ return op->emitOpError()
+ << "TestSymbolUserType::verifySymbolUses: '" << getSymbol()
----------------
jpienaar wrote:
s/"TestSymbolUserType::verifySymbolUses: '"// to be consistent with rest here (and LLVM/MLIR error emission conventions)
https://github.com/llvm/llvm-project/pull/198435
More information about the Mlir-commits
mailing list