@@ -120,12 +120,13 @@ struct AddExceptionHandlingTransform : public OpRewritePattern<LLVM::CallOp> {
120120 * The reason behind this separation between the previous pattern and this one,
121121 * is that this pattern can potentially be reused as long as this single annotation is present.
122122 */
123- LogicalResult AddExceptionHandlingTransform::matchAndRewrite (LLVM::CallOp callOp, PatternRewriter &rewriter) const
123+ LogicalResult AddExceptionHandlingTransform::matchAndRewrite (LLVM::CallOp callOp,
124+ PatternRewriter &rewriter) const
124125{
125126 // The following is a valid match
126127 // llvm.call @callee() { catalyst.preInvoke }
127128 bool validCandidate = AsyncUtils::isScheduledForTransformation (callOp);
128- if (!validCandidate){
129+ if (!validCandidate) {
129130 return failure ();
130131 }
131132
@@ -274,8 +275,9 @@ struct RemoveAbortAndPutsInsertCallTransform : public OpRewritePattern<LLVM::Cal
274275// %results = call @async_execute_fn()
275276//
276277// These functions return async values or tokens.
277- LogicalResult RemoveAbortAndPutsInsertCallTransform::matchAndRewrite (LLVM::CallOp callOp,
278- PatternRewriter &rewriter) const
278+ LogicalResult
279+ RemoveAbortAndPutsInsertCallTransform::matchAndRewrite (LLVM::CallOp callOp,
280+ PatternRewriter &rewriter) const
279281{
280282 auto maybeCallee = AsyncUtils::getCalleeSafe (callOp);
281283 if (!maybeCallee) {
@@ -289,7 +291,6 @@ LogicalResult RemoveAbortAndPutsInsertCallTransform::matchAndRewrite(LLVM::CallO
289291 return failure ();
290292 }
291293
292-
293294 // Here, we are declaring an external function which is available in the Catalyst runtime.
294295 // llvm.func @__catalyst__host__rt__unrecoverable_error()
295296 auto moduleOp = callOp->getParentOfType <ModuleOp>();
@@ -446,11 +447,12 @@ struct LivenessAnalysisDropRef : public OpRewritePattern<LLVM::CallOp> {
446447 LogicalResult matchAndRewrite (LLVM::CallOp op, PatternRewriter &rewriter) const override ;
447448};
448449
449- LogicalResult LivenessAnalysisDropRef::matchAndRewrite (LLVM::CallOp sink, PatternRewriter &rewriter) const
450+ LogicalResult LivenessAnalysisDropRef::matchAndRewrite (LLVM::CallOp sink,
451+ PatternRewriter &rewriter) const
450452{
451453 // We match on function calls that have the sink attribute.
452454 // llvm.call @__catalyst__host__rt__unrecoverable_error() { catalyst.sink }
453- if (!AsyncUtils::isSink (sink)){
455+ if (!AsyncUtils::isSink (sink)) {
454456 return failure ();
455457 }
456458
0 commit comments