-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Arc] Add support for struct and array states
Allow `!arc.state` to carry HW structs and arrays. The state only has to be able to compute the bit width of the inner type, but it does not care what exactly this type is. Rework the Arc-to-LLVM lowering to do the entire lowering in one full conversion, instead of two separate ones. There is no real need for the split, and combining all patterns into one large conversion allows all Arc types to be directly converted to LLVM types. Previously, after the first partial conversion the IR would be in a strange in-between state of mixing Arc types into LLVM operations (for example, loads and stores of HW struct/array types).
- Loading branch information
1 parent
102ed65
commit 6560d98
Showing
6 changed files
with
111 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters