Minor fixes for ShapedType accessors, use ShapedType::kDynamicSize, add ShapedType::isDynamicDim.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
1071 | Can we initialize it to kDynamicSize instead of hardcoded -1? |
Comment Actions
Can we initialize it to kDynamicSize instead of hardcoded -1?
Orthogonally to this revision, note that this is a particular pain point: there are a lot of -1 scattered around the codebase both in MLIR and things that depend on MLIR.
-1 is not good enough for representing dynamic offset and strides.
I had started an effort to clean that up a few months ago but did not see the light at the end of the tunnel..
Can we initialize it to kDynamicSize instead of hardcoded -1?