lfortran / lfortran/lfortran

Implement LLVM code generation for do loops

Open
#261 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.