[PATCH] D92766: [XCOFF][AIX] Emit EH information in traceback table

Jason Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 7 07:49:47 PST 2020


jasonliu created this revision.
jasonliu added reviewers: xingxue, daltenty, hubert.reinterpretcast, sfertile.
Herald added subscribers: kbarton, hiraditya, nemanjai.
jasonliu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

In order for the runtime on AIX to find the compact unwind section(EHInfo table),
we would need to set the following on the traceback table:

1. The 6th byte's longtbtable field to true to signal there is an `Extended TB Table Flag`.
2. The `Extended TB Table Flag` to be 0x08 to signal there is an exception handling info presents.
3. Emit the offset between ehinfo TC entry and TOC base after all other optional portions of traceback table.


https://reviews.llvm.org/D92766

Files:
  llvm/include/llvm/BinaryFormat/XCOFF.h
  llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
  llvm/lib/BinaryFormat/XCOFF.cpp
  llvm/lib/CodeGen/AsmPrinter/AIXException.cpp
  llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
  llvm/test/CodeGen/PowerPC/aix-exception.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92766.309916.patch
Type: text/x-patch
Size: 11117 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201207/e24cafc6/attachment.bin>


More information about the llvm-commits mailing list