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] Add the concept of simple lowering and use it for unary fp2fp operations #806

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

Lancern
Copy link
Member

@Lancern Lancern commented Aug 24, 2024

This PR is the continuation and refinement of PR #434 which is originally authored by @philnik777 . Does not update it in-place since I don't have commit access to Nikolas' repo.

This PR basically just rebases #434 onto the latest main. I also updated some naming used in the original PR to keep naming styles consistent.

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.

LGTM with some minor nits

@@ -38,8 +38,13 @@ include "mlir/IR/CommonAttrConstraints.td"
// CIR Ops
//===----------------------------------------------------------------------===//

class LoweringInfo {
Copy link
Member

Choose a reason for hiding this comment

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

Add a comment here explaining that this is used to communicate to tablegen some direct lowering approach and perhaps an example of how it can be used.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated.

@@ -38,8 +38,13 @@ include "mlir/IR/CommonAttrConstraints.td"
// CIR Ops
//===----------------------------------------------------------------------===//

class LoweringInfo {
bit simpleLowering = 0;
string llvmOpName;
Copy link
Member

Choose a reason for hiding this comment

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

How about we just have a single string simpleLoweringLLVMOpName = "" variable, and if it's defined to anything other than empty it implies simple lowering?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I'm thinking about exactly the same thing... Updated.

@bcardosolopes bcardosolopes changed the title [CIR][Lowering] Add the concept of simple lowering and useit to implement unary fp2fp operations [CIR][Lowering] Add the concept of simple lowering and use it for unary fp2fp operations Aug 26, 2024
@bcardosolopes bcardosolopes merged commit d3af20c into llvm:main Aug 27, 2024
6 checks passed
@Lancern Lancern deleted the simple-lowering branch August 28, 2024 01:36
Hugobros3 pushed a commit to shady-gang/clangir that referenced this pull request Oct 2, 2024
…ry fp2fp operations (llvm#806)

This PR is the continuation and refinement of PR llvm#434 which is
originally authored by @philnik777 . Does not update it in-place since I
don't have commit access to Nikolas' repo.

This PR basically just rebases llvm#434 onto the latest `main`. I also
updated some naming used in the original PR to keep naming styles
consistent.

Co-authored-by: Nikolas Klauser <nikolasklauser@berlin.de>
smeenai pushed a commit to smeenai/clangir that referenced this pull request Oct 9, 2024
…ry fp2fp operations (llvm#806)

This PR is the continuation and refinement of PR llvm#434 which is
originally authored by @philnik777 . Does not update it in-place since I
don't have commit access to Nikolas' repo.

This PR basically just rebases llvm#434 onto the latest `main`. I also
updated some naming used in the original PR to keep naming styles
consistent.

Co-authored-by: Nikolas Klauser <nikolasklauser@berlin.de>
smeenai pushed a commit to smeenai/clangir that referenced this pull request Oct 9, 2024
…ry fp2fp operations (llvm#806)

This PR is the continuation and refinement of PR llvm#434 which is
originally authored by @philnik777 . Does not update it in-place since I
don't have commit access to Nikolas' repo.

This PR basically just rebases llvm#434 onto the latest `main`. I also
updated some naming used in the original PR to keep naming styles
consistent.

Co-authored-by: Nikolas Klauser <nikolasklauser@berlin.de>
keryell pushed a commit to keryell/clangir that referenced this pull request Oct 19, 2024
…ry fp2fp operations (llvm#806)

This PR is the continuation and refinement of PR llvm#434 which is
originally authored by @philnik777 . Does not update it in-place since I
don't have commit access to Nikolas' repo.

This PR basically just rebases llvm#434 onto the latest `main`. I also
updated some naming used in the original PR to keep naming styles
consistent.

Co-authored-by: Nikolas Klauser <nikolasklauser@berlin.de>
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.

3 participants