Skip to content

[Clang][AIX] Add -mloadtime-comment-vars flag to preserve identifying variables#187986

Draft
tonykuttai wants to merge 2 commits into
users/tonykuttai/ltobugfixfrom
users/tonykuttai/pragma-comment-copyright-cli
Draft

[Clang][AIX] Add -mloadtime-comment-vars flag to preserve identifying variables#187986
tonykuttai wants to merge 2 commits into
users/tonykuttai/ltobugfixfrom
users/tonykuttai/pragma-comment-copyright-cli

Conversation

@tonykuttai
Copy link
Copy Markdown
Contributor

@tonykuttai tonykuttai commented Mar 23, 2026

This patch introduces a new Clang command-line option, -mloadtime-comment-vars=, which accepts a comma-separated list of variable names to preserve as loadtime identifying strings in the final binary object file.
It ensures that these specific string variables (such as strings that embed 'sccsid' or 'version' info in source variables) are preserved in the object file and not stripped during aggressive garbage collection. This complements the #pragma comment(copyright, ...) feature by supporting codebases that use this older pattern.

This is a stacked pr on top of [Analysis][AIX] Add !implicit.ref globals as ThinLTO summary ref edges to support pragma comment(copyright) LTO interaction which in turn depends on [PowerPC][AIX] Support #pragma comment copyright for AIX.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 23, 2026

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
git-clang-format --diff origin/main HEAD --extensions h,c,cpp -- clang/test/CodeGen/loadtime-comment-vars.c clang/include/clang/Basic/CodeGenOptions.h clang/lib/CodeGen/CodeGenModule.cpp clang/lib/CodeGen/CodeGenModule.h clang/lib/Driver/ToolChains/Clang.cpp llvm/lib/Transforms/Utils/LowerCommentStringPass.cpp --diff_from_common_commit

⚠️
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing origin/main to the base branch/commit you want to compare against.
⚠️

View the diff from clang-format here.
diff --git a/llvm/lib/Transforms/Utils/LowerCommentStringPass.cpp b/llvm/lib/Transforms/Utils/LowerCommentStringPass.cpp
index 9a805ff7a..bbcb5a24e 100644
--- a/llvm/lib/Transforms/Utils/LowerCommentStringPass.cpp
+++ b/llvm/lib/Transforms/Utils/LowerCommentStringPass.cpp
@@ -170,7 +170,7 @@ PreservedAnalyses LowerCommentStringPass::run(Module &M,
         auto *StrGV = new GlobalVariable(M, StrInit->getType(),
                                          /*isConstant=*/true,
                                          GlobalValue::WeakODRLinkage, StrInit,
-                                         /*Name=*/ GlobalName);
+                                         /*Name=*/GlobalName);
         StrGV->setUnnamedAddr(GlobalValue::UnnamedAddr::Global);
         StrGV->setAlignment(Align(1));
         // Backend recognizes this section and emits it to .loadtime_comment.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 22, 2026

🐧 Linux x64 Test Results

  • 174802 tests passed
  • 3386 tests skipped
  • 5 tests failed

Failed Tests

(click on a test name to see its output)

LLVM

LLVM.LTO/PowerPC/pragma-comment-copyright-thinlto.ll
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 7
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp && mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp
# note: command had no output on stdout or stderr
# executed command: mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp
# note: command had no output on stdout or stderr
# RUN: at line 8
split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/LTO/PowerPC/pragma-comment-copyright-thinlto.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp
# executed command: split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/LTO/PowerPC/pragma-comment-copyright-thinlto.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp
# note: command had no output on stdout or stderr
# RUN: at line 9
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -passes='thinlto-pre-link<O2>' /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu1.ll -o - |    /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -module-summary -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu1.bc
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt '-passes=thinlto-pre-link<O2>' /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu1.ll -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -module-summary -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu1.bc
# note: command had no output on stdout or stderr
# RUN: at line 11
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -passes='thinlto-pre-link<O2>' /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu2.ll -o - |    /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -module-summary -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu2.bc
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt '-passes=thinlto-pre-link<O2>' /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu2.ll -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -module-summary -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu2.bc
# note: command had no output on stdout or stderr
# RUN: at line 13
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-lto --thinlto-action=thinlink -o combined /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu1.bc /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu2.bc
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-lto --thinlto-action=thinlink -o combined /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu1.bc /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu2.bc
# note: command had no output on stdout or stderr
# RUN: at line 14
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-lto --thinlto-action=import           --thinlto-index=combined           --exported-symbol=main             --exported-symbol=f_add            --exported-symbol=my_function         /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu2.bc -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu2.imported.bc
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-lto --thinlto-action=import --thinlto-index=combined --exported-symbol=main --exported-symbol=f_add --exported-symbol=my_function /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu2.bc -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu2.imported.bc
# note: command had no output on stdout or stderr
# RUN: at line 20
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-dis /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu2.imported.bc -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/LTO/PowerPC/pragma-comment-copyright-thinlto.ll --check-prefix=CHECK-TU2-IMPORTED
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-dis /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/LTO/PowerPC/Output/pragma-comment-copyright-thinlto.ll.tmp/tu2.imported.bc -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/LTO/PowerPC/pragma-comment-copyright-thinlto.ll --check-prefix=CHECK-TU2-IMPORTED
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/LTO/PowerPC/pragma-comment-copyright-thinlto.ll:67:28: error: CHECK-TU2-IMPORTED-NEXT: is not on the line after the previous match
# | ; CHECK-TU2-IMPORTED-NEXT: ![[FADD_MD]] = !{ptr @[[TU1_STR]]}
# |                            ^
# | <stdin>:33:1: note: 'next' match was here
# | !6 = !{ptr @__loadtime_comment_str_53817c99cb132e31}
# | ^
# | <stdin>:31:53: note: previous match ended here
# | !4 = !{ptr @__loadtime_comment_str_a93afe11c1abbb5a}
# |                                                     ^
# | <stdin>:32:1: note: non-matching line after previous match is here
# | !5 = !{i64 -2624081020897602054}
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/LTO/PowerPC/pragma-comment-copyright-thinlto.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          .
# |          .
# |          .
# |         28: !1 = !{i64 -5502398058478038803} 
# |         29: !2 = !{i32 8, !"PIC Level", i32 2} 
# |         30: !3 = !{i32 1, !"EnableSplitLTOUnit", i32 0} 
# |         31: !4 = !{ptr @__loadtime_comment_str_a93afe11c1abbb5a} 
# |         32: !5 = !{i64 -2624081020897602054} 
# |         33: !6 = !{ptr @__loadtime_comment_str_53817c99cb132e31} 
# | next:67     !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  error: match on wrong line
# |         34: !7 = !{i64 -2292188462853712368} 
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

LLVM.Other/new-pm-thinlto-prelink-defaults.ll
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 11
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -disable-verify -verify-analysis-invalidation=0 -eagerly-invalidate-analyses=0 -debug-pass-manager      -passes='thinlto-pre-link<O1>' -S /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-defaults.ll 2>&1      | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-defaults.ll --check-prefixes=CHECK-O,CHECK-O1,CHECK-O-NODIS
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -disable-verify -verify-analysis-invalidation=0 -eagerly-invalidate-analyses=0 -debug-pass-manager '-passes=thinlto-pre-link<O1>' -S /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-defaults.ll
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-defaults.ll --check-prefixes=CHECK-O,CHECK-O1,CHECK-O-NODIS
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-defaults.ll:187:17: error: CHECK-O-NEXT: is not on the line after the previous match
# | ; CHECK-O-NEXT: Running pass: LowerCommentStringPass
# |                 ^
# | <stdin>:99:1: note: 'next' match was here
# | Running pass: LowerCommentStringPass on [module]
# | ^
# | <stdin>:97:33: note: previous match ended here
# | Running pass: NameAnonGlobalPass on [module]
# |                                 ^
# | <stdin>:98:1: note: non-matching line after previous match is here
# | Running pass: AssignGUIDPass on [module]
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-defaults.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           .
# |           .
# |           .
# |          94: Running pass: GlobalDCEPass on [module] 
# |          95: Running pass: AnnotationRemarksPass on foo (7 instructions) 
# |          96: Running pass: CanonicalizeAliasesPass on [module] 
# |          97: Running pass: NameAnonGlobalPass on [module] 
# |          98: Running pass: AssignGUIDPass on [module] 
# |          99: Running pass: LowerCommentStringPass on [module] 
# | next:187     !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~              error: match on wrong line
# |         100: Running pass: PrintModulePass on [module] 
# |         101: ; ModuleID = '/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-defaults.ll' 
# |         102: source_filename = "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-defaults.ll" 
# |         103:  
# |         104: declare void @bar() local_unnamed_addr 
# |           .
# |           .
# |           .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

LLVM.Other/new-pm-thinlto-prelink-pgo-defaults.ll
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-profdata merge /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/Inputs/new-pm-thinlto-prelink-pgo-defaults.proftext -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/Other/Output/new-pm-thinlto-prelink-pgo-defaults.ll.tmp.profdata
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-profdata merge /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/Inputs/new-pm-thinlto-prelink-pgo-defaults.proftext -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/Other/Output/new-pm-thinlto-prelink-pgo-defaults.ll.tmp.profdata
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -disable-verify -verify-analysis-invalidation=0 -eagerly-invalidate-analyses=0 -debug-pass-manager      -pgo-kind=pgo-instr-use-pipeline -profile-file='/home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/Other/Output/new-pm-thinlto-prelink-pgo-defaults.ll.tmp.profdata'      -passes='thinlto-pre-link<O1>' -S /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll 2>&1      | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll --check-prefixes=CHECK-O,CHECK-O1
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -disable-verify -verify-analysis-invalidation=0 -eagerly-invalidate-analyses=0 -debug-pass-manager -pgo-kind=pgo-instr-use-pipeline -profile-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/Other/Output/new-pm-thinlto-prelink-pgo-defaults.ll.tmp.profdata '-passes=thinlto-pre-link<O1>' -S /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll --check-prefixes=CHECK-O,CHECK-O1
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll:190:17: error: CHECK-O-NEXT: is not on the line after the previous match
# | ; CHECK-O-NEXT: Running pass: LowerCommentStringPass
# |                 ^
# | <stdin>:137:1: note: 'next' match was here
# | Running pass: LowerCommentStringPass on [module]
# | ^
# | <stdin>:135:33: note: previous match ended here
# | Running pass: NameAnonGlobalPass on [module]
# |                                 ^
# | <stdin>:136:1: note: non-matching line after previous match is here
# | Running pass: AssignGUIDPass on [module]
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           .
# |           .
# |           .
# |         132: Running pass: GlobalDCEPass on [module] 
# |         133: Running pass: AnnotationRemarksPass on foo (7 instructions) 
# |         134: Running pass: CanonicalizeAliasesPass on [module] 
# |         135: Running pass: NameAnonGlobalPass on [module] 
# |         136: Running pass: AssignGUIDPass on [module] 
# |         137: Running pass: LowerCommentStringPass on [module] 
# | next:190     !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~              error: match on wrong line
# |         138: Running pass: PrintModulePass on [module] 
# |         139: ; ModuleID = '/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll' 
# |         140: source_filename = "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll" 
# |         141:  
# |         142: declare void @bar() local_unnamed_addr 
# |           .
# |           .
# |           .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

LLVM.Other/new-pm-thinlto-prelink-samplepgo-defaults.ll
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -disable-verify -verify-analysis-invalidation=0 -eagerly-invalidate-analyses=0 -debug-pass-manager      -pgo-kind=pgo-sample-use-pipeline -profile-file='/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/Inputs/new-pm-thinlto-samplepgo-defaults.prof'      -passes='thinlto-pre-link<O1>' -S /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll 2>&1      | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll --check-prefixes=CHECK-O,CHECK-O1
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -disable-verify -verify-analysis-invalidation=0 -eagerly-invalidate-analyses=0 -debug-pass-manager -pgo-kind=pgo-sample-use-pipeline -profile-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/Inputs/new-pm-thinlto-samplepgo-defaults.prof '-passes=thinlto-pre-link<O1>' -S /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll --check-prefixes=CHECK-O,CHECK-O1
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll:153:17: error: CHECK-O-NEXT: is not on the line after the previous match
# | ; CHECK-O-NEXT: Running pass: LowerCommentStringPass
# |                 ^
# | <stdin>:104:1: note: 'next' match was here
# | Running pass: LowerCommentStringPass on [module]
# | ^
# | <stdin>:102:33: note: previous match ended here
# | Running pass: NameAnonGlobalPass on [module]
# |                                 ^
# | <stdin>:103:1: note: non-matching line after previous match is here
# | Running pass: AssignGUIDPass on [module]
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           .
# |           .
# |           .
# |          99: Running pass: GlobalDCEPass on [module] 
# |         100: Running pass: AnnotationRemarksPass on foo (7 instructions) 
# |         101: Running pass: CanonicalizeAliasesPass on [module] 
# |         102: Running pass: NameAnonGlobalPass on [module] 
# |         103: Running pass: AssignGUIDPass on [module] 
# |         104: Running pass: LowerCommentStringPass on [module] 
# | next:153     !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~              error: match on wrong line
# |         105: Running pass: PrintModulePass on [module] 
# |         106: ; ModuleID = '/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll' 
# |         107: source_filename = "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll" 
# |         108:  
# |         109: declare void @bar() local_unnamed_addr 
# |           .
# |           .
# |           .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

Clang

Clang.CodeGen/PowerPC/pragma-comment-copyright-modules.cpp
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/pragma-comment-copyright-modules.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/PowerPC/Output/pragma-comment-copyright-modules.cpp.tmp
# executed command: split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/pragma-comment-copyright-modules.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/PowerPC/Output/pragma-comment-copyright-modules.cpp.tmp
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++20 -triple powerpc-ibm-aix    -emit-module-interface /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/PowerPC/Output/pragma-comment-copyright-modules.cpp.tmp/copymod.cppm -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/PowerPC/Output/pragma-comment-copyright-modules.cpp.tmp/copymod.pcm
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++20 -triple powerpc-ibm-aix -emit-module-interface /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/PowerPC/Output/pragma-comment-copyright-modules.cpp.tmp/copymod.cppm -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/PowerPC/Output/pragma-comment-copyright-modules.cpp.tmp/copymod.pcm
# note: command had no output on stdout or stderr
# RUN: at line 9
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++20 -triple powerpc-ibm-aix -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/PowerPC/Output/pragma-comment-copyright-modules.cpp.tmp/copymod.cppm -o -    | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/pragma-comment-copyright-modules.cpp --check-prefix=CHECK-MOD
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++20 -triple powerpc-ibm-aix -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/PowerPC/Output/pragma-comment-copyright-modules.cpp.tmp/copymod.cppm -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/pragma-comment-copyright-modules.cpp --check-prefix=CHECK-MOD
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/pragma-comment-copyright-modules.cpp:11:15: error: CHECK-MOD: expected string not found in input
# | // CHECK-MOD: @__loadtime_comment_str = internal unnamed_addr constant [10 x i8] c"module me\00", section "__loadtime_comment"
# |               ^
# | <stdin>:1:1: note: scanning from here
# | ; ModuleID = '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/PowerPC/Output/pragma-comment-copyright-modules.cpp.tmp/copymod.cppm'
# | ^
# | <stdin>:7:18: note: possible intended match here
# | @__loadtime_comment_str_c2006861e15ea110 = weak_odr unnamed_addr constant [10 x i8] c"module me\00", section "__loadtime_comment", align 1
# |                  ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/pragma-comment-copyright-modules.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: ; ModuleID = '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/PowerPC/Output/pragma-comment-copyright-modules.cpp.tmp/copymod.cppm' 
# | check:11'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |             2: source_filename = "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGen/PowerPC/Output/pragma-comment-copyright-modules.cpp.tmp/copymod.cppm" 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             3: target datalayout = "E-m:a-p:32:32-Fi32-i64:64-n32-f64:32:64" 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             4: target triple = "powerpc-ibm-aix" 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             5:  
# | check:11'0     ~
# |             6: @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @_ZGIW7copymod, ptr null }] 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             7: @__loadtime_comment_str_c2006861e15ea110 = weak_odr unnamed_addr constant [10 x i8] c"module me\00", section "__loadtime_comment", align 1 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:11'1                      ?                                                                                                                          possible intended match
# |             8: @llvm.compiler.used = appending global [1 x ptr] [ptr @__loadtime_comment_str_c2006861e15ea110], section "llvm.metadata" 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             9:  
# | check:11'0     ~
# |            10: ; Function Attrs: noinline nounwind 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            11: define void @_ZGIW7copymod() #0 !implicit.ref !1 { 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            12: entry: 
# | check:11'0     ~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the infrastructure label.

@tonykuttai tonykuttai force-pushed the users/tonykuttai/pragma-comment-copyright-cli branch from 46d4ce4 to aaf3e32 Compare May 23, 2026 18:54
@tonykuttai tonykuttai changed the base branch from users/tonykuttai/pragma-copyright-comment-update to users/tonykuttai/ltobugfix May 23, 2026 18:55
@tonykuttai tonykuttai force-pushed the users/tonykuttai/pragma-comment-copyright-cli branch 3 times, most recently from a31b969 to 268182a Compare May 24, 2026 03:58
@tonykuttai tonykuttai force-pushed the users/tonykuttai/pragma-comment-copyright-cli branch from 268182a to 38146ce Compare May 24, 2026 04:46
@github-actions
Copy link
Copy Markdown

🪟 Windows x64 Test Results

  • 135168 tests passed
  • 3328 tests skipped
  • 5 tests failed

Failed Tests

(click on a test name to see its output)

LLVM

LLVM.LTO/PowerPC/pragma-comment-copyright-thinlto.ll
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 7
rm -rf C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp && mkdir C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp'
# note: command had no output on stdout or stderr
# executed command: mkdir 'C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 8
split-file C:\_work\llvm-project\llvm-project\llvm\test\LTO\PowerPC\pragma-comment-copyright-thinlto.ll C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp
# executed command: split-file 'C:\_work\llvm-project\llvm-project\llvm\test\LTO\PowerPC\pragma-comment-copyright-thinlto.ll' 'C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 9
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -passes='thinlto-pre-link<O2>' C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu1.ll -o - |    c:\_work\llvm-project\llvm-project\build\bin\opt.exe -module-summary -o C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu1.bc
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' '-passes=thinlto-pre-link<O2>' 'C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu1.ll' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -module-summary -o 'C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu1.bc'
# note: command had no output on stdout or stderr
# RUN: at line 11
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -passes='thinlto-pre-link<O2>' C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu2.ll -o - |    c:\_work\llvm-project\llvm-project\build\bin\opt.exe -module-summary -o C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu2.bc
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' '-passes=thinlto-pre-link<O2>' 'C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu2.ll' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -module-summary -o 'C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu2.bc'
# note: command had no output on stdout or stderr
# RUN: at line 13
c:\_work\llvm-project\llvm-project\build\bin\llvm-lto.exe --thinlto-action=thinlink -o combined C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu1.bc C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu2.bc
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-lto.exe' --thinlto-action=thinlink -o combined 'C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu1.bc' 'C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu2.bc'
# note: command had no output on stdout or stderr
# RUN: at line 14
c:\_work\llvm-project\llvm-project\build\bin\llvm-lto.exe --thinlto-action=import           --thinlto-index=combined           --exported-symbol=main             --exported-symbol=f_add            --exported-symbol=my_function         C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu2.bc -o C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu2.imported.bc
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-lto.exe' --thinlto-action=import --thinlto-index=combined --exported-symbol=main --exported-symbol=f_add --exported-symbol=my_function 'C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu2.bc' -o 'C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu2.imported.bc'
# note: command had no output on stdout or stderr
# RUN: at line 20
c:\_work\llvm-project\llvm-project\build\bin\llvm-dis.exe C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu2.imported.bc -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\LTO\PowerPC\pragma-comment-copyright-thinlto.ll --check-prefix=CHECK-TU2-IMPORTED
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-dis.exe' 'C:\_work\llvm-project\llvm-project\build\test\LTO\PowerPC\Output\pragma-comment-copyright-thinlto.ll.tmp/tu2.imported.bc' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\LTO\PowerPC\pragma-comment-copyright-thinlto.ll' --check-prefix=CHECK-TU2-IMPORTED
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\LTO\PowerPC\pragma-comment-copyright-thinlto.ll:67:28: error: CHECK-TU2-IMPORTED-NEXT: is not on the line after the previous match
# | ; CHECK-TU2-IMPORTED-NEXT: ![[FADD_MD]] = !{ptr @[[TU1_STR]]}
# |                            ^
# | <stdin>:33:1: note: 'next' match was here
# | !6 = !{ptr @__loadtime_comment_str_53817c99cb132e31}
# | ^
# | <stdin>:31:53: note: previous match ended here
# | !4 = !{ptr @__loadtime_comment_str_a93afe11c1abbb5a}
# |                                                     ^
# | <stdin>:32:1: note: non-matching line after previous match is here
# | !5 = !{i64 -2624081020897602054}
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\LTO\PowerPC\pragma-comment-copyright-thinlto.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          .
# |          .
# |          .
# |         28: !1 = !{i64 -5502398058478038803} 
# |         29: !2 = !{i32 8, !"PIC Level", i32 2} 
# |         30: !3 = !{i32 1, !"EnableSplitLTOUnit", i32 0} 
# |         31: !4 = !{ptr @__loadtime_comment_str_a93afe11c1abbb5a} 
# |         32: !5 = !{i64 -2624081020897602054} 
# |         33: !6 = !{ptr @__loadtime_comment_str_53817c99cb132e31} 
# | next:67     !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  error: match on wrong line
# |         34: !7 = !{i64 -2292188462853712368} 
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

LLVM.Other/new-pm-thinlto-prelink-defaults.ll
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 11
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -disable-verify -verify-analysis-invalidation=0 -eagerly-invalidate-analyses=0 -debug-pass-manager      -passes='thinlto-pre-link<O1>' -S C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-defaults.ll 2>&1      | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-defaults.ll --check-prefixes=CHECK-O,CHECK-O1,CHECK-O-NODIS
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -disable-verify -verify-analysis-invalidation=0 -eagerly-invalidate-analyses=0 -debug-pass-manager '-passes=thinlto-pre-link<O1>' -S 'C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-defaults.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-defaults.ll' --check-prefixes=CHECK-O,CHECK-O1,CHECK-O-NODIS
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-defaults.ll:187:17: error: CHECK-O-NEXT: is not on the line after the previous match
# | ; CHECK-O-NEXT: Running pass: LowerCommentStringPass
# |                 ^
# | <stdin>:99:1: note: 'next' match was here
# | Running pass: LowerCommentStringPass on [module]
# | ^
# | <stdin>:97:33: note: previous match ended here
# | Running pass: NameAnonGlobalPass on [module]
# |                                 ^
# | <stdin>:98:1: note: non-matching line after previous match is here
# | Running pass: AssignGUIDPass on [module]
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-defaults.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           .
# |           .
# |           .
# |          94: Running pass: GlobalDCEPass on [module] 
# |          95: Running pass: AnnotationRemarksPass on foo (7 instructions) 
# |          96: Running pass: CanonicalizeAliasesPass on [module] 
# |          97: Running pass: NameAnonGlobalPass on [module] 
# |          98: Running pass: AssignGUIDPass on [module] 
# |          99: Running pass: LowerCommentStringPass on [module] 
# | next:187     !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~              error: match on wrong line
# |         100: Running pass: PrintModulePass on [module] 
# |         101: ; ModuleID = 'C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-defaults.ll' 
# |         102: source_filename = "C:\\_work\\llvm-project\\llvm-project\\llvm\\test\\Other\\new-pm-thinlto-prelink-defaults.ll" 
# |         103:  
# |         104: declare void @bar() local_unnamed_addr 
# |           .
# |           .
# |           .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

LLVM.Other/new-pm-thinlto-prelink-pgo-defaults.ll
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\llvm-profdata.exe merge C:\_work\llvm-project\llvm-project\llvm\test\Other/Inputs/new-pm-thinlto-prelink-pgo-defaults.proftext -o C:\_work\llvm-project\llvm-project\build\test\Other\Output\new-pm-thinlto-prelink-pgo-defaults.ll.tmp.profdata
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-profdata.exe' merge 'C:\_work\llvm-project\llvm-project\llvm\test\Other/Inputs/new-pm-thinlto-prelink-pgo-defaults.proftext' -o 'C:\_work\llvm-project\llvm-project\build\test\Other\Output\new-pm-thinlto-prelink-pgo-defaults.ll.tmp.profdata'
# note: command had no output on stdout or stderr
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -disable-verify -verify-analysis-invalidation=0 -eagerly-invalidate-analyses=0 -debug-pass-manager      -pgo-kind=pgo-instr-use-pipeline -profile-file='C:\_work\llvm-project\llvm-project\build\test\Other\Output\new-pm-thinlto-prelink-pgo-defaults.ll.tmp.profdata'      -passes='thinlto-pre-link<O1>' -S C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-pgo-defaults.ll 2>&1      | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-pgo-defaults.ll --check-prefixes=CHECK-O,CHECK-O1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -disable-verify -verify-analysis-invalidation=0 -eagerly-invalidate-analyses=0 -debug-pass-manager -pgo-kind=pgo-instr-use-pipeline '-profile-file=C:\_work\llvm-project\llvm-project\build\test\Other\Output\new-pm-thinlto-prelink-pgo-defaults.ll.tmp.profdata' '-passes=thinlto-pre-link<O1>' -S 'C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-pgo-defaults.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-pgo-defaults.ll' --check-prefixes=CHECK-O,CHECK-O1
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-pgo-defaults.ll:190:17: error: CHECK-O-NEXT: is not on the line after the previous match
# | ; CHECK-O-NEXT: Running pass: LowerCommentStringPass
# |                 ^
# | <stdin>:137:1: note: 'next' match was here
# | Running pass: LowerCommentStringPass on [module]
# | ^
# | <stdin>:135:33: note: previous match ended here
# | Running pass: NameAnonGlobalPass on [module]
# |                                 ^
# | <stdin>:136:1: note: non-matching line after previous match is here
# | Running pass: AssignGUIDPass on [module]
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-pgo-defaults.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           .
# |           .
# |           .
# |         132: Running pass: GlobalDCEPass on [module] 
# |         133: Running pass: AnnotationRemarksPass on foo (7 instructions) 
# |         134: Running pass: CanonicalizeAliasesPass on [module] 
# |         135: Running pass: NameAnonGlobalPass on [module] 
# |         136: Running pass: AssignGUIDPass on [module] 
# |         137: Running pass: LowerCommentStringPass on [module] 
# | next:190     !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~              error: match on wrong line
# |         138: Running pass: PrintModulePass on [module] 
# |         139: ; ModuleID = 'C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-pgo-defaults.ll' 
# |         140: source_filename = "C:\\_work\\llvm-project\\llvm-project\\llvm\\test\\Other\\new-pm-thinlto-prelink-pgo-defaults.ll" 
# |         141:  
# |         142: declare void @bar() local_unnamed_addr 
# |           .
# |           .
# |           .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

LLVM.Other/new-pm-thinlto-prelink-samplepgo-defaults.ll
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -disable-verify -verify-analysis-invalidation=0 -eagerly-invalidate-analyses=0 -debug-pass-manager      -pgo-kind=pgo-sample-use-pipeline -profile-file='C:\_work\llvm-project\llvm-project\llvm\test\Other/Inputs/new-pm-thinlto-samplepgo-defaults.prof'      -passes='thinlto-pre-link<O1>' -S C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-samplepgo-defaults.ll 2>&1      | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-samplepgo-defaults.ll --check-prefixes=CHECK-O,CHECK-O1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -disable-verify -verify-analysis-invalidation=0 -eagerly-invalidate-analyses=0 -debug-pass-manager -pgo-kind=pgo-sample-use-pipeline '-profile-file=C:\_work\llvm-project\llvm-project\llvm\test\Other/Inputs/new-pm-thinlto-samplepgo-defaults.prof' '-passes=thinlto-pre-link<O1>' -S 'C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-samplepgo-defaults.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-samplepgo-defaults.ll' --check-prefixes=CHECK-O,CHECK-O1
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-samplepgo-defaults.ll:153:17: error: CHECK-O-NEXT: is not on the line after the previous match
# | ; CHECK-O-NEXT: Running pass: LowerCommentStringPass
# |                 ^
# | <stdin>:104:1: note: 'next' match was here
# | Running pass: LowerCommentStringPass on [module]
# | ^
# | <stdin>:102:33: note: previous match ended here
# | Running pass: NameAnonGlobalPass on [module]
# |                                 ^
# | <stdin>:103:1: note: non-matching line after previous match is here
# | Running pass: AssignGUIDPass on [module]
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-samplepgo-defaults.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           .
# |           .
# |           .
# |          99: Running pass: GlobalDCEPass on [module] 
# |         100: Running pass: AnnotationRemarksPass on foo (7 instructions) 
# |         101: Running pass: CanonicalizeAliasesPass on [module] 
# |         102: Running pass: NameAnonGlobalPass on [module] 
# |         103: Running pass: AssignGUIDPass on [module] 
# |         104: Running pass: LowerCommentStringPass on [module] 
# | next:153     !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~              error: match on wrong line
# |         105: Running pass: PrintModulePass on [module] 
# |         106: ; ModuleID = 'C:\_work\llvm-project\llvm-project\llvm\test\Other\new-pm-thinlto-prelink-samplepgo-defaults.ll' 
# |         107: source_filename = "C:\\_work\\llvm-project\\llvm-project\\llvm\\test\\Other\\new-pm-thinlto-prelink-samplepgo-defaults.ll" 
# |         108:  
# |         109: declare void @bar() local_unnamed_addr 
# |           .
# |           .
# |           .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

Clang

Clang.CodeGen/PowerPC/pragma-comment-copyright-modules.cpp
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file C:\_work\llvm-project\llvm-project\clang\test\CodeGen\PowerPC\pragma-comment-copyright-modules.cpp C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\PowerPC\Output\pragma-comment-copyright-modules.cpp.tmp
# executed command: split-file 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\PowerPC\pragma-comment-copyright-modules.cpp' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\PowerPC\Output\pragma-comment-copyright-modules.cpp.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -std=c++20 -triple powerpc-ibm-aix    -emit-module-interface C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\PowerPC\Output\pragma-comment-copyright-modules.cpp.tmp/copymod.cppm -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\PowerPC\Output\pragma-comment-copyright-modules.cpp.tmp/copymod.pcm
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -std=c++20 -triple powerpc-ibm-aix -emit-module-interface 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\PowerPC\Output\pragma-comment-copyright-modules.cpp.tmp/copymod.cppm' -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\PowerPC\Output\pragma-comment-copyright-modules.cpp.tmp/copymod.pcm'
# note: command had no output on stdout or stderr
# RUN: at line 9
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -std=c++20 -triple powerpc-ibm-aix -emit-llvm C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\PowerPC\Output\pragma-comment-copyright-modules.cpp.tmp/copymod.cppm -o -    | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\PowerPC\pragma-comment-copyright-modules.cpp --check-prefix=CHECK-MOD
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -std=c++20 -triple powerpc-ibm-aix -emit-llvm 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\PowerPC\Output\pragma-comment-copyright-modules.cpp.tmp/copymod.cppm' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\PowerPC\pragma-comment-copyright-modules.cpp' --check-prefix=CHECK-MOD
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\PowerPC\pragma-comment-copyright-modules.cpp:11:15: error: CHECK-MOD: expected string not found in input
# | // CHECK-MOD: @__loadtime_comment_str = internal unnamed_addr constant [10 x i8] c"module me\00", section "__loadtime_comment"
# |               ^
# | <stdin>:1:1: note: scanning from here
# | ; ModuleID = 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\PowerPC\Output\pragma-comment-copyright-modules.cpp.tmp/copymod.cppm'
# | ^
# | <stdin>:7:18: note: possible intended match here
# | @__loadtime_comment_str_c2006861e15ea110 = weak_odr unnamed_addr constant [10 x i8] c"module me\00", section "__loadtime_comment", align 1
# |                  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGen\PowerPC\pragma-comment-copyright-modules.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: ; ModuleID = 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\PowerPC\Output\pragma-comment-copyright-modules.cpp.tmp/copymod.cppm' 
# | check:11'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |             2: source_filename = "C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\CodeGen\\PowerPC\\Output\\pragma-comment-copyright-modules.cpp.tmp/copymod.cppm" 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             3: target datalayout = "E-m:a-p:32:32-Fi32-i64:64-n32-f64:32:64" 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             4: target triple = "powerpc-ibm-aix" 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             5:  
# | check:11'0     ~
# |             6: @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @_ZGIW7copymod, ptr null }] 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             7: @__loadtime_comment_str_c2006861e15ea110 = weak_odr unnamed_addr constant [10 x i8] c"module me\00", section "__loadtime_comment", align 1 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:11'1                      ?                                                                                                                          possible intended match
# |             8: @llvm.compiler.used = appending global [1 x ptr] [ptr @__loadtime_comment_str_c2006861e15ea110], section "llvm.metadata" 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             9:  
# | check:11'0     ~
# |            10: ; Function Attrs: noinline nounwind 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            11: define void @_ZGIW7copymod() #0 !implicit.ref !1 { 
# | check:11'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            12: entry: 
# | check:11'0     ~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the infrastructure label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant