Lines Matching refs:shouldBoxResult
28 bool shouldBoxResult) { in getResultArgumentType() argument
32 if (shouldBoxResult) in getResultArgumentType()
45 bool shouldBoxResult) { in getNewFunctionType() argument
47 auto argTy = getResultArgumentType(resultType, shouldBoxResult); in getNewFunctionType()
54 static bool mustEmboxResult(mlir::Type resultType, bool shouldBoxResult) { in mustEmboxResult() argument
56 shouldBoxResult; in mustEmboxResult()
62 CallOpConversion(mlir::MLIRContext *context, bool shouldBoxResult) in CallOpConversion() argument
63 : OpRewritePattern(context), shouldBoxResult{shouldBoxResult} {} in CallOpConversion()
81 auto argType = getResultArgumentType(result.getType(), shouldBoxResult); in matchAndRewrite()
84 if (mustEmboxResult(result.getType(), shouldBoxResult)) in matchAndRewrite()
119 bool shouldBoxResult; member in fir::__anon0bfb91900111::CallOpConversion
173 AddrOfOpConversion(mlir::MLIRContext *context, bool shouldBoxResult) in AddrOfOpConversion() argument
174 : OpRewritePattern(context), shouldBoxResult{shouldBoxResult} {} in AddrOfOpConversion()
179 auto newFuncTy = getNewFunctionType(oldFuncTy, shouldBoxResult); in matchAndRewrite()
191 bool shouldBoxResult; member in fir::__anon0bfb91900111::AddrOfOpConversion
202 const bool shouldBoxResult = passResultAsBox.getValue(); in runOnOperation() local
207 func.setType(getNewFunctionType(funcTy, shouldBoxResult)); in runOnOperation()
213 auto argTy = getResultArgumentType(resultType, shouldBoxResult); in runOnOperation()
215 if (mustEmboxResult(resultType, shouldBoxResult)) { in runOnOperation()
252 patterns.insert<CallOpConversion>(context, shouldBoxResult); in runOnOperation()
254 patterns.insert<AddrOfOpConversion>(context, shouldBoxResult); in runOnOperation()