Skip to content

Conversation

@jinhuang1102
Copy link
Contributor

@jinhuang1102 jinhuang1102 commented Oct 31, 2025

The AtomicExpandPass is responsible for lowering high-level atomic operations (like atomicrmw fadd) that are unsupported by the target hardware into a cmpxchg retry loop.

Given that we cannot empirically prove the precision branch weights, It uses the setExplicitlyUnknownBranchWeightsIfProfiled function to explicitly add "unknown" (50/50) branch weights to this branch.

This PR includes fies for the following tests:

Transforms/AtomicExpand/AArch64/atomicrmw-fp.ll
Transforms/AtomicExpand/AArch64/pcsections.ll
Transforms/AtomicExpand/AMDGPU/expand-atomic-f32-agent.ll
Transforms/AtomicExpand/AMDGPU/expand-atomic-f32-system.ll
Transforms/AtomicExpand/AMDGPU/expand-atomic-f64-agent.ll
Transforms/AtomicExpand/AMDGPU/expand-atomic-f64-system.ll
Transforms/AtomicExpand/AMDGPU/expand-atomic-rmw-nand.ll
Transforms/AtomicExpand/AMDGPU/expand-atomic-simplify-cfg-CAS-block.ll
Transforms/AtomicExpand/AMDGPU/expand-atomic-v2bf16-agent.ll
Transforms/AtomicExpand/AMDGPU/expand-atomic-v2bf16-system.ll
Transforms/AtomicExpand/AMDGPU/expand-atomic-v2f16-agent.ll
Transforms/AtomicExpand/AMDGPU/expand-atomic-v2f16-system.ll
Transforms/AtomicExpand/AMDGPU/expand-atomicrmw-fp-vector.ll
Transforms/AtomicExpand/ARM/atomicrmw-fp.ll
Transforms/AtomicExpand/LoongArch/atomicrmw-fp.ll
Transforms/AtomicExpand/Mips/atomicrmw-fp.ll
Transforms/AtomicExpand/PowerPC/atomicrmw-fp.ll
Transforms/AtomicExpand/RISCV/atomicrmw-fp.ll
Transforms/AtomicExpand/SPARC/libcalls.ll
Transforms/AtomicExpand/X86/expand-atomic-rmw-fp.ll
Transforms/AtomicExpand/X86/expand-atomic-rmw-initial-load.ll
Transforms/AtomicExpand/X86/expand-atomic-xchg-fp.ll

@llvmbot
Copy link
Member

llvmbot commented Oct 31, 2025

@llvm/pr-subscribers-backend-powerpc

@llvm/pr-subscribers-backend-risc-v

Author: Jin Huang (jinhuang1102)

Changes

The AtomicExpandPass is responsible for lowering high-level atomic operations (like atomicrmw fadd) that are unsupported by the target hardware into a cmpxchg retry loop.

Given that we cannot empirically prove the precision branch weights, It uses the setExplicitlyUnknownBranchWeightsIfProfiled function to explicitly add "unknown" (50/50) branch weights to this branch.


Patch is 2.90 MiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/165841.diff

23 Files Affected:

  • (modified) llvm/lib/CodeGen/AtomicExpandPass.cpp (+8-3)
  • (modified) llvm/test/Transforms/AtomicExpand/AArch64/atomicrmw-fp.ll (+16-16)
  • (modified) llvm/test/Transforms/AtomicExpand/AArch64/pcsections.ll (+1368-1368)
  • (modified) llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-f32-agent.ll (+847-831)
  • (modified) llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-f32-system.ll (+741-725)
  • (modified) llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-f64-agent.ll (+628-612)
  • (modified) llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-f64-system.ll (+547-531)
  • (modified) llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-rmw-nand.ll (+3-3)
  • (modified) llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-simplify-cfg-CAS-block.ll (+3-3)
  • (modified) llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-v2bf16-agent.ll (+3535-661)
  • (modified) llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-v2bf16-system.ll (+314-298)
  • (modified) llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-v2f16-agent.ll (+3534-660)
  • (modified) llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-v2f16-system.ll (+306-290)
  • (modified) llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomicrmw-fp-vector.ll (+56-46)
  • (modified) llvm/test/Transforms/AtomicExpand/ARM/atomicrmw-fp.ll (+2-2)
  • (modified) llvm/test/Transforms/AtomicExpand/LoongArch/atomicrmw-fp.ll (+8-8)
  • (modified) llvm/test/Transforms/AtomicExpand/Mips/atomicrmw-fp.ll (+2-2)
  • (modified) llvm/test/Transforms/AtomicExpand/PowerPC/atomicrmw-fp.ll (+68-87)
  • (modified) llvm/test/Transforms/AtomicExpand/RISCV/atomicrmw-fp.ll (+2-2)
  • (modified) llvm/test/Transforms/AtomicExpand/SPARC/libcalls.ll (+37-17)
  • (modified) llvm/test/Transforms/AtomicExpand/X86/expand-atomic-rmw-fp.ll (+5-5)
  • (modified) llvm/test/Transforms/AtomicExpand/X86/expand-atomic-rmw-initial-load.ll (+5-1)
  • (modified) llvm/test/Transforms/AtomicExpand/X86/expand-atomic-xchg-fp.ll (+5-5)
diff --git a/llvm/lib/CodeGen/AtomicExpandPass.cpp b/llvm/lib/CodeGen/AtomicExpandPass.cpp
index 53f1cfe24a68d..dffb69425bb31 100644
--- a/llvm/lib/CodeGen/AtomicExpandPass.cpp
+++ b/llvm/lib/CodeGen/AtomicExpandPass.cpp
@@ -38,6 +38,7 @@
 #include "llvm/IR/MDBuilder.h"
 #include "llvm/IR/MemoryModelRelaxationAnnotations.h"
 #include "llvm/IR/Module.h"
+#include "llvm/IR/ProfDataUtils.h"
 #include "llvm/IR/Type.h"
 #include "llvm/IR/User.h"
 #include "llvm/IR/Value.h"
@@ -1259,8 +1260,7 @@ Value *AtomicExpandImpl::insertRMWLLSCLoop(
   BasicBlock *BB = Builder.GetInsertBlock();
   Function *F = BB->getParent();
 
-  assert(AddrAlign >=
-             F->getDataLayout().getTypeStoreSize(ResultTy) &&
+  assert(AddrAlign >= F->getDataLayout().getTypeStoreSize(ResultTy) &&
          "Expected at least natural alignment at this point.");
 
   // Given: atomicrmw some_op iN* %addr, iN %incr ordering
@@ -1680,7 +1680,12 @@ Value *AtomicExpandImpl::insertRMWCmpXchgLoop(
 
   Loaded->addIncoming(NewLoaded, LoopBB);
 
-  Builder.CreateCondBr(Success, ExitBB, LoopBB);
+  Instruction *CondBr = Builder.CreateCondBr(Success, ExitBB, LoopBB);
+
+  // Atomic RMW expands to a cmpxchg loop, Since precise branch weights
+  // cannot be easily determined here, we mark the branch as "unknown" (50/50)
+  // to prevent misleading optimizations.
+  setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
 
   Builder.SetInsertPoint(ExitBB, ExitBB->begin());
   return NewLoaded;
diff --git a/llvm/test/Transforms/AtomicExpand/AArch64/atomicrmw-fp.ll b/llvm/test/Transforms/AtomicExpand/AArch64/atomicrmw-fp.ll
index 8ffacb9bdd5f6..fe42a5439857c 100644
--- a/llvm/test/Transforms/AtomicExpand/AArch64/atomicrmw-fp.ll
+++ b/llvm/test/Transforms/AtomicExpand/AArch64/atomicrmw-fp.ll
@@ -14,7 +14,7 @@ define float @test_atomicrmw_fadd_f32(ptr %ptr, float %value) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i32, i1 } [[TMP4]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i32, i1 } [[TMP4]], 0
 ; CHECK-NEXT:    [[TMP5]] = bitcast i32 [[NEWLOADED]] to float
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1:![0-9]+]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret float [[TMP5]]
 ;
@@ -35,7 +35,7 @@ define float @test_atomicrmw_fsub_f32(ptr %ptr, float %value) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i32, i1 } [[TMP4]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i32, i1 } [[TMP4]], 0
 ; CHECK-NEXT:    [[TMP5]] = bitcast i32 [[NEWLOADED]] to float
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret float [[TMP5]]
 ;
@@ -56,7 +56,7 @@ define float @atomicrmw_fmin_float(ptr %ptr, float %value) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i32, i1 } [[TMP5]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i32, i1 } [[TMP5]], 0
 ; CHECK-NEXT:    [[TMP6]] = bitcast i32 [[NEWLOADED]] to float
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret float [[TMP6]]
 ;
@@ -77,7 +77,7 @@ define float @atomicrmw_fmax_float(ptr %ptr, float %value) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i32, i1 } [[TMP5]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i32, i1 } [[TMP5]], 0
 ; CHECK-NEXT:    [[TMP6]] = bitcast i32 [[NEWLOADED]] to float
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret float [[TMP6]]
 ;
@@ -98,7 +98,7 @@ define double @atomicrmw_fmin_double(ptr %ptr, double %value) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i64, i1 } [[TMP5]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i64, i1 } [[TMP5]], 0
 ; CHECK-NEXT:    [[TMP6]] = bitcast i64 [[NEWLOADED]] to double
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret double [[TMP6]]
 ;
@@ -119,7 +119,7 @@ define double @atomicrmw_fmax_double(ptr %ptr, double %value) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i64, i1 } [[TMP5]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i64, i1 } [[TMP5]], 0
 ; CHECK-NEXT:    [[TMP6]] = bitcast i64 [[NEWLOADED]] to double
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret double [[TMP6]]
 ;
@@ -140,7 +140,7 @@ define float @atomicrmw_fminimum_float(ptr %ptr, float %value) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i32, i1 } [[TMP5]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i32, i1 } [[TMP5]], 0
 ; CHECK-NEXT:    [[TMP6]] = bitcast i32 [[NEWLOADED]] to float
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret float [[TMP6]]
 ;
@@ -161,7 +161,7 @@ define float @atomicrmw_fmaximum_float(ptr %ptr, float %value) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i32, i1 } [[TMP5]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i32, i1 } [[TMP5]], 0
 ; CHECK-NEXT:    [[TMP6]] = bitcast i32 [[NEWLOADED]] to float
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret float [[TMP6]]
 ;
@@ -182,7 +182,7 @@ define double @atomicrmw_fminimum_double(ptr %ptr, double %value) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i64, i1 } [[TMP5]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i64, i1 } [[TMP5]], 0
 ; CHECK-NEXT:    [[TMP6]] = bitcast i64 [[NEWLOADED]] to double
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret double [[TMP6]]
 ;
@@ -203,7 +203,7 @@ define double @atomicrmw_fmaximum_double(ptr %ptr, double %value) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i64, i1 } [[TMP5]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i64, i1 } [[TMP5]], 0
 ; CHECK-NEXT:    [[TMP6]] = bitcast i64 [[NEWLOADED]] to double
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret double [[TMP6]]
 ;
@@ -224,7 +224,7 @@ define bfloat @atomicrmw_fmaximum_bfloat(ptr %ptr, bfloat %val) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i16, i1 } [[TMP5]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i16, i1 } [[TMP5]], 0
 ; CHECK-NEXT:    [[TMP6]] = bitcast i16 [[NEWLOADED]] to bfloat
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret bfloat [[TMP6]]
 ;
@@ -245,7 +245,7 @@ define half @atomicrmw_fmaximum_half(ptr %ptr, half %val) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i16, i1 } [[TMP5]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i16, i1 } [[TMP5]], 0
 ; CHECK-NEXT:    [[TMP6]] = bitcast i16 [[NEWLOADED]] to half
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret half [[TMP6]]
 ;
@@ -266,7 +266,7 @@ define <2 x half> @atomicrmw_fmaximum_2_x_half(ptr %ptr, <2 x half> %val) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i32, i1 } [[TMP5]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i32, i1 } [[TMP5]], 0
 ; CHECK-NEXT:    [[TMP6]] = bitcast i32 [[NEWLOADED]] to <2 x half>
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret <2 x half> [[TMP6]]
 ;
@@ -287,7 +287,7 @@ define bfloat @atomicrmw_fminimum_bfloat(ptr %ptr, bfloat %val) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i16, i1 } [[TMP5]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i16, i1 } [[TMP5]], 0
 ; CHECK-NEXT:    [[TMP6]] = bitcast i16 [[NEWLOADED]] to bfloat
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret bfloat [[TMP6]]
 ;
@@ -308,7 +308,7 @@ define half @atomicrmw_fminimum_half(ptr %ptr, half %val) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i16, i1 } [[TMP5]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i16, i1 } [[TMP5]], 0
 ; CHECK-NEXT:    [[TMP6]] = bitcast i16 [[NEWLOADED]] to half
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret half [[TMP6]]
 ;
@@ -329,7 +329,7 @@ define <2 x half> @atomicrmw_fminimum_2_x_half(ptr %ptr, <2 x half> %val) {
 ; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i32, i1 } [[TMP5]], 1
 ; CHECK-NEXT:    [[NEWLOADED:%.*]] = extractvalue { i32, i1 } [[TMP5]], 0
 ; CHECK-NEXT:    [[TMP6]] = bitcast i32 [[NEWLOADED]] to <2 x half>
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret <2 x half> [[TMP6]]
 ;
diff --git a/llvm/test/Transforms/AtomicExpand/AArch64/pcsections.ll b/llvm/test/Transforms/AtomicExpand/AArch64/pcsections.ll
index c5c890559152d..5c60f21c207b9 100644
--- a/llvm/test/Transforms/AtomicExpand/AArch64/pcsections.ll
+++ b/llvm/test/Transforms/AtomicExpand/AArch64/pcsections.ll
@@ -4,7 +4,7 @@
 define i8 @atomic8_load_unordered(ptr %a) nounwind uwtable {
 ; CHECK-LABEL: @atomic8_load_unordered(
 ; CHECK-NEXT:  entry:
-; CHECK-NEXT:    [[TMP0:%.*]] = load atomic i8, ptr [[A:%.*]] unordered, align 1, !pcsections [[META0:![0-9]+]]
+; CHECK-NEXT:    [[TMP0:%.*]] = load atomic i8, ptr [[A:%.*]] unordered, align 1, !pcsections [[META1:![0-9]+]]
 ; CHECK-NEXT:    ret i8 [[TMP0]]
 ;
 entry:
@@ -15,7 +15,7 @@ entry:
 define i8 @atomic8_load_monotonic(ptr %a) nounwind uwtable {
 ; CHECK-LABEL: @atomic8_load_monotonic(
 ; CHECK-NEXT:  entry:
-; CHECK-NEXT:    [[TMP0:%.*]] = load atomic i8, ptr [[A:%.*]] monotonic, align 1, !pcsections [[META0]]
+; CHECK-NEXT:    [[TMP0:%.*]] = load atomic i8, ptr [[A:%.*]] monotonic, align 1, !pcsections [[META1]]
 ; CHECK-NEXT:    ret i8 [[TMP0]]
 ;
 entry:
@@ -26,7 +26,7 @@ entry:
 define i8 @atomic8_load_acquire(ptr %a) nounwind uwtable {
 ; CHECK-LABEL: @atomic8_load_acquire(
 ; CHECK-NEXT:  entry:
-; CHECK-NEXT:    [[TMP0:%.*]] = load atomic i8, ptr [[A:%.*]] acquire, align 1, !pcsections [[META0]]
+; CHECK-NEXT:    [[TMP0:%.*]] = load atomic i8, ptr [[A:%.*]] acquire, align 1, !pcsections [[META1]]
 ; CHECK-NEXT:    ret i8 [[TMP0]]
 ;
 entry:
@@ -37,7 +37,7 @@ entry:
 define i8 @atomic8_load_seq_cst(ptr %a) nounwind uwtable {
 ; CHECK-LABEL: @atomic8_load_seq_cst(
 ; CHECK-NEXT:  entry:
-; CHECK-NEXT:    [[TMP0:%.*]] = load atomic i8, ptr [[A:%.*]] seq_cst, align 1, !pcsections [[META0]]
+; CHECK-NEXT:    [[TMP0:%.*]] = load atomic i8, ptr [[A:%.*]] seq_cst, align 1, !pcsections [[META1]]
 ; CHECK-NEXT:    ret i8 [[TMP0]]
 ;
 entry:
@@ -48,7 +48,7 @@ entry:
 define void @atomic8_store_unordered(ptr %a) nounwind uwtable {
 ; CHECK-LABEL: @atomic8_store_unordered(
 ; CHECK-NEXT:  entry:
-; CHECK-NEXT:    store atomic i8 0, ptr [[A:%.*]] unordered, align 1, !pcsections [[META0]]
+; CHECK-NEXT:    store atomic i8 0, ptr [[A:%.*]] unordered, align 1, !pcsections [[META1]]
 ; CHECK-NEXT:    ret void
 ;
 entry:
@@ -59,7 +59,7 @@ entry:
 define void @atomic8_store_monotonic(ptr %a) nounwind uwtable {
 ; CHECK-LABEL: @atomic8_store_monotonic(
 ; CHECK-NEXT:  entry:
-; CHECK-NEXT:    store atomic i8 0, ptr [[A:%.*]] monotonic, align 1, !pcsections [[META0]]
+; CHECK-NEXT:    store atomic i8 0, ptr [[A:%.*]] monotonic, align 1, !pcsections [[META1]]
 ; CHECK-NEXT:    ret void
 ;
 entry:
@@ -70,7 +70,7 @@ entry:
 define void @atomic8_store_release(ptr %a) nounwind uwtable {
 ; CHECK-LABEL: @atomic8_store_release(
 ; CHECK-NEXT:  entry:
-; CHECK-NEXT:    store atomic i8 0, ptr [[A:%.*]] release, align 1, !pcsections [[META0]]
+; CHECK-NEXT:    store atomic i8 0, ptr [[A:%.*]] release, align 1, !pcsections [[META1]]
 ; CHECK-NEXT:    ret void
 ;
 entry:
@@ -81,7 +81,7 @@ entry:
 define void @atomic8_store_seq_cst(ptr %a) nounwind uwtable {
 ; CHECK-LABEL: @atomic8_store_seq_cst(
 ; CHECK-NEXT:  entry:
-; CHECK-NEXT:    store atomic i8 0, ptr [[A:%.*]] seq_cst, align 1, !pcsections [[META0]]
+; CHECK-NEXT:    store atomic i8 0, ptr [[A:%.*]] seq_cst, align 1, !pcsections [[META1]]
 ; CHECK-NEXT:    ret void
 ;
 entry:
@@ -92,14 +92,14 @@ entry:
 define void @atomic8_xchg_monotonic(ptr %a) nounwind uwtable {
 ; CHECK-LABEL: @atomic8_xchg_monotonic(
 ; CHECK-NEXT:  entry:
-; CHECK-NEXT:    [[TMP0:%.*]] = load i8, ptr [[A:%.*]], align 1, !pcsections [[META0]]
-; CHECK-NEXT:    br label [[ATOMICRMW_START:%.*]], !pcsections [[META0]]
+; CHECK-NEXT:    [[TMP0:%.*]] = load i8, ptr [[A:%.*]], align 1, !pcsections [[META1]]
+; CHECK-NEXT:    br label [[ATOMICRMW_START:%.*]], !pcsections [[META1]]
 ; CHECK:       atomicrmw.start:
-; CHECK-NEXT:    [[LOADED:%.*]] = phi i8 [ [[TMP0]], [[ENTRY:%.*]] ], [ [[NEWLOADED:%.*]], [[ATOMICRMW_START]] ], !pcsections [[META0]]
-; CHECK-NEXT:    [[TMP1:%.*]] = cmpxchg ptr [[A]], i8 [[LOADED]], i8 0 monotonic monotonic, align 1, !pcsections [[META0]]
-; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i8, i1 } [[TMP1]], 1, !pcsections [[META0]]
-; CHECK-NEXT:    [[NEWLOADED]] = extractvalue { i8, i1 } [[TMP1]], 0, !pcsections [[META0]]
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !pcsections [[META0]]
+; CHECK-NEXT:    [[LOADED:%.*]] = phi i8 [ [[TMP0]], [[ENTRY:%.*]] ], [ [[NEWLOADED:%.*]], [[ATOMICRMW_START]] ], !pcsections [[META1]]
+; CHECK-NEXT:    [[TMP1:%.*]] = cmpxchg ptr [[A]], i8 [[LOADED]], i8 0 monotonic monotonic, align 1, !pcsections [[META1]]
+; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i8, i1 } [[TMP1]], 1, !pcsections [[META1]]
+; CHECK-NEXT:    [[NEWLOADED]] = extractvalue { i8, i1 } [[TMP1]], 0, !pcsections [[META1]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF2:![0-9]+]], !pcsections [[META1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret void
 ;
@@ -111,14 +111,14 @@ entry:
 define void @atomic8_add_monotonic(ptr %a) nounwind uwtable {
 ; CHECK-LABEL: @atomic8_add_monotonic(
 ; CHECK-NEXT:  entry:
-; CHECK-NEXT:    [[TMP0:%.*]] = load i8, ptr [[A:%.*]], align 1, !pcsections [[META0]]
-; CHECK-NEXT:    br label [[ATOMICRMW_START:%.*]], !pcsections [[META0]]
+; CHECK-NEXT:    [[TMP0:%.*]] = load i8, ptr [[A:%.*]], align 1, !pcsections [[META1]]
+; CHECK-NEXT:    br label [[ATOMICRMW_START:%.*]], !pcsections [[META1]]
 ; CHECK:       atomicrmw.start:
-; CHECK-NEXT:    [[LOADED:%.*]] = phi i8 [ [[TMP0]], [[ENTRY:%.*]] ], [ [[NEWLOADED:%.*]], [[ATOMICRMW_START]] ], !pcsections [[META0]]
-; CHECK-NEXT:    [[TMP1:%.*]] = cmpxchg ptr [[A]], i8 [[LOADED]], i8 [[LOADED]] monotonic monotonic, align 1, !pcsections [[META0]]
-; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i8, i1 } [[TMP1]], 1, !pcsections [[META0]]
-; CHECK-NEXT:    [[NEWLOADED]] = extractvalue { i8, i1 } [[TMP1]], 0, !pcsections [[META0]]
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !pcsections [[META0]]
+; CHECK-NEXT:    [[LOADED:%.*]] = phi i8 [ [[TMP0]], [[ENTRY:%.*]] ], [ [[NEWLOADED:%.*]], [[ATOMICRMW_START]] ], !pcsections [[META1]]
+; CHECK-NEXT:    [[TMP1:%.*]] = cmpxchg ptr [[A]], i8 [[LOADED]], i8 [[LOADED]] monotonic monotonic, align 1, !pcsections [[META1]]
+; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i8, i1 } [[TMP1]], 1, !pcsections [[META1]]
+; CHECK-NEXT:    [[NEWLOADED]] = extractvalue { i8, i1 } [[TMP1]], 0, !pcsections [[META1]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF2]], !pcsections [[META1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret void
 ;
@@ -130,14 +130,14 @@ entry:
 define void @atomic8_sub_monotonic(ptr %a) nounwind uwtable {
 ; CHECK-LABEL: @atomic8_sub_monotonic(
 ; CHECK-NEXT:  entry:
-; CHECK-NEXT:    [[TMP0:%.*]] = load i8, ptr [[A:%.*]], align 1, !pcsections [[META0]]
-; CHECK-NEXT:    br label [[ATOMICRMW_START:%.*]], !pcsections [[META0]]
+; CHECK-NEXT:    [[TMP0:%.*]] = load i8, ptr [[A:%.*]], align 1, !pcsections [[META1]]
+; CHECK-NEXT:    br label [[ATOMICRMW_START:%.*]], !pcsections [[META1]]
 ; CHECK:       atomicrmw.start:
-; CHECK-NEXT:    [[LOADED:%.*]] = phi i8 [ [[TMP0]], [[ENTRY:%.*]] ], [ [[NEWLOADED:%.*]], [[ATOMICRMW_START]] ], !pcsections [[META0]]
-; CHECK-NEXT:    [[TMP1:%.*]] = cmpxchg ptr [[A]], i8 [[LOADED]], i8 [[LOADED]] monotonic monotonic, align 1, !pcsections [[META0]]
-; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i8, i1 } [[TMP1]], 1, !pcsections [[META0]]
-; CHECK-NEXT:    [[NEWLOADED]] = extractvalue { i8, i1 } [[TMP1]], 0, !pcsections [[META0]]
-; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !pcsections [[META0]]
+; CHECK-NEXT:    [[LOADED:%.*]] = phi i8 [ [[TMP0]], [[ENTRY:%.*]] ], [ [[NEWLOADED:%.*]], [[ATOMICRMW_START]] ], !pcsections [[META1]]
+; CHECK-NEXT:    [[TMP1:%.*]] = cmpxchg ptr [[A]], i8 [[LOADED]], i8 [[LOADED]] monotonic monotonic, align 1, !pcsections [[META1]]
+; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i8, i1 } [[TMP1]], 1, !pcsections [[META1]]
+; CHECK-NEXT:    [[NEWLOADED]] = extractvalue { i8, i1 } [[TMP1]], 0, !pcsections [[META1]]
+; CHECK-NEXT:    br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF2]], !pcsections [[META1]]
 ; CHECK:       atomicrmw.end:
 ; CHECK-NEXT:    ret void
 ;
@@ -149,14 +149,14 @@ entry:
 define void @atomic8_and_monotonic(ptr %a) nounwind uwtable {
 ; CHECK-LABEL: @atomic8_and_monotonic(
 ; CHECK-NEXT:  entry:
-; CHECK-NEXT:    [[TMP0:%.*]] = load i8, ptr [[A:%.*]], align 1, !pcsections [[META0]]
-; CHECK-NEXT:    br label [[ATOMICRMW_START:%.*]], !pcsections [[META0]]
+; CHECK-NEXT:    [[TMP0:%.*]] = load i8, ptr [[A:%.*]], align 1, !pcsections [[META1]]
+; CHECK-NEXT:    br label [[ATOMICRMW_START:%.*]], !pcsections [[META1]]
 ; CHECK:       atomicrmw.start:
-; CHECK-NEXT:    [[LOADED:%.*]] = phi i8 [ [[TMP0]], [[ENTRY:%.*]] ], [ [[NEWLOADED:%.*]], [[ATOMICRMW_START]] ], !pcsections [[META0]]
-; CHECK-NEXT:    [[TMP1:%.*]] = cmpxchg ptr [[A]], i8 [[LOADED]], i8 0 monotonic monotonic, align 1, !pcsections [[META0]]
-; CHECK-NEXT:    [[SUCCESS:%.*]] = extractvalue { i8, i1 } [[TMP1]], 1, !pcsections [[META0]]
-; CHECK-NEXT:    [[NEWLOADED]] = extractvalue { i8, i1 } [[TMP1]], 0, !pcse...
[truncated]

Copy link
Contributor

@arsenm arsenm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I understand this; if you're going to treat it as unknown 50/50, wouldn't that be the default without adding the metadata? In this context a 50/50 is a poor guess, since 36cb33b we set likely branch weights


assert(AddrAlign >=
F->getDataLayout().getTypeStoreSize(ResultTy) &&
assert(AddrAlign >= F->getDataLayout().getTypeStoreSize(ResultTy) &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

restore the changes. Thx

@mtrofin
Copy link
Member

mtrofin commented Oct 31, 2025

Not sure I understand this; if you're going to treat it as unknown 50/50, wouldn't that be the default without adding the metadata? In this context a 50/50 is a poor guess, since 36cb33b we set likely branch weights

see https://discourse.llvm.org/t/rfc-profile-information-propagation-unittesting/73595

@jinhuang1102 jinhuang1102 force-pushed the fixup/prof-missing-atomic-expand branch 2 times, most recently from edf9bfe to 8140097 Compare October 31, 2025 22:25
Copy link
Contributor

@boomanaiden154 boomanaiden154 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably remove the test case(s) it fixed from the profcheck-xfail.txt list?

@jinhuang1102
Copy link
Contributor Author

This should probably remove the test case(s) it fixed from the profcheck-xfail.txt list?

Thanks for letting me know! Yes, I will remove all of these expected failed tests after the PR is merged!

@jinhuang1102 jinhuang1102 force-pushed the fixup/prof-missing-atomic-expand branch from 015201c to 0366285 Compare November 4, 2025 23:13
@jinhuang1102 jinhuang1102 requested a review from arsenm November 4, 2025 23:58
@boomanaiden154
Copy link
Contributor

Thanks for letting me know! Yes, I will remove all of these expected failed tests after the PR is merged!

Is there a reason you can't update it as part of this PR?

jinhuang1102 added a commit that referenced this pull request Nov 5, 2025
As a follow-up to PR#165841, this change addresses `prof_md` metadata
loss in AtomicExpandPass when lowering `atomicrmw xchg` to a
Load-Linked/Store-Exclusive (LL/SC) loop.

This path is distinct from the LSE path addressed previously:

PR #165841 (and its tests) used `-mtriple=aarch64-linux-gnu`, which
targets a modern **ARMv8.1+** architecture. This architecture supports
**Large System Extensions (LSE)**, allowing `atomicrmw` to be lowered
directly to a more efficient hardware instruction.

This PR (and its tests) uses `-mtriple=aarch64--` or
`-mtriple=armv8-linux-gnueabihf`. This indicates an `ARMv8.0 or lower
architecture that does not support LSE`. On these targets, the pass must
fall back to synthesizing a manual LL/SC loop using the `ldaxr/stxr`
instruction pair.

Similar to previous issue, the new conditional branch was failin to
inherit the `prof_md` metadata. Theis PR correctly fix the branch
weights to the newly created branch within the LL/SC loop, ensuring
profile information is preserved.

Co-authored-by: Jin Huang <[email protected]>
@jinhuang1102 jinhuang1102 force-pushed the fixup/prof-missing-atomic-expand branch from 0cb1083 to ed77198 Compare November 5, 2025 07:49
@jinhuang1102
Copy link
Contributor Author

Thanks for letting me know! Yes, I will remove all of these expected failed tests after the PR is merged!

Is there a reason you can't update it as part of this PR?

Because not all 45 failed tests are fixed in this single PR. I will update them after all PR merged.


!0 = !{!"function_entry_count", i64 1000}
;.
; CHECK: attributes #[[ATTR0:[0-9]+]] = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manually add nocreateundeforpoison to pass the upstream test checks.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing something else was changed to infer the new attribute and your local opt binary was too old.

@boomanaiden154
Copy link
Contributor

Because not all 45 failed tests are fixed in this single PR. I will update them after all PR merged.

Can you not add the ones that do get fixed?

@jinhuang1102
Copy link
Contributor Author

Because not all 45 failed tests are fixed in this single PR. I will update them after all PR merged.

Can you not add the ones that do get fixed?

Sure! Added the fixed tests in the description.

@jinhuang1102 jinhuang1102 merged commit efa7ab0 into llvm:main Nov 5, 2025
10 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 5, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-fuzzer running on sanitizer-buildbot11 while building llvm at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/159/builds/34516

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[2/141] Generating VCSVersion.inc
[3/139] Generating VCSRevision.h
[4/66] Linking CXX shared module unittests/Passes/Plugins/DoublerPlugin.so
[5/66] Linking CXX shared module unittests/Analysis/InlineOrderPlugin.so
[6/66] Linking CXX shared module unittests/Support/DynamicLibrary/PipSqueak.so
[7/66] Linking CXX shared module unittests/Passes/Plugins/TestPlugin.so
[8/66] Linking CXX shared module unittests/Analysis/InlineAdvisorPlugin.so
[9/66] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.so
[10/66] Linking CXX executable bin/llvm-config
[11/66] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/lib/CodeGen -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/CodeGen -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/include -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:3: error: no matching function for call to 'setExplicitlyUnknownBranchWeightsIfProfiled'
 1694 |   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/ProfDataUtils.h:200:1: note: candidate function not viable: no known conversion from 'Function' to 'StringRef' for 2nd argument
  200 | setExplicitlyUnknownBranchWeightsIfProfiled(Instruction &I, StringRef PassName,
      | ^                                                           ~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
Step 7 (stage1 build all) failure: stage1 build all (failure)
...
[2/141] Generating VCSVersion.inc
[3/139] Generating VCSRevision.h
[4/66] Linking CXX shared module unittests/Passes/Plugins/DoublerPlugin.so
[5/66] Linking CXX shared module unittests/Analysis/InlineOrderPlugin.so
[6/66] Linking CXX shared module unittests/Support/DynamicLibrary/PipSqueak.so
[7/66] Linking CXX shared module unittests/Passes/Plugins/TestPlugin.so
[8/66] Linking CXX shared module unittests/Analysis/InlineAdvisorPlugin.so
[9/66] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.so
[10/66] Linking CXX executable bin/llvm-config
[11/66] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/lib/CodeGen -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/CodeGen -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/include -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:3: error: no matching function for call to 'setExplicitlyUnknownBranchWeightsIfProfiled'
 1694 |   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/ProfDataUtils.h:200:1: note: candidate function not viable: no known conversion from 'Function' to 'StringRef' for 2nd argument
  200 | setExplicitlyUnknownBranchWeightsIfProfiled(Instruction &I, StringRef PassName,
      | ^                                                           ~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
program finished with exit code 1
elapsedTime=14.330279

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 5, 2025

LLVM Buildbot has detected a new failure on builder mlir-rocm-mi200 running on mi200-buildbot while building llvm at step 6 "build-check-mlir-build-only".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/177/builds/23762

Here is the relevant piece of the build log for the reference
Step 6 (build-check-mlir-build-only) failure: build (failure)
...
11.776 [560/30/4646] Linking CXX static library lib/libMLIRTestIRDLToCppDialect.a
11.783 [560/29/4647] Linking CXX static library lib/libMLIRAffineTransformsTestPasses.a
11.785 [560/28/4648] Linking CXX static library lib/libMLIRTestTransforms.a
11.791 [560/27/4649] Linking CXX static library lib/libMLIRTestAnalysis.a
11.798 [560/26/4650] Linking CXX static library lib/libMLIRTestIR.a
12.015 [560/25/4651] Building X86GenDAGISel.inc...
12.217 [560/24/4652] Linking CXX executable tools/mlir/unittests/TableGen/MLIRTableGenTests
12.254 [560/23/4653] Linking CXX executable tools/mlir/unittests/IR/MLIRIRTests
12.284 [560/22/4654] Linking CXX executable tools/mlir/unittests/Parser/MLIRParserTests
12.293 [560/21/4655] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vol/worker/mi200-buildbot/mlir-rocm-mi200/build/lib/CodeGen -I/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/lib/CodeGen -I/vol/worker/mi200-buildbot/mlir-rocm-mi200/build/include -I/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:3: error: no matching function for call to 'setExplicitlyUnknownBranchWeightsIfProfiled'
 1694 |   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include/llvm/IR/ProfDataUtils.h:200:1: note: candidate function not viable: no known conversion from 'Function' to 'StringRef' for 2nd argument
  200 | setExplicitlyUnknownBranchWeightsIfProfiled(Instruction &I, StringRef PassName,
      | ^                                                           ~~~~~~~~~~~~~~~~~~
1 error generated.
14.292 [560/20/4656] Building X86GenSubtargetInfo.inc...
14.722 [560/19/4657] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
16.790 [560/18/4658] Building X86GenInstrInfo.inc...
21.649 [560/17/4659] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
28.561 [560/16/4660] Building AMDGPUGenMCPseudoLowering.inc...
29.080 [560/15/4661] Building AMDGPUGenRegBankGICombiner.inc...
29.386 [560/14/4662] Building AMDGPUGenPostLegalizeGICombiner.inc...
29.530 [560/13/4663] Building AMDGPUGenPreLegalizeGICombiner.inc...
30.121 [560/12/4664] Building AMDGPUGenDisassemblerTables.inc...
30.234 [560/11/4665] Building AMDGPUGenMCCodeEmitter.inc...
30.340 [560/10/4666] Building AMDGPUGenSubtargetInfo.inc...
31.154 [560/9/4667] Building AMDGPUGenSearchableTables.inc...
46.229 [560/8/4668] Building AMDGPUGenCallingConv.inc...
47.254 [560/7/4669] Building AMDGPUGenAsmWriter.inc...
49.903 [560/6/4670] Building AMDGPUGenGlobalISel.inc...
50.294 [560/5/4671] Building AMDGPUGenDAGISel.inc...
50.429 [560/4/4672] Building AMDGPUGenInstrInfo.inc...
65.408 [560/3/4673] Building AMDGPUGenAsmMatcher.inc...
70.025 [560/2/4674] Building AMDGPUGenRegisterInfo.inc...
75.405 [560/1/4675] Building AMDGPUGenRegisterBank.inc...
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 5, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-aarch64-darwin running on doug-worker-4 while building llvm at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/30375

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
12.355 [2546/14/3759] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/CompileOnDemandLayer.cpp.o
12.357 [2545/14/3760] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/CompileUtils.cpp.o
12.358 [2544/14/3761] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/Core.cpp.o
12.360 [2543/14/3762] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/DebugObjectManagerPlugin.cpp.o
12.362 [2542/14/3763] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/EHFrameRegistrationPlugin.cpp.o
12.364 [2541/14/3764] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/EPCDebugObjectRegistrar.cpp.o
12.365 [2540/14/3765] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/EPCDynamicLibrarySearchGenerator.cpp.o
12.372 [2539/14/3766] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/EPCGenericDylibManager.cpp.o
12.373 [2538/14/3767] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/EPCGenericRTDyldMemoryManager.cpp.o
12.374 [2537/14/3768] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: [code=1] lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /opt/homebrew/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/Users/buildbot/buildbot-root/aarch64-darwin/build/lib/CodeGen -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/lib/CodeGen -I/Users/buildbot/buildbot-root/aarch64-darwin/build/include -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include -isystem /opt/homebrew/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -O3 -DNDEBUG -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:3: error: no matching function for call to 'setExplicitlyUnknownBranchWeightsIfProfiled'
  setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include/llvm/IR/ProfDataUtils.h:200:1: note: candidate function not viable: no known conversion from 'Function' to 'StringRef' for 2nd argument
setExplicitlyUnknownBranchWeightsIfProfiled(Instruction &I, StringRef PassName,
^
1 error generated.
12.376 [2537/13/3769] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/EPCGenericJITLinkMemoryManager.cpp.o
12.380 [2537/12/3770] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/ExecutorResolutionGenerator.cpp.o
12.385 [2537/11/3771] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/EPCIndirectionUtils.cpp.o
12.386 [2537/10/3772] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/ExecutionUtils.cpp.o
12.387 [2537/9/3773] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/InProcessMemoryAccess.cpp.o
12.387 [2537/8/3774] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/ObjectFileInterface.cpp.o
12.388 [2537/7/3775] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/GetDylibInterface.cpp.o
12.391 [2537/6/3776] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/IndirectionUtils.cpp.o
12.393 [2537/5/3777] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/IRCompileLayer.cpp.o
12.394 [2537/4/3778] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/IRTransformLayer.cpp.o
14.560 [2537/3/3779] Building AArch64GenSubtargetInfo.inc...
16.577 [2537/2/3780] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
17.317 [2537/1/3781] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

// Atomic RMW expands to a cmpxchg loop, Since precise branch weights
// cannot be easily determined here, we mark the branch as "unknown" (50/50)
// to prevent misleading optimizations.
setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
Copy link
Member

@tgymnich tgymnich Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, DEBUG_TYPE, *F);

The argument order seems wrong. (was changed 2h ago #166032)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Tim!

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 5, 2025

LLVM Buildbot has detected a new failure on builder amdgpu-offload-rhel-8-cmake-build-only running on rocm-docker-rhel-8 while building llvm at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/204/builds/27054

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[2435/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/GsymContext.cpp.o
[2436/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/GsymReader.cpp.o
[2437/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/InlineInfo.cpp.o
[2438/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/LineTable.cpp.o
[2439/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/LookupResult.cpp.o
[2440/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/CallSiteInfo.cpp.o
[2441/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/MergedFunctionsInfo.cpp.o
[2442/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/ObjectFileTransformer.cpp.o
[2443/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/ExtractRanges.cpp.o
[2444/8174] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:24:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
                                              ^~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
       RTLIB::Unsupported};
                         ^
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp: In static member function ‘static llvm::Value* {anonymous}::AtomicExpandImpl::insertRMWCmpXchgLoop(llvm::IRBuilderBase&, llvm::Type*, llvm::Value*, llvm::Align, llvm::AtomicOrdering, llvm::SyncScope::ID, llvm::function_ref<llvm::Value*(llvm::IRBuilderBase&, llvm::Value*)>, llvm::CreateCmpXchgInstFun, llvm::Instruction*)’:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:56: error: could not convert ‘* F’ from ‘llvm::Function’ to ‘llvm::StringRef’
   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
                                                        ^~
[2445/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o
[2446/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o
[2447/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o
[2448/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o
[2449/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o
[2450/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o
[2451/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o
[2452/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o
[2453/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o
[2454/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o
[2455/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o
[2456/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o
[2457/8174] Building X86GenInstrInfo.inc...
[2458/8174] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/IRSymtab.cpp.o
[2459/8174] Building AMDGPUGenRegBankGICombiner.inc...
[2460/8174] Building AMDGPUGenMCPseudoLowering.inc...
[2461/8174] Building AMDGPUGenPreLegalizeGICombiner.inc...
[2462/8174] Building AMDGPUGenMCCodeEmitter.inc...
[2463/8174] Building AMDGPUGenPostLegalizeGICombiner.inc...
[2464/8174] Building AMDGPUGenDisassemblerTables.inc...
[2465/8174] Building AMDGPUGenSubtargetInfo.inc...
[2466/8174] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
[2467/8174] Building AMDGPUGenSearchableTables.inc...
[2468/8174] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
Step 7 (build cmake config) failure: build cmake config (failure)
...
[2435/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/GsymContext.cpp.o
[2436/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/GsymReader.cpp.o
[2437/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/InlineInfo.cpp.o
[2438/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/LineTable.cpp.o
[2439/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/LookupResult.cpp.o
[2440/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/CallSiteInfo.cpp.o
[2441/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/MergedFunctionsInfo.cpp.o
[2442/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/ObjectFileTransformer.cpp.o
[2443/8174] Building CXX object lib/DebugInfo/GSYM/CMakeFiles/LLVMDebugInfoGSYM.dir/ExtractRanges.cpp.o
[2444/8174] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:24:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
                                              ^~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
       RTLIB::Unsupported};
                         ^
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp: In static member function ‘static llvm::Value* {anonymous}::AtomicExpandImpl::insertRMWCmpXchgLoop(llvm::IRBuilderBase&, llvm::Type*, llvm::Value*, llvm::Align, llvm::AtomicOrdering, llvm::SyncScope::ID, llvm::function_ref<llvm::Value*(llvm::IRBuilderBase&, llvm::Value*)>, llvm::CreateCmpXchgInstFun, llvm::Instruction*)’:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:56: error: could not convert ‘* F’ from ‘llvm::Function’ to ‘llvm::StringRef’
   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
                                                        ^~
[2445/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o
[2446/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o
[2447/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o
[2448/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o
[2449/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o
[2450/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o
[2451/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o
[2452/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o
[2453/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o
[2454/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o
[2455/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o
[2456/8174] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o
[2457/8174] Building X86GenInstrInfo.inc...
[2458/8174] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/IRSymtab.cpp.o
[2459/8174] Building AMDGPUGenRegBankGICombiner.inc...
[2460/8174] Building AMDGPUGenMCPseudoLowering.inc...
[2461/8174] Building AMDGPUGenPreLegalizeGICombiner.inc...
[2462/8174] Building AMDGPUGenMCCodeEmitter.inc...
[2463/8174] Building AMDGPUGenPostLegalizeGICombiner.inc...
[2464/8174] Building AMDGPUGenDisassemblerTables.inc...
[2465/8174] Building AMDGPUGenSubtargetInfo.inc...
[2466/8174] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
[2467/8174] Building AMDGPUGenSearchableTables.inc...
[2468/8174] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 5, 2025

LLVM Buildbot has detected a new failure on builder amdgpu-offload-ubuntu-22-cmake-build-only running on rocm-docker-ubu-22 while building llvm at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/203/builds/28242

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[3249/8174] Building FunctionInterfaces.h.inc...
[3250/8174] Building FunctionInterfaces.cpp.inc...
[3251/8174] Building BuiltinAttributeInterfaces.cpp.inc...
[3252/8174] Building BuiltinAttributeInterfaces.h.inc...
[3253/8174] Building IndexingMapOpInterface.cpp.inc...
[3254/8174] Building IndexingMapOpInterface.h.inc...
[3255/8174] Building InferIntRangeInterface.h.inc...
[3256/8174] Building InferIntRangeInterface.cpp.inc...
[3257/8174] Building InferTypeOpInterface.cpp.inc...
[3258/8174] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
In file included from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:24:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp: In static member function ‘static llvm::Value* {anonymous}::AtomicExpandImpl::insertRMWCmpXchgLoop(llvm::IRBuilderBase&, llvm::Type*, llvm::Value*, llvm::Align, llvm::AtomicOrdering, llvm::SyncScope::ID, llvm::function_ref<llvm::Value*(llvm::IRBuilderBase&, llvm::Value*)>, llvm::CreateCmpXchgInstFun, llvm::Instruction*)’:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:56: error: could not convert ‘* F’ from ‘llvm::Function’ to ‘llvm::StringRef’
 1694 |   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
      |                                                        ^~
      |                                                        |
      |                                                        llvm::Function
[3259/8174] Building LoopLikeInterface.cpp.inc...
[3260/8174] Building BuiltinDialect.cpp.inc...
[3261/8174] Building BuiltinDialect.h.inc...
[3262/8174] Building InferTypeOpInterface.h.inc...
[3263/8174] Building LoopLikeInterface.h.inc...
[3264/8174] Linking CXX shared library lib/libLLVMCore.so.22.0git
[3265/8174] Building MemOpInterfaces.cpp.inc...
[3266/8174] Building ParallelCombiningOpInterface.cpp.inc...
[3267/8174] Linking CXX shared library lib/libLLVMSPIRVInfo.so.22.0git
[3268/8174] Linking CXX shared library lib/libLLVMMCDisassembler.so.22.0git
[3269/8174] Linking CXX shared library lib/libLLVMDWARFCFIChecker.so.22.0git
[3270/8174] Building X86GenInstrInfo.inc...
[3271/8174] Linking CXX shared library lib/libLLVMMCA.so.22.0git
[3272/8174] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/IRSymtab.cpp.o
[3273/8174] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
[3274/8174] Building AMDGPUGenRegBankGICombiner.inc...
[3275/8174] Building AMDGPUGenMCPseudoLowering.inc...
[3276/8174] Building AMDGPUGenPreLegalizeGICombiner.inc...
[3277/8174] Building AMDGPUGenPostLegalizeGICombiner.inc...
[3278/8174] Building AMDGPUGenDisassemblerTables.inc...
[3279/8174] Building AMDGPUGenSubtargetInfo.inc...
[3280/8174] Building AMDGPUGenMCCodeEmitter.inc...
[3281/8174] Building AMDGPUGenSearchableTables.inc...
Step 7 (build cmake config) failure: build cmake config (failure)
...
[3249/8174] Building FunctionInterfaces.h.inc...
[3250/8174] Building FunctionInterfaces.cpp.inc...
[3251/8174] Building BuiltinAttributeInterfaces.cpp.inc...
[3252/8174] Building BuiltinAttributeInterfaces.h.inc...
[3253/8174] Building IndexingMapOpInterface.cpp.inc...
[3254/8174] Building IndexingMapOpInterface.h.inc...
[3255/8174] Building InferIntRangeInterface.h.inc...
[3256/8174] Building InferIntRangeInterface.cpp.inc...
[3257/8174] Building InferTypeOpInterface.cpp.inc...
[3258/8174] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
In file included from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:24:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp: In static member function ‘static llvm::Value* {anonymous}::AtomicExpandImpl::insertRMWCmpXchgLoop(llvm::IRBuilderBase&, llvm::Type*, llvm::Value*, llvm::Align, llvm::AtomicOrdering, llvm::SyncScope::ID, llvm::function_ref<llvm::Value*(llvm::IRBuilderBase&, llvm::Value*)>, llvm::CreateCmpXchgInstFun, llvm::Instruction*)’:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:56: error: could not convert ‘* F’ from ‘llvm::Function’ to ‘llvm::StringRef’
 1694 |   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
      |                                                        ^~
      |                                                        |
      |                                                        llvm::Function
[3259/8174] Building LoopLikeInterface.cpp.inc...
[3260/8174] Building BuiltinDialect.cpp.inc...
[3261/8174] Building BuiltinDialect.h.inc...
[3262/8174] Building InferTypeOpInterface.h.inc...
[3263/8174] Building LoopLikeInterface.h.inc...
[3264/8174] Linking CXX shared library lib/libLLVMCore.so.22.0git
[3265/8174] Building MemOpInterfaces.cpp.inc...
[3266/8174] Building ParallelCombiningOpInterface.cpp.inc...
[3267/8174] Linking CXX shared library lib/libLLVMSPIRVInfo.so.22.0git
[3268/8174] Linking CXX shared library lib/libLLVMMCDisassembler.so.22.0git
[3269/8174] Linking CXX shared library lib/libLLVMDWARFCFIChecker.so.22.0git
[3270/8174] Building X86GenInstrInfo.inc...
[3271/8174] Linking CXX shared library lib/libLLVMMCA.so.22.0git
[3272/8174] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/IRSymtab.cpp.o
[3273/8174] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
[3274/8174] Building AMDGPUGenRegBankGICombiner.inc...
[3275/8174] Building AMDGPUGenMCPseudoLowering.inc...
[3276/8174] Building AMDGPUGenPreLegalizeGICombiner.inc...
[3277/8174] Building AMDGPUGenPostLegalizeGICombiner.inc...
[3278/8174] Building AMDGPUGenDisassemblerTables.inc...
[3279/8174] Building AMDGPUGenSubtargetInfo.inc...
[3280/8174] Building AMDGPUGenMCCodeEmitter.inc...
[3281/8174] Building AMDGPUGenSearchableTables.inc...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 5, 2025

LLVM Buildbot has detected a new failure on builder amdgpu-offload-rhel-9-cmake-build-only running on rocm-docker-rhel-9 while building llvm at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/205/builds/27033

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[3115/8174] Building TensorTransformOps.cpp.inc...
[3116/8174] Building TensorOps.cpp.inc...
[3117/8174] Building SPIRVCapabilityImplication.inc...
[3118/8174] Building TosaOps.cpp.inc...
[3119/8174] Building SPIRVEnumAvailability.cpp.inc...
[3120/8174] Building TosaOpsDialect.cpp.inc...
[3121/8174] Building TosaOpsDialect.h.inc...
[3122/8174] Building TosaOpsTypes.h.inc...
[3123/8174] Building SPIRVEnumAvailability.h.inc...
[3124/8174] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:24:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp: In static member function ‘static llvm::Value* {anonymous}::AtomicExpandImpl::insertRMWCmpXchgLoop(llvm::IRBuilderBase&, llvm::Type*, llvm::Value*, llvm::Align, llvm::AtomicOrdering, llvm::SyncScope::ID, llvm::function_ref<llvm::Value*(llvm::IRBuilderBase&, llvm::Value*)>, llvm::CreateCmpXchgInstFun, llvm::Instruction*)’:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:56: error: could not convert ‘* F’ from ‘llvm::Function’ to ‘llvm::StringRef’
 1694 |   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
      |                                                        ^~
      |                                                        |
      |                                                        llvm::Function
[3125/8174] Building SPIRVOps.cpp.inc...
[3126/8174] Building TosaInterfaces.h.inc...
[3127/8174] Building SPIRVOps.h.inc...
[3128/8174] Building TosaInterfaces.cpp.inc...
[3129/8174] Building TosaOpsTypes.cpp.inc...
[3130/8174] Building TosaAttributes.cpp.inc...
[3131/8174] Building TosaOps.h.inc...
[3132/8174] Building TosaAttributes.h.inc...
[3133/8174] Building TosaOpsTypesBase.cpp.inc...
[3134/8174] Building Passes.h.inc...
[3135/8174] Building TosaOpsTypesBase.h.inc...
[3136/8174] Building SPIRVAvailability.cpp.inc...
[3137/8174] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/IRSymtab.cpp.o
[3138/8174] Building X86GenInstrInfo.inc...
[3139/8174] Building AMDGPUGenMCPseudoLowering.inc...
[3140/8174] Building AMDGPUGenPreLegalizeGICombiner.inc...
[3141/8174] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
[3142/8174] Building AMDGPUGenPostLegalizeGICombiner.inc...
[3143/8174] Building AMDGPUGenMCCodeEmitter.inc...
[3144/8174] Building AMDGPUGenRegBankGICombiner.inc...
[3145/8174] Building AMDGPUGenSubtargetInfo.inc...
[3146/8174] Building AMDGPUGenDisassemblerTables.inc...
[3147/8174] Building AMDGPUGenSearchableTables.inc...
Step 7 (build cmake config) failure: build cmake config (failure)
...
[3115/8174] Building TensorTransformOps.cpp.inc...
[3116/8174] Building TensorOps.cpp.inc...
[3117/8174] Building SPIRVCapabilityImplication.inc...
[3118/8174] Building TosaOps.cpp.inc...
[3119/8174] Building SPIRVEnumAvailability.cpp.inc...
[3120/8174] Building TosaOpsDialect.cpp.inc...
[3121/8174] Building TosaOpsDialect.h.inc...
[3122/8174] Building TosaOpsTypes.h.inc...
[3123/8174] Building SPIRVEnumAvailability.h.inc...
[3124/8174] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:24:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp: In static member function ‘static llvm::Value* {anonymous}::AtomicExpandImpl::insertRMWCmpXchgLoop(llvm::IRBuilderBase&, llvm::Type*, llvm::Value*, llvm::Align, llvm::AtomicOrdering, llvm::SyncScope::ID, llvm::function_ref<llvm::Value*(llvm::IRBuilderBase&, llvm::Value*)>, llvm::CreateCmpXchgInstFun, llvm::Instruction*)’:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:56: error: could not convert ‘* F’ from ‘llvm::Function’ to ‘llvm::StringRef’
 1694 |   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
      |                                                        ^~
      |                                                        |
      |                                                        llvm::Function
[3125/8174] Building SPIRVOps.cpp.inc...
[3126/8174] Building TosaInterfaces.h.inc...
[3127/8174] Building SPIRVOps.h.inc...
[3128/8174] Building TosaInterfaces.cpp.inc...
[3129/8174] Building TosaOpsTypes.cpp.inc...
[3130/8174] Building TosaAttributes.cpp.inc...
[3131/8174] Building TosaOps.h.inc...
[3132/8174] Building TosaAttributes.h.inc...
[3133/8174] Building TosaOpsTypesBase.cpp.inc...
[3134/8174] Building Passes.h.inc...
[3135/8174] Building TosaOpsTypesBase.h.inc...
[3136/8174] Building SPIRVAvailability.cpp.inc...
[3137/8174] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/IRSymtab.cpp.o
[3138/8174] Building X86GenInstrInfo.inc...
[3139/8174] Building AMDGPUGenMCPseudoLowering.inc...
[3140/8174] Building AMDGPUGenPreLegalizeGICombiner.inc...
[3141/8174] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
[3142/8174] Building AMDGPUGenPostLegalizeGICombiner.inc...
[3143/8174] Building AMDGPUGenMCCodeEmitter.inc...
[3144/8174] Building AMDGPUGenRegBankGICombiner.inc...
[3145/8174] Building AMDGPUGenSubtargetInfo.inc...
[3146/8174] Building AMDGPUGenDisassemblerTables.inc...
[3147/8174] Building AMDGPUGenSearchableTables.inc...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 5, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-win-fast running on as-builder-3 while building llvm at step 6 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/2/builds/37654

Here is the relevant piece of the build log for the reference
Step 6 (build-unified-tree) failure: build (failure)
...
[1450/4339] Building CXX object lib\Transforms\IPO\CMakeFiles\LLVMipo.dir\PartialInlining.cpp.obj
[1451/4339] Building CXX object lib\Transforms\IPO\CMakeFiles\LLVMipo.dir\StripSymbols.cpp.obj
[1452/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\Interval.cpp.obj
[1453/4339] Building CXX object lib\Transforms\Coroutines\CMakeFiles\LLVMCoroutines.dir\CoroConditionalWrapper.cpp.obj
[1454/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\LoadStoreVectorizer.cpp.obj
[1455/4339] Building CXX object lib\Transforms\Coroutines\CMakeFiles\LLVMCoroutines.dir\Coroutines.cpp.obj
[1456/4339] Building CXX object lib\Transforms\ObjCARC\CMakeFiles\LLVMObjCARCOpts.dir\ProvenanceAnalysis.cpp.obj
[1457/4339] Building CXX object lib\Transforms\ObjCARC\CMakeFiles\LLVMObjCARCOpts.dir\DependencyAnalysis.cpp.obj
[1458/4339] Building CXX object lib\Transforms\ObjCARC\CMakeFiles\LLVMObjCARCOpts.dir\ObjCARCContract.cpp.obj
[1459/4339] Building CXX object lib\CodeGen\CMakeFiles\LLVMCodeGen.dir\AtomicExpandPass.cpp.obj
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.obj 
C:\ninja\ccache.exe C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\cl.exe  /nologo /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\lib\CodeGen -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\lib\CodeGen -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\include -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw /O2 /Ob2 /DNDEBUG -MD  /EHs-c- /GR- -std:c++17 /showIncludes /Folib\CodeGen\CMakeFiles\LLVMCodeGen.dir\AtomicExpandPass.cpp.obj /Fdlib\CodeGen\CMakeFiles\LLVMCodeGen.dir\LLVMCodeGen.pdb /FS -c C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\lib\CodeGen\AtomicExpandPass.cpp
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\lib\CodeGen\AtomicExpandPass.cpp(1694): error C2664: 'void llvm::setExplicitlyUnknownBranchWeightsIfProfiled(llvm::Instruction &,llvm::StringRef,const llvm::Function *)': cannot convert argument 2 from 'llvm::Function' to 'llvm::StringRef'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\lib\CodeGen\AtomicExpandPass.cpp(1694): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\include\llvm/IR/ProfDataUtils.h(200): note: see declaration of 'llvm::setExplicitlyUnknownBranchWeightsIfProfiled'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\lib\CodeGen\AtomicExpandPass.cpp(1694): note: while trying to match the argument list '(llvm::Instruction, llvm::Function, const char [14])'
[1460/4339] Building CXX object lib\Transforms\ObjCARC\CMakeFiles\LLVMObjCARCOpts.dir\PtrState.cpp.obj
[1461/4339] Building CXX object lib\Transforms\IPO\CMakeFiles\LLVMipo.dir\SampleProfileProbe.cpp.obj
[1462/4339] Building CXX object lib\Transforms\ObjCARC\CMakeFiles\LLVMObjCARCOpts.dir\ObjCARCOpts.cpp.obj
[1463/4339] Building CXX object lib\Transforms\IPO\CMakeFiles\LLVMipo.dir\SCCP.cpp.obj
[1464/4339] Building CXX object lib\Transforms\ObjCARC\CMakeFiles\LLVMObjCARCOpts.dir\ObjCARC.cpp.obj
[1465/4339] Building CXX object lib\Transforms\IPO\CMakeFiles\LLVMipo.dir\OpenMPOpt.cpp.obj
[1466/4339] Building CXX object lib\Transforms\IPO\CMakeFiles\LLVMipo.dir\SampleProfileMatcher.cpp.obj
[1467/4339] Building CXX object lib\Transforms\IPO\CMakeFiles\LLVMipo.dir\SampleProfile.cpp.obj
[1468/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\LoopIdiomVectorize.cpp.obj
[1469/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\VPlanSLP.cpp.obj
[1470/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\VPlan.cpp.obj
[1471/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\VectorCombine.cpp.obj
[1472/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\VPlanUtils.cpp.obj
[1473/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\VPlanAnalysis.cpp.obj
[1474/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\VPlanUnroll.cpp.obj
[1475/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\VPlanRecipes.cpp.obj
[1476/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\VPlanVerifier.cpp.obj
[1477/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\LoopVectorizationLegality.cpp.obj
[1478/4339] Building CXX object lib\Transforms\IPO\CMakeFiles\LLVMipo.dir\WholeProgramDevirt.cpp.obj
[1479/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\DependencyGraph.cpp.obj
[1480/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\InstrMaps.cpp.obj
[1481/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\VecUtils.cpp.obj
[1482/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\Legality.cpp.obj
[1483/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\SandboxVectorizerPassBuilder.cpp.obj
[1484/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\VPlanPredicator.cpp.obj
[1485/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\Passes\RegionsFromBBs.cpp.obj
[1486/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\Passes\RegionsFromMetadata.cpp.obj
[1487/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SLPVectorizer.cpp.obj
[1488/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\Passes\PackReuse.cpp.obj
[1489/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\Passes\TransactionAcceptOrRevert.cpp.obj
[1490/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\SandboxVectorizer\Passes\BottomUpVec.cpp.obj
[1491/4339] Building CXX object lib\Transforms\IPO\CMakeFiles\LLVMipo.dir\ThinLTOBitcodeWriter.cpp.obj
[1492/4339] Building CXX object lib\Transforms\Vectorize\CMakeFiles\LLVMVectorize.dir\LoopVectorize.cpp.obj

@nico
Copy link
Contributor

nico commented Nov 5, 2025

#165841 (review) (earlier on this PR) links to what fixed the build failures.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 5, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-ubuntu-fast running on sie-linux-worker while building llvm at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/39438

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
4.703 [48/13/88] Linking CXX executable bin/clang-reorder-fields
4.761 [48/12/89] Linking CXX executable bin/find-all-symbols
4.790 [48/11/90] Linking CXX executable bin/clang-installapi
4.854 [48/10/91] Linking CXX executable bin/clang-refactor
4.946 [48/9/92] Linking CXX executable bin/clang-move
4.990 [48/8/93] Linking CXX executable bin/pp-trace
5.006 [48/7/94] Linking CXX executable bin/clang-include-cleaner
5.011 [48/6/95] Linking CXX executable bin/clang-query
5.034 [48/5/96] Linking CXX executable bin/tool-template
5.039 [48/4/97] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/g++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/CodeGen -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/lib/CodeGen -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
In file included from /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:24:
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp: In static member function ‘static llvm::Value* {anonymous}::AtomicExpandImpl::insertRMWCmpXchgLoop(llvm::IRBuilderBase&, llvm::Type*, llvm::Value*, llvm::Align, llvm::AtomicOrdering, llvm::SyncScope::ID, llvm::function_ref<llvm::Value*(llvm::IRBuilderBase&, llvm::Value*)>, llvm::CreateCmpXchgInstFun, llvm::Instruction*)’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:56: error: could not convert ‘* F’ from ‘llvm::Function’ to ‘llvm::StringRef’
 1694 |   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
      |                                                        ^~
      |                                                        |
      |                                                        llvm::Function
6.883 [48/3/98] Linking CXX executable bin/clang-tidy
13.376 [48/2/99] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
In file included from /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:62:
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^
14.532 [48/1/100] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 5, 2025

LLVM Buildbot has detected a new failure on builder ml-opt-dev-x86-64 running on ml-opt-dev-x86-64-b2 while building llvm at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/137/builds/28490

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
23.477 [1952/64/1943] Building CXX object lib/ExecutionEngine/JITLink/CMakeFiles/LLVMJITLink.dir/MachOLinkGraphBuilder.cpp.o
23.478 [1951/64/1944] Building CXX object lib/ExecutionEngine/JITLink/CMakeFiles/LLVMJITLink.dir/ELF.cpp.o
23.480 [1950/64/1945] Building CXX object lib/ExecutionEngine/JITLink/CMakeFiles/LLVMJITLink.dir/ELFLinkGraphBuilder.cpp.o
23.492 [1949/64/1946] Building CXX object lib/ExecutionEngine/JITLink/CMakeFiles/LLVMJITLink.dir/ELF_aarch32.cpp.o
23.494 [1948/64/1947] Building CXX object lib/ExecutionEngine/JITLink/CMakeFiles/LLVMJITLink.dir/ELF_aarch64.cpp.o
23.512 [1947/64/1948] Building CXX object lib/ExecutionEngine/JITLink/CMakeFiles/LLVMJITLink.dir/ELF_loongarch.cpp.o
23.514 [1946/64/1949] Building CXX object lib/ExecutionEngine/JITLink/CMakeFiles/LLVMJITLink.dir/ELF_ppc64.cpp.o
23.535 [1945/64/1950] Building CXX object lib/ExecutionEngine/JITLink/CMakeFiles/LLVMJITLink.dir/ELF_riscv.cpp.o
23.537 [1944/64/1951] Building CXX object lib/ExecutionEngine/JITLink/CMakeFiles/LLVMJITLink.dir/ELF_x86.cpp.o
23.545 [1943/64/1952] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
ccache /usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/ml-opt-dev-x86-64-b1/build/lib/CodeGen -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/CodeGen -I/b/ml-opt-dev-x86-64-b1/build/include -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include -isystem /tmp/tflitebuild/tensorflow/include -isystem /tmp/tflitebuild/eigen/include/eigen3 -isystem /tmp/tflitebuild/abseil-cpp/include -isystem /tmp/tflitebuild/flatbuffers/include -isystem /tmp/tflitebuild/gemmlowp/include/gemmlowp -isystem /tmp/tflitebuild/ml_dtypes/src/ml_dtypes -isystem /tmp/tflitebuild/ml_dtypes/src/ml_dtypes/ml_dtypes -isystem /tmp/tflitebuild/ruy/include -isystem /tmp/tflitebuild/cpuinfo/include -isystem /tmp/tflitebuild/ARM_NEON_2_x86_SSE/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -DEIGEN_NEON_GEBP_NR=4 -DTFL_STATIC_LIBRARY_BUILD -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:3: error: no matching function for call to 'setExplicitlyUnknownBranchWeightsIfProfiled'
 1694 |   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/IR/ProfDataUtils.h:200:1: note: candidate function not viable: no known conversion from 'Function' to 'StringRef' for 2nd argument
  200 | setExplicitlyUnknownBranchWeightsIfProfiled(Instruction &I, StringRef PassName,
      | ^                                                           ~~~~~~~~~~~~~~~~~~
1 error generated.
23.545 [1943/63/1953] Building CXX object lib/DebugInfo/Symbolize/CMakeFiles/LLVMSymbolize.dir/SymbolizableObjectFile.cpp.o
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp:13:
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/DebugInfo/Symbolize/SymbolizableObjectFile.h:15:
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/ADT/StringRef.h:16:
In file included from /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/algorithm:61:
In file included from /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:61:
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_tempbuf.h:263:8: warning: 'get_temporary_buffer<llvm::symbolize::SymbolizableObjectFile::SymbolDesc>' is deprecated [-Wdeprecated-declarations]
  263 |                 std::get_temporary_buffer<value_type>(_M_original_len));
      |                      ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:4996:15: note: in instantiation of member function 'std::_Temporary_buffer<__gnu_cxx::__normal_iterator<llvm::symbolize::SymbolizableObjectFile::SymbolDesc *, std::vector<llvm::symbolize::SymbolizableObjectFile::SymbolDesc>>, llvm::symbolize::SymbolizableObjectFile::SymbolDesc>::_Temporary_buffer' requested here
 4996 |       _TmpBuf __buf(__first, (__last - __first + 1) / 2);
      |               ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:5034:23: note: in instantiation of function template specialization 'std::__stable_sort<__gnu_cxx::__normal_iterator<llvm::symbolize::SymbolizableObjectFile::SymbolDesc *, std::vector<llvm::symbolize::SymbolizableObjectFile::SymbolDesc>>, __gnu_cxx::__ops::_Iter_less_iter>' requested here
 5034 |       _GLIBCXX_STD_A::__stable_sort(__first, __last,
      |                       ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2059:8: note: in instantiation of function template specialization 'std::stable_sort<__gnu_cxx::__normal_iterator<llvm::symbolize::SymbolizableObjectFile::SymbolDesc *, std::vector<llvm::symbolize::SymbolizableObjectFile::SymbolDesc>>>' requested here
 2059 |   std::stable_sort(adl_begin(Range), adl_end(Range));
      |        ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp:76:9: note: in instantiation of function template specialization 'llvm::stable_sort<std::vector<llvm::symbolize::SymbolizableObjectFile::SymbolDesc> &>' requested here
   76 |   llvm::stable_sort(SS);
      |         ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_tempbuf.h:99:5: note: 'get_temporary_buffer<llvm::symbolize::SymbolizableObjectFile::SymbolDesc>' has been explicitly marked deprecated here
   99 |     _GLIBCXX17_DEPRECATED
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12/bits/c++config.h:119:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
  119 | # define _GLIBCXX17_DEPRECATED [[__deprecated__]]
      |                                  ^
1 warning generated.
23.546 [1943/62/1954] Building CXX object lib/ExecutionEngine/JITLink/CMakeFiles/LLVMJITLink.dir/ELF_x86_64.cpp.o
23.546 [1943/61/1955] Building CXX object lib/ExecutionEngine/JITLink/CMakeFiles/LLVMJITLink.dir/COFF.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 5, 2025

LLVM Buildbot has detected a new failure on builder lld-x86_64-ubuntu-fast running on as-builder-4 while building llvm at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/33/builds/25998

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
                 from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/Target/VE/VEISelLowering.h:18,
                 from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/Target/VE/VESubtarget.h:17,
                 from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/Target/VE/LVLGen.cpp:10:
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^
14.272 [1156/64/2871] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/lib/CodeGen -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/CodeGen -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/include -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
In file included from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:24:
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp: In static member function ‘static llvm::Value* {anonymous}::AtomicExpandImpl::insertRMWCmpXchgLoop(llvm::IRBuilderBase&, llvm::Type*, llvm::Value*, llvm::Align, llvm::AtomicOrdering, llvm::SyncScope::ID, llvm::function_ref<llvm::Value*(llvm::IRBuilderBase&, llvm::Value*)>, llvm::CreateCmpXchgInstFun, llvm::Instruction*)’:
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:56: error: could not convert ‘* F’ from ‘llvm::Function’ to ‘llvm::StringRef’
 1694 |   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
      |                                                        ^~
      |                                                        |
      |                                                        llvm::Function
14.273 [1156/63/2872] Building CXX object lib/Target/VE/CMakeFiles/LLVMVECodeGen.dir/VEAsmPrinter.cpp.o
14.273 [1156/62/2873] Building CXX object lib/Target/VE/CMakeFiles/LLVMVECodeGen.dir/VECustomDAG.cpp.o
In file included from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/Target/VE/VEISelLowering.h:18,
                 from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/Target/VE/VECustomDAG.h:18,
                 from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/Target/VE/VECustomDAG.cpp:14:
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^
14.274 [1156/61/2874] Building CXX object lib/Target/VE/CMakeFiles/LLVMVECodeGen.dir/VEFrameLowering.cpp.o
In file included from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/Target/VE/VEISelLowering.h:18,
                 from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/Target/VE/VESubtarget.h:17,
                 from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/Target/VE/VEFrameLowering.cpp:115:
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 5, 2025

LLVM Buildbot has detected a new failure on builder ml-opt-rel-x86-64 running on ml-opt-rel-x86-64-b1 while building llvm at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/185/builds/28312

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
   99 |     _GLIBCXX17_DEPRECATED
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12/bits/c++config.h:119:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
  119 | # define _GLIBCXX17_DEPRECATED [[__deprecated__]]
      |                                  ^
1 warning generated.
659.342 [1347/64/2581] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CalcSpillWeights.cpp.o
660.053 [1346/64/2582] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CallingConvLower.cpp.o
660.475 [1345/64/2583] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o
660.891 [1344/64/2584] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_HAVE_TF_AOT_REGALLOCEVICTMODEL -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/ml-opt-rel-x86-64-b1/build/lib/CodeGen -I/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/CodeGen -I/var/lib/buildbot/.local/lib/python3.7/site-packages/tensorflow/include -I/b/ml-opt-rel-x86-64-b1/build/include -I/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:3: error: no matching function for call to 'setExplicitlyUnknownBranchWeightsIfProfiled'
 1694 |   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include/llvm/IR/ProfDataUtils.h:200:1: note: candidate function not viable: no known conversion from 'Function' to 'StringRef' for 2nd argument
  200 | setExplicitlyUnknownBranchWeightsIfProfiled(Instruction &I, StringRef PassName,
      | ^                                                           ~~~~~~~~~~~~~~~~~~
1 error generated.
661.412 [1344/63/2585] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CommandFlags.cpp.o
661.558 [1344/62/2586] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ExpandLargeDivRem.cpp.o
661.648 [1344/61/2587] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FinalizeISel.cpp.o
662.038 [1344/60/2588] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ExpandVectorPredication.cpp.o
663.111 [1344/59/2589] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LibcallLoweringInfo.cpp.o
663.809 [1344/58/2590] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIInstrInserter.cpp.o
664.313 [1344/57/2591] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CriticalAntiDepBreaker.cpp.o
664.712 [1344/56/2592] Building CXX object tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfileGenerator.cpp.o
In file included from /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/tools/llvm-profgen/ProfileGenerator.cpp:8:
In file included from /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/tools/llvm-profgen/ProfileGenerator.h:11:
In file included from /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/tools/llvm-profgen/CSPreInliner.h:12:
In file included from /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/tools/llvm-profgen/ProfiledBinary.h:12:
In file included from /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/tools/llvm-profgen/CallContext.h:12:
In file included from /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include/llvm/ProfileData/SampleProf.h:17:
In file included from /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include/llvm/ADT/DenseSet.h:18:
In file included from /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include/llvm/ADT/DenseMap.h:20:
In file included from /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include/llvm/ADT/STLExtras.h:21:
In file included from /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include/llvm/ADT/Hashing.h:53:
In file included from /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/algorithm:61:
In file included from /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:61:
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_tempbuf.h:263:8: warning: 'get_temporary_buffer<InstrProfValueData>' is deprecated [-Wdeprecated-declarations]
  263 |                 std::get_temporary_buffer<value_type>(_M_original_len));
      |                      ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:4996:15: note: in instantiation of member function 'std::_Temporary_buffer<__gnu_cxx::__normal_iterator<InstrProfValueData *, std::vector<InstrProfValueData>>, InstrProfValueData>::_Temporary_buffer' requested here
 4996 |       _TmpBuf __buf(__first, (__last - __first + 1) / 2);
      |               ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:5070:23: note: in instantiation of function template specialization 'std::__stable_sort<__gnu_cxx::__normal_iterator<InstrProfValueData *, std::vector<InstrProfValueData>>, __gnu_cxx::__ops::_Iter_comp_iter<(lambda at /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h:1117:18)>>' requested here
 5070 |       _GLIBCXX_STD_A::__stable_sort(__first, __last,
      |                       ^
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2064:8: note: in instantiation of function template specialization 'std::stable_sort<__gnu_cxx::__normal_iterator<InstrProfValueData *, std::vector<InstrProfValueData>>, (lambda at /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h:1117:18)>' requested here

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 5, 2025

LLVM Buildbot has detected a new failure on builder ppc64le-mlir-rhel-clang running on ppc64le-mlir-rhel-test while building llvm at step 5 "build-check-mlir-build-only".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/129/builds/32530

Here is the relevant piece of the build log for the reference
Step 5 (build-check-mlir-build-only) failure: build (failure)
...
9.171 [115/12/4349] Linking CXX static library lib/libMLIRTestIR.a
9.183 [115/11/4350] Linking CXX executable tools/mlir/unittests/Dialect/OpenACC/MLIROpenACCTests
9.192 [115/10/4351] Linking CXX executable tools/mlir/unittests/Dialect/SPIRV/MLIRSPIRVImportExportTests
9.203 [115/9/4352] Linking CXX executable tools/mlir/unittests/Dialect/SparseTensor/MLIRSparseTensorTests
9.353 [115/8/4353] Linking CXX executable tools/mlir/unittests/Dialect/ArmSME/MLIRArmSMETests
9.366 [115/7/4354] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/IRSymtab.cpp.o
9.447 [115/6/4355] Linking CXX executable tools/mlir/unittests/IR/MLIRIRTests
9.448 [115/5/4356] Linking CXX executable tools/mlir/unittests/TableGen/MLIRTableGenTests
9.509 [115/4/4357] Linking CXX executable tools/mlir/unittests/Parser/MLIRParserTests
11.732 [115/3/4358] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
ccache /home/buildbots/llvm-external-buildbots/clang.19.1.7/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/build/lib/CodeGen -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/llvm/lib/CodeGen -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/build/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:3: error: no matching function for call to 'setExplicitlyUnknownBranchWeightsIfProfiled'
 1694 |   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/llvm/include/llvm/IR/ProfDataUtils.h:200:1: note: candidate function not viable: no known conversion from 'Function' to 'StringRef' for 2nd argument
  200 | setExplicitlyUnknownBranchWeightsIfProfiled(Instruction &I, StringRef PassName,
      | ^                                                           ~~~~~~~~~~~~~~~~~~
1 error generated.
13.413 [115/2/4359] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
22.313 [115/1/4360] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 5, 2025

LLVM Buildbot has detected a new failure on builder llvm-nvptx64-nvidia-ubuntu running on as-builder-7 while building llvm at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/160/builds/27787

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/ScheduleDAG.h:24,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/MachineScheduler.h:87,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/Passes/PassBuilder.cpp:133:
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^
43.228 [709/5/2137] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/lib/CodeGen -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/include -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
In file included from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:24:
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp: In static member function ‘static llvm::Value* {anonymous}::AtomicExpandImpl::insertRMWCmpXchgLoop(llvm::IRBuilderBase&, llvm::Type*, llvm::Value*, llvm::Align, llvm::AtomicOrdering, llvm::SyncScope::ID, llvm::function_ref<llvm::Value*(llvm::IRBuilderBase&, llvm::Value*)>, llvm::CreateCmpXchgInstFun, llvm::Instruction*)’:
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:56: error: could not convert ‘* F’ from ‘llvm::Function’ to ‘llvm::StringRef’
 1694 |   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
      |                                                        ^~
      |                                                        |
      |                                                        llvm::Function
47.487 [709/4/2138] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
54.956 [709/2/2140] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
In file included from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:62:
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^
56.167 [709/1/2141] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 5, 2025

LLVM Buildbot has detected a new failure on builder llvm-nvptx-nvidia-ubuntu running on as-builder-7 while building llvm at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/180/builds/27927

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/ScheduleDAG.h:24,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/MachineScheduler.h:87,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/Passes/PassBuilder.cpp:133:
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^
43.251 [709/5/2137] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/build/lib/CodeGen -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/build/include -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
In file included from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:24:
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp: In static member function ‘static llvm::Value* {anonymous}::AtomicExpandImpl::insertRMWCmpXchgLoop(llvm::IRBuilderBase&, llvm::Type*, llvm::Value*, llvm::Align, llvm::AtomicOrdering, llvm::SyncScope::ID, llvm::function_ref<llvm::Value*(llvm::IRBuilderBase&, llvm::Value*)>, llvm::CreateCmpXchgInstFun, llvm::Instruction*)’:
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp:1694:56: error: could not convert ‘* F’ from ‘llvm::Function’ to ‘llvm::StringRef’
 1694 |   setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
      |                                                        ^~
      |                                                        |
      |                                                        llvm::Function
45.682 [709/4/2138] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
53.467 [709/2/2140] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
In file included from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:62:
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:15:46: warning: ‘visibility’ attribute ignored [-Wattributes]
   15 |   LLVM_ABI const RTLIB::RuntimeLibcallsInfo &RTLCI;
      |                                              ^~~~~
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:18:25: warning: ‘visibility’ attribute ignored [-Wattributes]
   18 |       RTLIB::Unsupported};
      |                         ^
54.806 [709/1/2141] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants