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

[AutoBump] Merge with fixes of e47b5075 (Aug 20) (7) #360

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

mgehre-amd
Copy link
Collaborator

No description provided.

simon-camp and others added 2 commits August 20, 2024 11:52
This adds an `emitc.lvalue` type which models assignable lvlaues in the
type system. Operations modifying memory are restricted to this type
accordingly.

See also the discussion on
[discourse](https://discourse.llvm.org/t/rfc-separate-variables-from-ssa-values-in-emitc/75224/9).
The most notable changes are as follows.

- `emitc.variable` and `emitc.global` ops are restricted to return
`emitc.array` or `emitc.lvalue` types
- Taking the address of a value is restricted to operands with lvalue
type
- Conversion from lvalues into SSA values is done with the new
`emitc.load` op
- The var operand of the `emitc.assign` op is restricted to lvalue type 
- The result of the `emitc.subscript` and `emitc.get_global` ops is a
lvalue type
- The operands and results of the `emitc.member` and
`emitc.member_of_ptr` ops are restricted to lvalue types

---------

Co-authored-by: Matthias Gehre <[email protected]>
Base automatically changed from bump_to_3c537459 to feature/fused-ops December 3, 2024 08:44
@mgehre-amd mgehre-amd enabled auto-merge December 3, 2024 14:31
@mgehre-amd mgehre-amd merged commit 62459f4 into feature/fused-ops Dec 3, 2024
3 of 4 checks passed
@mgehre-amd mgehre-amd deleted the bump_to_e47b5075 branch December 3, 2024 14:42
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.

3 participants