arcana-lab / memoir

A case for representing data collections and objects in the LLVM IR
MIT License
11 stars 2 forks source link

TensorType::getNumberOfDimensions() Doesn't work #56

Open peteryongzhong opened 1 year ago

peteryongzhong commented 1 year ago

TensorType::getNumberOfDimensions() throws segfaults :

Test code:

https://github.com/arcana-lab/memoir/blob/fcea8221e164a5bf3bce4887c23b06378b0afabf/compiler/passes/object_lowering/src/ObjectLowering.cpp#L78

Testing against the test:

https://github.com/arcana-lab/memoir/blob/fcea8221e164a5bf3bce4887c23b06378b0afabf/tests/unit/tensor_simple/main.cpp#L64