Lines Matching defs:shouldBoxResult
67 bool shouldBoxResult) {
71 if (shouldBoxResult)
84 bool shouldBoxResult) {
86 auto argTy = getResultArgumentType(resultType, shouldBoxResult);
107 static bool mustEmboxResult(mlir::Type resultType, bool shouldBoxResult) {
109 shouldBoxResult;
117 CallConversion(mlir::MLIRContext *context, bool shouldBoxResult)
118 : OpRewritePattern<Op>(context, 1), shouldBoxResult{shouldBoxResult} {}
136 auto argType = getResultArgumentType(result.getType(), shouldBoxResult);
139 if (mustEmboxResult(result.getType(), shouldBoxResult))
212 bool shouldBoxResult;
325 AddrOfOpConversion(mlir::MLIRContext *context, bool shouldBoxResult)
326 : OpRewritePattern(context), shouldBoxResult{shouldBoxResult} {}
336 newFuncTy = getNewFunctionType(oldFuncTy, shouldBoxResult);
348 bool shouldBoxResult;
358 void runOnFunctionLikeOperation(OpTy func, bool shouldBoxResult,
386 auto argTy = getResultArgumentType(resultType, shouldBoxResult);
390 if (mustEmboxResult(resultType, shouldBoxResult)) {
402 getNewFunctionType(funcTy, shouldBoxResult));
408 func.setType(getNewFunctionType(funcTy, shouldBoxResult));
414 void runOnSpecificOperation(mlir::func::FuncOp func, bool shouldBoxResult,
417 runOnFunctionLikeOperation(func, shouldBoxResult, patterns, target);
420 void runOnSpecificOperation(mlir::gpu::GPUFuncOp func, bool shouldBoxResult,
423 runOnFunctionLikeOperation(func, shouldBoxResult, patterns, target);
485 const bool shouldBoxResult = this->passResultAsBox.getValue();
490 runOnSpecificOperation(op, shouldBoxResult, patterns, target);
524 patterns.insert<CallConversion<fir::CallOp>>(context, shouldBoxResult);
525 patterns.insert<CallConversion<fir::DispatchOp>>(context, shouldBoxResult);
527 patterns.insert<AddrOfOpConversion>(context, shouldBoxResult);