[Lldb-commits] [PATCH] D91728: [lldb] [Process/Utility] Declare register overlaps between ST and MM [WIP]

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 19 01:06:47 PST 2020


mgorny added inline comments.


================
Comment at: lldb/source/Plugins/Process/Utility/RegisterInfos_x86_64.h:93
   {                                                                            \
     #reg #i, nullptr, sizeof(uint64_t),                                        \
                           LLVM_EXTENSION FPR_OFFSET(                           \
----------------
labath wrote:
> mgorny wrote:
> > To be honest, I completely don't get the indentation below.
> Yeah... You could try explicitly re-indenting the block to see whether it produces something better. If not, it's likely a clang-format bug (though I can't really blame it for getting this mess wrong)
Actually, clang-format produces something like this, for the whole file:

```
#define DEFINE_FP_MM(reg, i, streg)                                            \
  {                                                                            \
#reg #i, nullptr, sizeof(uint64_t), LLVM_EXTENSION FPR_OFFSET(stmm[i]),    \
        eEncodingUint, eFormatHex,                                             \
        {dwarf_mm##i##_x86_64, dwarf_mm##i##_x86_64, LLDB_INVALID_REGNUM,      \
         LLDB_INVALID_REGNUM, lldb_mm##i##_x86_64 },                           \
         RegisterContextPOSIX_x86::g_contained_##streg,                        \
         RegisterContextPOSIX_x86::g_invalidate_##streg, nullptr, 0            \
  }
```

Note that the `#reg` line gets `\` wrong — if I add 4 spaces to the beginning, it starts looking sane-ish, so it probably gets that wrong.


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

https://reviews.llvm.org/D91728



More information about the lldb-commits mailing list