Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CIR][Lowering] Support lowering on cir::TernaryOp. #83

Closed
wants to merge 1 commit into from

Conversation

redbopo
Copy link
Contributor

@redbopo redbopo commented May 25, 2023

  • Support cir::TernaryOp lowering -cir-to-llvm.
  • Mostly mirror the scf.if to cf and cir.if lowerings.
  • also support cir.br lowering with type converter, like the cir.br ^bb3(%9 : !s32i) , !s32i is !cir.int<s, 32>. and this type not supported in LLVM dialect level.
  • current generate builtin.unrealized_conversion_cast Ops in tests, will cause the next rountine mlir-translate failed. Need to consider whether to include ReconcileUnrealizedCasts pass or find some other methods.

  - Support cir::TernaryOp lowering -cir-to-llvm.
  - Mostly mirror the scf.if to cf and cir.if lowerings.
  - also support cir.br lowering with type converter, like
    the `cir.br ^bb3(%9 : !s32i)` , !s32i is !cir.int<s, 32>.
    and this type not supported in LLVM dialect level.
  - current generate `builtin.unrealized_conversion_cast` Ops in
    tests, will cause the next rountine mlir-translate failed.
    Need to consider whether to include ReconcileUnrealizedCasts pass
    or find some other methods.
Copy link
Collaborator

@sitio-couto sitio-couto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@redbopo reviewed.

@sitio-couto
Copy link
Collaborator

@redbopo LGTM.

Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay, this looks good pending updating #98 to include the fix you mentioned.

@sitio-couto
Copy link
Collaborator

sitio-couto commented Jun 28, 2023

Replaced with #137

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.

None yet

3 participants