Skip to content

Supporting C-interop with array indices #622

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 5 commits into from
Jun 18, 2022
Merged

Conversation

czgdp1807
Copy link
Collaborator

@czgdp1807 czgdp1807 commented Jun 17, 2022

@czgdp1807 czgdp1807 added c Label for C language related changes llvm LLVM related changes labels Jun 17, 2022
@czgdp1807 czgdp1807 requested a review from certik June 17, 2022 14:43
@czgdp1807
Copy link
Collaborator Author

@certik This is ready as well.

Copy link
Contributor

@certik certik left a comment

Choose a reason for hiding this comment

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

I think this is fine.

@certik certik enabled auto-merge June 18, 2022 16:11
def get_array(size: i32) -> CPtr:
pass

@ccallable
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is not called from C, it doesn't have to be @ccallable I think.

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. I think I just took the example as it is from #609.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since its merged do you want ccallable to be removed in the next PR.

@certik certik merged commit 593602a into lcompilers:main Jun 18, 2022
@czgdp1807 czgdp1807 deleted the arr_idx branch June 18, 2022 18:26
@certik
Copy link
Contributor

certik commented Jun 18, 2022

Sure, if things work. Those are small changes, right now it's important for me to get these features in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c Label for C language related changes llvm LLVM related changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants