[PATCH] D67853: [PowerPC][XCOFF] Fix expansion of LWZtoc Pseudo for AIX.

Hubert Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 14:14:17 PDT 2019


hubert.reinterpretcast added inline comments.


================
Comment at: llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp:696
+    // AIX uses the local symbol directly for the operand; that the symbol is
+    // accessed toc-relative is implicit.
+    if (IsAIX) {
----------------
I would prefer if we mentioned "label" somewhere in the comment as the term that maps better in the context of AIX. The implicit property is also limited to certain contexts (the Assembler Language Reference describes the condition as use of the label as a displacement in a D-form instruction), and the comment is insufficiently qualified to make that clear.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D67853





More information about the llvm-commits mailing list