diff options
author | Slava Zakharin <szakharin@nvidia.com> | 2025-08-15 15:22:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-15 15:22:06 -0700 |
commit | 9f302ed0cf433114faf4ab07655166634630e1e2 (patch) | |
tree | fca3410acab96cef306f4e580c227cdce0c1de7c /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 0cd35e7afd91ba64bdb2fc11caf13d0826780865 (diff) | |
download | llvm-9f302ed0cf433114faf4ab07655166634630e1e2.zip llvm-9f302ed0cf433114faf4ab07655166634630e1e2.tar.gz llvm-9f302ed0cf433114faf4ab07655166634630e1e2.tar.bz2 |
[flang] Inline hlfir.eoshift during HLFIR intrinsics simplication. (#153108)
This patch generalizes the code for hlfir.cshift to be applicable
for hlfir.eoshift. The major difference is the selection
of the boundary value that might be statically/dynamically absent,
in which case the default scalar value has to be used.
The scalar value of the boundary is always computed before
the hlfir.elemental or the assignment loop.
Contrary to hlfir.cshift simplication, the SHIFT value is not
normalized,
because the original value (and its sign) participate in the EOSHIFT
index computation for addressing the input array and selecting
which elements of the results are assigned from the boundary operand.
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions