Skip to content

Fix(mlir): lower c64 and c128 complex numbers (rebased; supersedes #1568) - #1684

Merged
godofecht merged 1 commit into
mainfrom
fix/mlir-complex-rebase-14186360160311384970
Nov 7, 2026
Merged

godofecht merged 1 commit into
mainfrom
fix/mlir-complex-rebase-14186360160311384970

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Supersedes #1568

This re-applies #1568 onto tip b1b3103 after #1682:

  • Lowers c64 and c128 in the MLIR emitter as !llvm.struct<(f32,f32)> / !llvm.struct<(f64,f64)> with constructors, arithmetic, creal/cimag/cabs/conj/cexp, casts, and print.
  • Carefully merged with fix(mlir): lower vector literals with vector.from_elements (rebased; supersedes #1674) #1682 vector literal lowering in compiler/src/mlirgen.flow so both remain intact.
  • Adds regression fixture compiler/fixtures/mlir/complex.flow, .mlir, .out.
  • Updates corpus.d digests for unlocked complex programs.
  • Regenerates bootstrap compiler/bootstrap/flowc_stage_a and compiler/bootstrap/flowc_stage_a.c.
  • Parity tests pass (35/35 fixtures, 2734/2734 corpus programs).

PR created automatically by Jules for task 14186360160311384970 started by @godofecht

Re-applies #1568 onto tip b1b3103 after #1682.
Supersedes #1568.

Co-authored-by: godofecht <[email protected]>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@godofecht
godofecht added this pull request to the merge queue Nov 7, 2026
Merged via the queue into main with commit 337599f Nov 7, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant