diff options
author | Florian Hahn <flo@fhahn.com> | 2024-03-26 16:01:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 16:01:57 +0100 |
commit | 06bb8c9f202e37f215b26ca0dd9b2d8adaf5a83d (patch) | |
tree | 7496c368ad14f11d1baad25747f0060916993152 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 26d896f3688a8bff6faf85ccce557e320108997f (diff) | |
download | llvm-06bb8c9f202e37f215b26ca0dd9b2d8adaf5a83d.zip llvm-06bb8c9f202e37f215b26ca0dd9b2d8adaf5a83d.tar.gz llvm-06bb8c9f202e37f215b26ca0dd9b2d8adaf5a83d.tar.bz2 |
[VPlan] Explicitly handle scalar pointer inductions. (#83068)
Add a new PtrAdd opcode to VPInstruction that corresponds to
IRBuilder::CreatePtrAdd, which creates a GEP with source element type
i8.
This is then used to model scalarizing VPWidenPointerInductionRecipe by
introducing scalar-steps to model the index increment followed by a
PtrAdd.
Note that PtrAdd needs to be able to generate code for only the first
lane or for all lanes. This may warrant introducing a separate recipe
for scalarizing that can be created without relying on the underlying
IR.
Depends on https://github.com/llvm/llvm-project/pull/80271
PR: https://github.com/llvm/llvm-project/pull/83068
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions