This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][SPIRVToLLVM] Implemented cast ops conversion, added 4 logical ops and support of UModOp
ClosedPublic

Authored by georgemitenkov on Jun 14 2020, 1:30 PM.

Details

Summary

Added support of simple logical ops: LogicalAnd, LogicalOr, LogicalEqual and LogicalNotEqual. Added a missing conversion for UMod op.
Also, implemented SPIR-V cast ops conversion. There are 4 simple case where there is a clear equivalent in LLVM (e.g. ConvertFToS is fptosi). For FConvert, SConvert and UConvert we destinguish between truncation and extension based on the bit width of the operand.

Diff Detail

Event Timeline

georgemitenkov created this revision.Jun 14 2020, 1:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2020, 1:30 PM
georgemitenkov edited the summary of this revision. (Show Details)Jun 14 2020, 1:32 PM
antiagainst accepted this revision.Jun 15 2020, 2:45 PM
This revision is now accepted and ready to land.Jun 15 2020, 2:45 PM
This revision was automatically updated to reflect the committed changes.