Skip to content

Reshape phase messes up types #208

@leissa

Description

@leissa

Branch: feature/fun
Repository: git@github.com:AnyDSL/thorin2.git

Call: ./build/bin/thorin lit/clos/malloc.thorin.disabled -o - -p clos

<unknown location>: error: cannot pass argument 
'(_61485#0:(.Idx 2), _61593, f_reshape_62035)' of type 
'[%mem.M, %mem.Ptr (.Cn [[%mem.M, .Idx 4294967296], .Cn [%mem.M, .Idx 4294967296]], 0), .Cn [%mem.M, .Idx 4294967296, .Cn [%mem.M, .Idx 4294967296]]]' to 
'%mem.store (.Cn [[%mem.M, .Idx 4294967296], .Cn [%mem.M, .Idx 4294967296]], 0)' of domain 
'[%mem.M, %mem.Ptr (.Cn [[%mem.M, .Idx 4294967296], .Cn [%mem.M, .Idx 4294967296]], 0), .Cn [[%mem.M, .Idx 4294967296], .Cn [%mem.M, .Idx 4294967296]]]'

Eliding -p clos works. Fiddling around with verbose output points the finger to the reshape pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions