Implement LLVM code generation for do loops
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.2k
- Forks
- 271
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 173
Description
Original issue: https://gitlab.com/lfortran/lfortran/-/issues/187
They can be represented in ASR already. To write the LLVM IR lowering, we first transform them into While loops using https://gitlab.com/lfortran/lfortran/-/issues/186, and then just call our current LLVM lowering.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the ASR representation for do loops and the transformation described in issue 186, then inspect the existing LLVM lowering for While loops. Implement the do-loop path through that transformation and verify that the resulting LLVM IR lowering handles the construct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, fortran
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100