[mlir][vulkan-runner] Fix createLowerToLLVMPass interface

createLowerToLLVMPass() now requires a struct for passing in arguments
after 7023f4b4cb.
This commit is contained in:
Lei Zhang 2020-04-07 12:53:11 -04:00
parent b281138a1b
commit 2d3eb493d4
1 changed files with 5 additions and 3 deletions

View File

@ -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);
}