-
Notifications
You must be signed in to change notification settings - Fork 171
[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
Conversation
@@ -129,7 +129,6 @@ namespace LCompilers { | |||
"select_case", | |||
"inline_function_calls", | |||
"unused_functions", | |||
"pass_compare" |
There was a problem hiding this comment.
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); | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
270c5d8
to
0fa8423
Compare
ea6653f
to
d69020c
Compare
The tests pass locally for me as well as on ubuntu CI. Not sure why does that segfault on macos |
d69020c
to
2ed28bc
Compare
@czgdp1807 @certik This is ready for review. |
2ed28bc
to
892b085
Compare
Fixes #1245
Completes #1342 (comment)