aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorMarkus Böck <markus.bock+llvm@nextsilicon.com>2023-07-07 11:00:08 +0200
committerMarkus Böck <markus.bock+llvm@nextsilicon.com>2023-07-10 10:45:42 +0200
commitc10f8bd6c3ec30b68900b6fac2f0813c338d99e6 (patch)
treec2e05b72139699cce4d7c947d3446c9735776c14 /clang/lib/Frontend/CompilerInstance.cpp
parent3d287a755bed84b7a8ffb771c6b1d5895c187346 (diff)
downloadllvm-c10f8bd6c3ec30b68900b6fac2f0813c338d99e6.zip
llvm-c10f8bd6c3ec30b68900b6fac2f0813c338d99e6.tar.gz
llvm-c10f8bd6c3ec30b68900b6fac2f0813c338d99e6.tar.bz2
[mlir][LLVM] Add `SplitGEP` type-consistency pattern
The goal of this pattern is to eliminate all GEPs that have more than two indices by splitting it into multiple GEPs. The advantage of this change is that the resulting GEPs only ever index into one aggregate at the time. This enables handling sub-aggregates in other patterns and also creates IR with easier to deduce pointer element types. As a minor note, `getResultPtrElementType` for `GEPOp` was rewritten since it did not properly handle dynamic indices. The way GEPOp is specified, the resulting pointer element type can *always* be deduced from its base type and indices. Differential Revision: https://reviews.llvm.org/D154692
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions