This resolves a TODO.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks for the review :)
mlir/lib/Conversion/MathToLibm/MathToLibm.cpp | ||
---|---|---|
68–73 | This needs computed strides, I cannot just pass it the shape. I am not sure whether it is worth it to compute the strides first, just that I can call this function. |
mlir/lib/Conversion/MathToLibm/MathToLibm.cpp | ||
---|---|---|
68–73 | There's also computeStrides a couple of lines above. :) So you can call two functions and be done with it instead of doing somewhat non-trivial math. |
mlir/lib/Conversion/MathToLibm/MathToLibm.cpp | ||
---|---|---|
68–73 | It is not the perfect utility function for my use case, but ok, I can understand that it is easier to read to just have two function calls than the custom delinearization. Done. |
You can just call vecType.getNumElements().