This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Support convert complex types
ClosedPublic

Authored by antiagainst on Mar 29 2023, 4:42 PM.

Details

Summary

Complex types are converted to a two-element vector type to contain
the real and imaginary numbers.

Diff Detail

Event Timeline

antiagainst created this revision.Mar 29 2023, 4:42 PM
antiagainst requested review of this revision.Mar 29 2023, 4:42 PM
kuhar added a comment.Mar 30 2023, 8:00 AM

Do we have to also support vector of complex, e.g. ,vector<2xcomplex<f32>>. This doesn't seem supported at the moment.

Do we have to also support vector of complex, e.g. ,vector<2xcomplex<f32>>. This doesn't seem supported at the moment.

vector type does not allow to have complex element types (at least for now).

kuhar accepted this revision.Mar 30 2023, 8:43 AM
This revision is now accepted and ready to land.Mar 30 2023, 8:43 AM
This revision was landed with ongoing or failed builds.Mar 30 2023, 8:49 AM
This revision was automatically updated to reflect the committed changes.