This is an archive of the discontinued LLVM Phabricator instance.

[mlir] gen_spirv_dialect.py: Some support for OCL ops generation
ClosedPublic

Authored by Hardcode84 on Oct 15 2021, 6:53 AM.

Details

Summary

It is not complete and disabled by default, but it can be still useful.

Diff Detail

Event Timeline

Hardcode84 created this revision.Oct 15 2021, 6:53 AM
Hardcode84 requested review of this revision.Oct 15 2021, 6:53 AM
antiagainst requested changes to this revision.Oct 18 2021, 8:22 AM

Cool, thanks for enabling automatically pulling in OpenCL intrinsics!

mlir/utils/spirv/gen_spirv_dialect.py
33

Can you turn this into a proper command line options? We use argparse for this already. Then use function parameters to pass such options to where you'd need them.

41

Can you make this as a function parameter default?

1042

Can you move this constant URLs to the beginning like the core spec ones?

This revision now requires changes to proceed.Oct 18 2021, 8:22 AM

added proper command line option, moved constants

Hardcode84 marked 2 inline comments as done.Oct 24 2021, 5:13 AM
antiagainst accepted this revision.Oct 26 2021, 1:46 PM
This revision is now accepted and ready to land.Oct 26 2021, 1:46 PM