Home
last modified time | relevance | path

Searched refs:newFuncOp (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/mlir/lib/Conversion/GPUToSPIRV/
DConvertGPUToSPIRV.cpp192 auto newFuncOp = rewriter.create<spirv::FuncOp>( in lowerAsEntryFunction() local
200 newFuncOp.setAttr(namedAttr.first, namedAttr.second); in lowerAsEntryFunction()
203 rewriter.inlineRegionBefore(funcOp.getBody(), newFuncOp.getBody(), in lowerAsEntryFunction()
204 newFuncOp.end()); in lowerAsEntryFunction()
205 if (failed(rewriter.convertRegionTypes(&newFuncOp.getBody(), typeConverter, in lowerAsEntryFunction()
210 spirv::setABIAttrs(newFuncOp, entryPointInfo, argABIInfo); in lowerAsEntryFunction()
211 return newFuncOp; in lowerAsEntryFunction()
267 spirv::FuncOp newFuncOp = lowerAsEntryFunction( in matchAndRewrite() local
269 if (!newFuncOp) in matchAndRewrite()
271 newFuncOp.removeAttr(Identifier::get(gpu::GPUDialect::getKernelFuncAttrName(), in matchAndRewrite()
/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVLowering.cpp490 auto newFuncOp = rewriter.create<spirv::FuncOp>( in matchAndRewrite() local
499 newFuncOp.setAttr(namedAttr.first, namedAttr.second); in matchAndRewrite()
502 rewriter.inlineRegionBefore(funcOp.getBody(), newFuncOp.getBody(), in matchAndRewrite()
503 newFuncOp.end()); in matchAndRewrite()
504 if (failed(rewriter.convertRegionTypes(&newFuncOp.getBody(), typeConverter, in matchAndRewrite()
/external/llvm-project/mlir/lib/Conversion/StandardToLLVM/
DStandardToLLVM.cpp1232 FuncOp funcOp, LLVM::LLVMFuncOp newFuncOp) { in wrapForExternalCallers() argument
1260 auto call = rewriter.create<LLVM::CallOp>(loc, newFuncOp, args); in wrapForExternalCallers()
1273 FuncOp funcOp, LLVM::LLVMFuncOp newFuncOp) { in wrapExternalFunction() argument
1291 builder.setInsertionPointToStart(newFuncOp.addEntryBlock()); in wrapExternalFunction()
1297 ValueRange wrapperArgsRange(newFuncOp.getArguments()); in wrapExternalFunction()
1381 auto newFuncOp = rewriter.create<LLVM::LLVMFuncOp>( in convertFuncOpToLLVMFuncOp() local
1384 rewriter.inlineRegionBefore(funcOp.getBody(), newFuncOp.getBody(), in convertFuncOpToLLVMFuncOp()
1385 newFuncOp.end()); in convertFuncOpToLLVMFuncOp()
1386 if (failed(rewriter.convertRegionTypes(&newFuncOp.getBody(), *typeConverter, in convertFuncOpToLLVMFuncOp()
1390 return newFuncOp; in convertFuncOpToLLVMFuncOp()
[all …]
/external/llvm-project/mlir/lib/Conversion/SPIRVToLLVM/
DConvertSPIRVToLLVM.cpp1298 auto newFuncOp = rewriter.create<LLVM::LLVMFuncOp>(loc, name, llvmType); in matchAndRewrite() local
1305 newFuncOp.setAttr("passthrough", ArrayAttr::get({llvmAttr}, context)); \ in matchAndRewrite()
1325 rewriter.inlineRegionBefore(funcOp.getBody(), newFuncOp.getBody(), in matchAndRewrite()
1326 newFuncOp.end()); in matchAndRewrite()
1327 if (failed(rewriter.convertRegionTypes(&newFuncOp.getBody(), typeConverter, in matchAndRewrite()