Open xisang0 opened 3 days ago
Hello @xisang0 ,
I wanted to understand what the expectation here is.
Currently the dialect conversion function (createLinalgBodyCalculationForElementwiseOp requires that both the source and destination types be IntegerType
or FloatType
, that are both Builtin types.
But the target type in the above example is !quant.uniform
that is not a Builtin type.
So, is it a possible solution to lower the !quant.uniform
type to some type that the current tosa
dialect conversion functions can handle, before running tosa-to-linalg-named,tosa-to-linalg
passes?
Or did you expect the dialect conversion function to rely on some generic interface that returns bitwidth?
Test on commit: https://github.com/llvm/llvm-project/commit/6548b6354d1d990e1c98736f5e7c3de876bedc8e steps to reproduce:
test case:
crash trace: