Add support to generate the acc.bound operation when the array is passed without
any subscripts. Without this patch, no bound is generated.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
flang/lib/Lower/OpenACC.cpp | ||
---|---|---|
150–152 | I do not follow why the extent is being substracted the lower bound here. Does the acc::DataBoundsOp extent depends on its startIdx argument? BTW, is "zero" needed here (since it is an optional argument of acc::DataBoundsOp, isn't it implied to be zero when absent)? |
flang/lib/Lower/OpenACC.cpp | ||
---|---|---|
150–152 | That a mistake. Let me fix that. If lbound is zero we can indeed omit it. |
I do not follow why the extent is being substracted the lower bound here. Does the acc::DataBoundsOp extent depends on its startIdx argument?
BTW, is "zero" needed here (since it is an optional argument of acc::DataBoundsOp, isn't it implied to be zero when absent)?