[all-commits] [llvm/llvm-project] 8408d3: [libunwind] NFC: Use macros to accommodate differe...

xingxue-ibm via All-commits all-commits at lists.llvm.org
Thu May 6 11:41:00 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8408d3f2d814b19da450ff162f47981b55a9703a
      https://github.com/llvm/llvm-project/commit/8408d3f2d814b19da450ff162f47981b55a9703a
  Author: Xing Xue <xingxue at outlook.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

  Changed paths:
    M libunwind/src/UnwindRegistersRestore.S
    M libunwind/src/UnwindRegistersSave.S
    M libunwind/src/assembly.h

  Log Message:
  -----------
  [libunwind] NFC: Use macros to accommodate differences in representation of PowerPC assemblers

Summary:
This NFC patch replaces the representation of registers and the left shift operator in the PowerPC assembly code to allow it to be consumed by the GNU flavored assembler and the AIX assembler.

* Registers - change the representation of PowperPC registers from %rn, %fn, %vsn, and %vrn to the register number alone, e.g., n. The GNU flavored assembler and the AIX assembler are able to determine the register kind based on the context of the instruction in which the register is used.

* Left shift operator - use macro PPC_LEFT_SHIFT to represent the left shift operator. The left shift operator in the AIX assembly language is < instead of <<

Reviewed by: sfertile, MaskRay, compnerd

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




More information about the All-commits mailing list