[AIX][XCOFF][Patch2] decode vector information and extent long table of the…

Authored by DiggerLin on Nov 19 2020, 7:23 AM.


[AIX][XCOFF][Patch2] decode vector information and extent long table of the traceback table of the xcoff.


  1. decode the Vector extension if has_vec is set
  2. decode long table fields, if longtbtable is set.

There is conflict on the bit order of HasVectorInfoMask and HasExtensionTableMask between AIX os header and IBM aix compiler XLC.
In the /usr/include/sys/debug.h defines
static constexpr uint32_t HasVectorInfoMask = 0x0040'0000;
static constexpr uint32_t HasExtensionTableMask = 0x0080'0000;
but the XLC defines as

static constexpr uint32_t HasVectorInfoMask = 0x0080'0000;
static constexpr uint32_t HasExtensionTableMask = 0x0040'0000;
we follows the definition of the IBM AIX compiler XLC here.

Reviewer: Jason Liu

Differential Revision: https://reviews.llvm.org/D86461