Lines Matching defs:handler

78   if (auto *handler = getInterfaceFor(call))
79 return handler->isLegalToInline(call, callable, wouldBeCloned);
86 if (auto *handler = getInterfaceFor(dest->getParentOp()))
87 return handler->isLegalToInline(dest, src, wouldBeCloned, valueMapping);
94 if (auto *handler = getInterfaceFor(op))
95 return handler->isLegalToInline(op, dest, wouldBeCloned, valueMapping);
100 auto *handler = getInterfaceFor(op);
101 return handler ? handler->shouldAnalyzeRecursively(op) : true;
107 auto *handler = getInterfaceFor(op);
108 assert(handler && "expected valid dialect handler");
109 handler->handleTerminator(op, newDest);
116 auto *handler = getInterfaceFor(op);
117 assert(handler && "expected valid dialect handler");
118 handler->handleTerminator(op, valuesToRepl);
128 auto *handler = getInterfaceFor(inlinedBlocks.begin()->getParentOp());
129 assert(handler && "expected valid dialect handler");
130 return handler->allowSingleBlockOptimization(inlinedBlocks);
136 auto *handler = getInterfaceFor(callable);
137 assert(handler && "expected valid dialect handler");
138 return handler->handleArgument(builder, call, callable, argument,
145 auto *handler = getInterfaceFor(callable);
146 assert(handler && "expected valid dialect handler");
147 return handler->handleResult(builder, call, callable, result, resultAttrs);
152 auto *handler = getInterfaceFor(call);
153 assert(handler && "expected valid dialect handler");
154 handler->processInlinedCallBlocks(call, inlinedBlocks);
202 // Run the argument attribute handler for the given argument and attribute.
210 // Update the mapping to point the new argument returned by the handler.
227 // Run the result attribute handler for the given result and attribute.
230 // Store the original result users before running the handler.
240 // Replace the result uses except for the ones introduce by the handler.
272 // Run the argument attribute handler before inlining the callable region.
313 // Run the result attribute handler on the terminator operands.
337 // Run the result attribute handler on the post insertion block arguments.