@@ -59,29 +59,17 @@ def CallOpInterface : OpInterface<"CallOpInterface"> {
5959 Returns the operands within this call that are used as arguments to the
6060 callee as a mutable range.
6161 }],
62- "::mlir::MutableOperandRange", "getArgOperandsMutable"
63- >,
64- InterfaceMethod<[{
65- Resolve the callable operation for given callee to a
66- CallableOpInterface, or nullptr if a valid callable was not resolved.
67- `symbolTable` parameter allow for using a cached symbol table for symbol
68- lookups instead of performing an O(N) scan.
69- }],
70- "::mlir::Operation *", "resolveCallableInTable", (ins "::mlir::SymbolTableCollection *":$symbolTable),
71- /*methodBody=*/[{}], /*defaultImplementation=*/[{
72- return ::mlir::call_interface_impl::resolveCallable($_op, symbolTable);
73- }]
74- >,
75- InterfaceMethod<[{
76- Resolve the callable operation for given callee to a
77- CallableOpInterface, or nullptr if a valid callable was not resolved.
78- }],
79- "::mlir::Operation *", "resolveCallable", (ins),
80- /*methodBody=*/[{}], /*defaultImplementation=*/[{
81- return ::mlir::call_interface_impl::resolveCallable($_op);
82- }]
83- >
62+ "::mlir::MutableOperandRange", "getArgOperandsMutable">,
8463 ];
64+
65+ let extraClassDeclaration = [{
66+ /// Resolve the callable operation for given callee to a
67+ /// CallableOpInterface, or nullptr if a valid callable was not resolved.
68+ /// `symbolTable` is an optional parameter that will allow for using a
69+ /// cached symbol table for symbol lookups instead of performing an O(N)
70+ /// scan.
71+ ::mlir::Operation *resolveCallable(::mlir::SymbolTableCollection *symbolTable = nullptr);
72+ }];
8573}
8674
8775/// Interface for callable operations.
0 commit comments