[llvm] [AIX] Support per global code model. (PR #79202)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 13:01:05 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff b32845cb94a81e6fd8b01a8631e3d276c9fc9e35 9e5eb9a31b7c0d1b92882875ddf0733978aff553 -- llvm/include/llvm/MC/MCSymbolXCOFF.h llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp llvm/lib/Target/PowerPC/PPCSubtarget.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index c4e8db8ad3..05555c6111 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -2682,11 +2682,10 @@ MCSection *TargetLoweringObjectFileXCOFF::getSectionForTOCEntry(
     const MCSymbol *Sym, const TargetMachine &TM) const {
   const XCOFF::StorageMappingClass SMC = [](const MCSymbol *Sym,
                                             const TargetMachine &TM) {
-
     const MCSymbolXCOFF *XSym = cast<MCSymbolXCOFF>(Sym);
 
-    // The "_$TLSML" symbol for TLS local-dynamic mode requires XMC_TC, otherwise
-    // the AIX assembler will complain.
+    // The "_$TLSML" symbol for TLS local-dynamic mode requires XMC_TC,
+    // otherwise the AIX assembler will complain.
     if (XSym->getSymbolTableName() == "_$TLSML")
       return XCOFF::XMC_TC;
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/79202


More information about the llvm-commits mailing list