[PATCH] D75094: [MachineInstr] Add a dumpr method
Quentin Colombet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 24 20:48:07 PST 2020
qcolombet added a comment.
Here are a few examples of the dump we get:
- No Depth limit:
(lldb) p MI.dumpr(MRI, -1)
%1:_(<4 x s16>) = G_BUILD_VECTOR %6:_(s16), %7:_(s16), %8:_(s16), %9:_(s16)
%6:_(s16) = G_FPTRUNC %17:_(s32)
%17:_(s32) = COPY $s0
%7:_(s16) = G_FPTRUNC %15:_(s32)
%15:_(s32) = COPY $s0
%8:_(s16) = G_FPTRUNC %13:_(s32)
%13:_(s32) = COPY $s0
%9:_(s16) = G_FPTRUNC %11:_(s32)
%11:_(s32) = COPY $s0
- Depth limit of 2:
(lldb) p MI.dumpr(MRI, 2)
%1:_(<4 x s16>) = G_BUILD_VECTOR %6:_(s16), %7:_(s16), %8:_(s16), %9:_(s16)
%6:_(s16) = G_FPTRUNC %17:_(s32)
%7:_(s16) = G_FPTRUNC %15:_(s32)
%8:_(s16) = G_FPTRUNC %13:_(s32)
%9:_(s16) = G_FPTRUNC %11:_(s32)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75094/new/
https://reviews.llvm.org/D75094
More information about the llvm-commits
mailing list