Adds a new HLFIR operation for the DOT_PRODUCT intrinsic according to
the design set out in flang/docs/HighLevel.md. This patch includes all
the necessary changes to create a new HLFIR operation and lower it into
the fir runtime call.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for this. The code is very clean. Just some small nits.
flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp | ||
---|---|---|
687 | It would be better to check the rank before indexing into the array so that we don't crash when the rank is zero (I'm not sure if this can happen in practice) | |
flang/test/Lower/HLFIR/dot_product.f90 | ||
38 | Do you mean "arguments aren't assumed shape"? |
It would be better to check the rank before indexing into the array so that we don't crash when the rank is zero (I'm not sure if this can happen in practice)