Skip to content

Conversation

@Jezurko
Copy link

@Jezurko Jezurko commented May 6, 2025

This is a workaround for importing multiple modules into a single context. The downside of this solution is that it accepts invalid IRs where there is a redefinition of the named type in a single module, but solving that in the parser is not currently possible.

@Jezurko Jezurko self-assigned this May 6, 2025
@frabert frabert force-pushed the main branch 3 times, most recently from 6f03548 to f4752e8 Compare May 23, 2025 12:54
@frabert frabert changed the base branch from main to backup-20250521 May 23, 2025 13:07
@frabert
Copy link
Collaborator

frabert commented May 30, 2025

Is this one of the things that were solved with the update to latest LLVM, or is it still required? If so, I'll go ahead and rebase it on the new version

This is a workaround for importing multiple modules into a single
context. The downside of this solution is that it accepts invalid IRs
where there is a redefinition of the named type, but solving that in the
parser is not possible.
@Jezurko Jezurko force-pushed the robert/struct-collision branch from 3a71ea7 to 5dac722 Compare May 30, 2025 15:10
@Jezurko Jezurko changed the base branch from backup-20250521 to main May 30, 2025 15:10
@Jezurko Jezurko requested a review from frabert May 30, 2025 15:13
@frabert frabert merged commit b795889 into main May 30, 2025
2 checks passed
ekilmer pushed a commit that referenced this pull request Jun 12, 2025
…sing (#46)

This modifies the workaround in #34.

If an opaque type name collides with a different named type, the opaque type takes the specified body now, instead of being renamed.

* [MLIR] Hack in "linking" of opaque types with bodies during parsing

* Import llvm-link test for opaque type linking
@ekilmer ekilmer deleted the robert/struct-collision branch June 12, 2025 14:35
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