-
Notifications
You must be signed in to change notification settings - Fork 148
Invalid IR when accessing union #224
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
Comments
@yugr thanks for tracking this. I'm currently working on refactoring how unions work in CIR. It will likely fix this issue. |
Thanks for sharing @yugr! |
sitio-couto
added a commit
that referenced
this issue
Aug 11, 2023
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 [ghstack-poisoned]
sitio-couto
added a commit
that referenced
this issue
Aug 22, 2023
…ck all members" This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 [ghstack-poisoned]
sitio-couto
added a commit
that referenced
this issue
Aug 22, 2023
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 [ghstack-poisoned]
sitio-couto
added a commit
that referenced
this issue
Aug 23, 2023
…ck all members" This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 [ghstack-poisoned]
sitio-couto
added a commit
that referenced
this issue
Aug 23, 2023
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 [ghstack-poisoned]
sitio-couto
added a commit
that referenced
this issue
Aug 28, 2023
…ck all members" This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 [ghstack-poisoned]
sitio-couto
added a commit
that referenced
this issue
Aug 28, 2023
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 [ghstack-poisoned]
lanza
pushed a commit
that referenced
this issue
Oct 27, 2023
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 ghstack-source-id: 8a97542 Pull Request resolved: #229
lanza
pushed a commit
that referenced
this issue
Dec 20, 2023
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 ghstack-source-id: 8a97542 Pull Request resolved: #229
lanza
pushed a commit
that referenced
this issue
Jan 29, 2024
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 ghstack-source-id: 8a97542 Pull Request resolved: #229
lanza
pushed a commit
that referenced
this issue
Mar 23, 2024
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 ghstack-source-id: 8a97542 Pull Request resolved: #229
eZWALT
pushed a commit
to eZWALT/clangir
that referenced
this issue
Mar 24, 2024
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes llvm#224 ghstack-source-id: 8a97542 Pull Request resolved: llvm#229
eZWALT
pushed a commit
to eZWALT/clangir
that referenced
this issue
Mar 24, 2024
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes llvm#224 ghstack-source-id: 8a97542 Pull Request resolved: llvm#229
lanza
pushed a commit
that referenced
this issue
Apr 29, 2024
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 ghstack-source-id: 8a97542 Pull Request resolved: #229
lanza
pushed a commit
that referenced
this issue
Apr 29, 2024
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 ghstack-source-id: 8a97542 Pull Request resolved: #229
eZWALT
pushed a commit
to eZWALT/clangir
that referenced
this issue
Apr 29, 2024
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes llvm#224 ghstack-source-id: 8a97542 Pull Request resolved: llvm#229
lanza
pushed a commit
that referenced
this issue
Apr 29, 2024
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 ghstack-source-id: 8a97542 Pull Request resolved: #229
bruteforceboy
pushed a commit
to bruteforceboy/clangir
that referenced
this issue
Oct 2, 2024
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes llvm#224 ghstack-source-id: 8a97542 Pull Request resolved: llvm#229
Hugobros3
pushed a commit
to shady-gang/clangir
that referenced
this issue
Oct 2, 2024
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes llvm#224 ghstack-source-id: 8a97542 Pull Request resolved: llvm#229
keryell
pushed a commit
to keryell/clangir
that referenced
this issue
Oct 19, 2024
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes llvm#224 ghstack-source-id: 8a97542 Pull Request resolved: llvm#229
lanza
pushed a commit
that referenced
this issue
Nov 5, 2024
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 ghstack-source-id: 8a97542 Pull Request resolved: #229
lanza
pushed a commit
that referenced
this issue
Mar 18, 2025
This diverges from the original codegen by tracking all members of a union, instead of just the largest one. This is necessary to support type-checking at the MLIR level when accessing union members. It also preserves more information about the source code, which might be useful. Fixes #224 ghstack-source-id: 8a97542 Pull Request resolved: #229
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code
currently generates invalid IR:
It seems that we are missing a bitcast in
buildLValueForField
and code even has a comment about this:Indeed adding
fixes the problem.
The text was updated successfully, but these errors were encountered: