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

[WIP] Refactoring of the SSA and data dependency. #346

Merged
merged 20 commits into from
Apr 22, 2020

Conversation

montyly
Copy link
Member

@montyly montyly commented Oct 15, 2019

The goal is to refactor the IR and the data dependency to have fine-grained information about structure and mapping.

This PR is a WIP, it is not the final format. Mappings are not handled, and a lot of work is still needed to handle properly the structure.

The intuition is:

  • Use Update(variable, member/index, new_value and Access(variable, member/index
  • The SSA will handle the update through the must and may phi operations (following a SSA array approach)

The main challenges are to ensure that the format:

  • Is appropriated to handle nested structure/mapping
  • Handles properly storage pointers
  • Works well with the existing inter-transactional SSA format

What was done:

  • Use PhiMember Must/May to handle structure
  • Split ReferenceVarible into MemberVariable/IndexVariable
  • Data dependancy works at the node level
  • Factorise instances in utils.ssa to namedtuples

This commit is a WIP, it is not the final format. Mapping are not handled.

- Split ReferenceVarible into MemberVariable/IndexVariable
- Factorise instances in utils.ssa to namedtuples
- Use PhiMember Must/May to handle structure
- Data dependancy works at the node level
@montyly montyly changed the title Refactoring of the SSA and data dependency. [WIP] Refactoring of the SSA and data dependency. Oct 15, 2019
@montyly montyly mentioned this pull request Nov 20, 2019
@montyly montyly changed the base branch from dev to dev-0.7 April 22, 2020 09:00
@montyly montyly merged commit 95270d4 into dev-0.7 Apr 22, 2020
@montyly montyly deleted the dev-slithir-ssa-array branch April 29, 2020 18:06
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.

1 participant