Skip to content

Conversation

terapines-osc-cir
Copy link
Contributor

The PR1565 contains too many conflicts with the main branch.

Got it re-patched to the current main branch.

Structs are implemented as memref. It is not feasible to represent them as tuples,
for tuples can't be put in memref (i.e. pointers to structs would break if we did).

We use memref::ViewOp for this. Unlike PtrStrideOp, the reinterpret cast operation doesn't work here,
as the result type is potentially different from i8.

Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pending minor nits

assert(idx < getNumElements());
auto members = getMembers();

// unsigned offset = 0, recordSize = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove all commented code snippets

@bcardosolopes
Copy link
Member

and also pending tests passing :)

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.

2 participants