[Mlir-commits] [mlir] Handled UnrealizedConversionCast for C code generation and validated tests (PR #160159)
    Gil Rapaport 
    llvmlistbot at llvm.org
       
    Fri Sep 26 11:26:32 PDT 2025
    
    
  
aniragil wrote:
Thanks for reporting and addressing this issue.
I'm not entirely sure though that the solution should be adding support for unrealized casts in the translator. As we end up with the unrealized type conversion, it seems our type conversion in `MemRefToEmitC` may not cover this case.
I wonder if the solution you propose (generating a cast to a pointer to an array and supporting it in `emitc.subscript`) can be implemented as part of lowering so that we don't get the unrealized cast in the first place?
https://github.com/llvm/llvm-project/pull/160159
    
    
More information about the Mlir-commits
mailing list