This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][SPIRVToLLVM] Conversion of SPIR-V branch ops
ClosedPublic

Authored by georgemitenkov on Jul 14 2020, 9:05 AM.

Details

Summary

This patch introduces conversion for spv.Branch and spv.BranchConditional ops. Branch weigths for spv.BranchConditional are not supported at the moment, and conversion in this case fails.

This revision relies on https://reviews.llvm.org/D83786.

Diff Detail

Event Timeline

georgemitenkov created this revision.Jul 14 2020, 9:05 AM
georgemitenkov edited the summary of this revision. (Show Details)Jul 14 2020, 10:08 AM
antiagainst accepted this revision.Jul 20 2020, 6:10 AM
antiagainst added inline comments.
mlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp
434

You can just write this as if (auto weights = ...) return failure.

This revision is now accepted and ready to land.Jul 20 2020, 6:10 AM
georgemitenkov marked an inline comment as done.

Addressed comments on style.

This revision was automatically updated to reflect the committed changes.