forked from OSchip/llvm-project
[mlir][vulkan-runner] Fix createLowerToLLVMPass interface
createLowerToLLVMPass() now requires a struct for passing in arguments
after 7023f4b4cb
.
This commit is contained in:
parent
b281138a1b
commit
2d3eb493d4
|
@ -40,9 +40,11 @@ static LogicalResult runMLIRPasses(ModuleOp module) {
|
|||
modulePM.addPass(spirv::createLowerABIAttributesPass());
|
||||
modulePM.addPass(spirv::createUpdateVersionCapabilityExtensionPass());
|
||||
passManager.addPass(createConvertGpuLaunchFuncToVulkanLaunchFuncPass());
|
||||
passManager.addPass(createLowerToLLVMPass(/*useAlloca=*/false,
|
||||
/*useBarePtrCallConv=*/false,
|
||||
/*emitCWrappers=*/true));
|
||||
LowerToLLVMOptions llvmOptions = {
|
||||
/*useBarePtrCallConv =*/false,
|
||||
/*emitCWrappers = */ true,
|
||||
/*indexBitwidth =*/kDeriveIndexBitwidthFromDataLayout};
|
||||
passManager.addPass(createLowerToLLVMPass(llvmOptions));
|
||||
passManager.addPass(createConvertVulkanLaunchFuncToVulkanCallsPass());
|
||||
return passManager.run(module);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue