clangir icon indicating copy to clipboard operation
clangir copied to clipboard

[CIR] Add support for complex cast operations

Open Lancern opened this issue 1 year ago • 1 comments

This PR adds support for complex cast operations. It adds the following new cast kind variants to the cir.cast operation:

  • float_to_complex,
  • int_to_complex,
  • float_complex_to_real,
  • int_complex_to_real,
  • float_complex_to_bool,
  • int_complex_to_bool,
  • float_complex,
  • float_complex_to_int_complex,
  • int_complex, and
  • int_complex_to_float_complex.

CIRGen and LLVM IR support for these new cast variants are also included.

Lancern avatar Jul 27 '24 12:07 Lancern

Rebased onto the latest main.

Lancern avatar Aug 02 '24 12:08 Lancern

Rebased onto the latest main.

Lancern avatar Aug 08 '24 13:08 Lancern