-
Notifications
You must be signed in to change notification settings - Fork 166
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
Sync libasr
with LFortran
#2628
Conversation
for( size_t i = 0; i < x.n_args; i++ ) { | ||
if (is_argument_of_type_CPtr(x.m_args[i])) { |
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.
TBR: #2453
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.
+1
|
||
|
||
const std::unordered_set<std::string> reserved_keywords_c = { | ||
"_Alignas", "_Alignof", "_Atomic", "_Bool", "_Complex", "_Generic", "_Imaginary", "_Noreturn", "_Static_assert", "_Thread_local", "auto", "break", "case", "char", "_Bool", "const", "continue", "default", "do", "double", "else", "enum", "extern", "float", "for", "goto", "if", "int", "long", "register", "return", "short", "signed", "sizeof", "static", "struct", "switch", "typedef", "union", "unsigned", "void", "volatile", "while" |
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.
TBR: #2546
@@ -49,263 +49,20 @@ class ReplaceSymbolicVisitor : public PassUtils::PassVisitor<ReplaceSymbolicVisi | |||
std::set<ASR::symbol_t*> symbolic_vars_to_omit; | |||
SymEngine_Stack symengine_stack; | |||
|
|||
/********************************** Utils *********************************/ | |||
#define BASIC_CONST(SYM, name) \ |
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.
Some or maybe all the changes has to be reverted in this file : #2433
46b6f2c
to
10ee462
Compare
I am able to compile 40% of integration_tests. Will continue debugging tomorrow and complete this PR. |
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.
Left comments above, otherwise this looks good. Thanks for doing this, it was tricky to even review.
d3fb1dd
to
b56cf13
Compare
I was going through the If everything is done in this pr and that's the only thing blocking us, maybe comment out llvm_sym from symbolics_13 for now and then debug it separately. |
@anutosh491 can you please help debugging the symbolic issue? That way @czgdp1807 can focus on syncing with LFortran. |
|
||
|
||
Note: Please report unclear or confusing messages as bugs at | ||
https://github.com/lcompilers/lpython/issues. |
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.
All error reference tests now have this text, it used to be disabled via --no-error-banner
.
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.
Separate issue. Same thing is there in LFortran.
Other than that, I think this is good. I verified changes to:
|
No description provided.