This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][SPIRVToLLVM] SPIR-V function call conversion pattern
ClosedPublic

Authored by georgemitenkov on Jul 2 2020, 3:33 AM.

Details

Summary

Added conversion pattern for SPIR-V FunctionCallOp. Based on specification, it returns no results or a single result, so can be mapped directly to LLVM dialect's llvm.call.

Diff Detail

Event Timeline

georgemitenkov created this revision.Jul 2 2020, 3:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 2 2020, 3:33 AM
ftynse accepted this revision.Jul 2 2020, 3:44 AM
This revision is now accepted and ready to land.Jul 2 2020, 3:44 AM
antiagainst accepted this revision.Jul 2 2020, 9:33 AM
This revision was automatically updated to reflect the committed changes.
rriddle added inline comments.Jul 6 2020, 6:45 PM
mlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp
266

nit: Is this-> really necessary here?

georgemitenkov marked an inline comment as done.Jul 8 2020, 1:42 AM
georgemitenkov added inline comments.
mlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp
266

I will go through the file and address the nit comments in a separate revision (including ones for spv.BitFieldInsert pattern patch)

georgemitenkov marked an inline comment as done.Jul 14 2020, 9:17 AM