Skip to content
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

dfa: include site id in Call and Instance #2753

Merged
merged 4 commits into from
Mar 19, 2024
Merged

Conversation

fridis
Copy link
Member

@fridis fridis commented Mar 18, 2024

This replaces the cumbersome codeblockId and codeblockIndesx pair, but so far there is no semantic change.

This should be reviewed against #2752, this is part three of my attempt to split up #2743 into several PRs.

The code did not set the `msg` field in the error to any value resulting in DFA
with higher accuracy (which will come in the next PRs) to fail to find any value
here.
…and index

A `site` is an int the identifies an expression in a code block, so it is a more
conveninient way compared ot passing the pair `c`/`i` that is so far used in
FUIR.  Eventually, codeblock indices should be removed completely and replaced
by `site`s only.

This patch adds a convenience method `IR.addCode` that manages the calculation
of `site` and `getExpr` as a temporary convenience method to get an Expr for
given `c`/`i`.
This replaces the cumbersome `codeblockId` and `codeblockIndesx` pair, but so
far there is no semantic change.
@michaellilltokiwa michaellilltokiwa merged commit c38a9c4 into main Mar 19, 2024
5 checks passed
@michaellilltokiwa michaellilltokiwa deleted the dfa_include_site branch March 19, 2024 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants