This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vulkan-runner] Add support for integer types.
ClosedPublic

Authored by denis13 on Apr 21 2020, 6:07 AM.

Details

Summary

Add support for memrefs with element type as integer type
and simple test.

Diff Detail

Event Timeline

denis13 created this revision.Apr 21 2020, 6:07 AM
Herald added a project: Restricted Project. · View Herald Transcript
antiagainst requested changes to this revision.Apr 21 2020, 12:41 PM

Thanks Denis!

mlir/lib/Conversion/GPUToVulkan/ConvertGPULaunchFuncToVulkanLaunchFunc.cpp
61

elementType.isIntOrFloat ?

mlir/lib/Conversion/GPUToVulkan/ConvertLaunchFuncToVulkanCalls.cpp
103–104

Nit: element-type?

359

So we have quite a few code blocks that are very similar here. Can we deduplicate a bit either by templates or macros?

This revision now requires changes to proceed.Apr 21 2020, 12:41 PM
denis13 updated this revision to Diff 259218.Apr 22 2020, 3:08 AM

Addresses review comments.

@antiagainst thanks for review, updated!

antiagainst accepted this revision.Apr 22 2020, 6:01 AM

Thanks Denis!

This revision is now accepted and ready to land.Apr 22 2020, 6:01 AM
This revision was automatically updated to reflect the committed changes.