[PATCH] D149879: [MachineFunction][DebugInfo][nfc] Introduce EntryValue variable kind

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 4 12:21:07 PDT 2023


aprantl accepted this revision.
aprantl added a comment.
This revision is now accepted and ready to land.

That looks nice and clean.



================
Comment at: llvm/include/llvm/CodeGen/MachineFunction.h:414
+  // * A stack index, which can be negative for fixed stack objects.
+  // * A MCRegister, whose entry value contains the address of the variable.
+  class VariableDbgInfo {
----------------
`///`


================
Comment at: llvm/include/llvm/CodeGen/MachineFunction.h:1295
+  auto getInStackSlotVariableDbgInfo() const {
+    return make_filter_range(getVariableDbgInfo(), [](const auto &VarInfo) {
+      return VarInfo.inStackSlot();
----------------
this lambda is different from the one above in that it uses const auto


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149879/new/

https://reviews.llvm.org/D149879



More information about the llvm-commits mailing list