-
Notifications
You must be signed in to change notification settings - Fork 129
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
[ThroughMLIR] can not lower c array correctly #1405
Comments
for example, `cir.alloca !cir.array<!s32i x N>, !cir.ptr<!cir.array<!s32i x N>>` to `memref.alloca() : memref<Nxi32>` see llvm#1405
hi @wenhu1024, thank you for reporting this issue. I submitted #1412 . However, with my patch, I am still encountering an error:
|
(cc @keryell) |
I do not think the CIR -> MLIR lowering is in a usable state currently, unfortunately. 😦 |
Yes,I find the CIR -> MLIR lowering can not work. 😢
No, I just take a look.
It seems that enabling the CIR -> MLIR lowering requires support from the upstream MLIR core infrastructure. It appears to be a significant amount of work. |
for example, lower `cir.alloca !cir.array<!s32i x N>, !cir.ptr<!cir.array<!s32i x N>>` to `memref.alloca() : memref<Nxi32>` see #1405
here is arr.c
then i want to get mlir through cir
but i got something wrong
and the CIR is here
The text was updated successfully, but these errors were encountered: