diff options
author | Matthias Springer <me@m-sp.org> | 2025-04-20 12:35:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-20 12:35:47 +0200 |
commit | bb21a6819b3fb9d689de776f7ee768030dfbacea (patch) | |
tree | 1737d434f48700f2db8eb36ae67e2910235bdb67 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 90c845fb3babac387688dfa6d560d3ba8ed8e340 (diff) | |
download | llvm-bb21a6819b3fb9d689de776f7ee768030dfbacea.zip llvm-bb21a6819b3fb9d689de776f7ee768030dfbacea.tar.gz llvm-bb21a6819b3fb9d689de776f7ee768030dfbacea.tar.bz2 |
[mlir][memref] Move `AllocLikeConversion.h` helpers into `MemRefToLLVM.cpp` (#136424)
This commit moves code around: The helper functions/classes are moved
into `MemRefToLLVM.cpp`. This simplifies the code a bit: fewer
templatized functions, fewer function calls, fewer lines of code.
This commit also moves checks in `matchAndRewrite` to the beginning of
the functions, such that patterns bail out (`return failure()`) before
starting to modify any IR. (Apart from that, this change is NFC.) This
is in preparation of the One-Shot Dialect Conversion refactoring, which
will disallow pattern rollbacks.
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions