Skip to content

[LLVM]: Implement Tuple/List Compare #1359

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

Merged
merged 6 commits into from
Dec 21, 2022
Merged

Conversation

Smit-create
Copy link
Collaborator

@Smit-create Smit-create commented Dec 13, 2022

Fixes #1245
Completes #1342 (comment)

@@ -129,7 +129,6 @@ namespace LCompilers {
"select_case",
"inline_function_calls",
"unused_functions",
"pass_compare"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably this means we need backend specific list of passes. Because C/C++/Julia will need this pass but LLVM won't.

ASRUtils::expr_type(x.m_left));
if (x.m_op == ASR::cmpopType::NotEq) {
tmp = builder->CreateNot(tmp);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems good to me. Is this working?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, TupleCompare works fine. I will need to add the ListCompare to make the CI pass.

@Smit-create Smit-create force-pushed the i-1245-2 branch 2 times, most recently from 270c5d8 to 0fa8423 Compare December 14, 2022 10:30
@Smit-create Smit-create marked this pull request as ready for review December 15, 2022 15:59
@Smit-create
Copy link
Collaborator Author

The tests pass locally for me as well as on ubuntu CI. Not sure why does that segfault on macos

@Smit-create
Copy link
Collaborator Author

@czgdp1807 @certik This is ready for review.

@Smit-create Smit-create added ready for review PRs that are ready for review llvm LLVM related changes labels Dec 17, 2022
@certik certik merged commit 269a92d into lcompilers:main Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
llvm LLVM related changes ready for review PRs that are ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ASR: [BUG] Tuple/List Compare
3 participants