Skip to content

[Asan] Provide TTI hook to provide memory reference infromation of target intrinsics. #97070

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 8, 2024

Conversation

yetingk
Copy link
Contributor

@yetingk yetingk commented Jun 28, 2024

Previously asan considers target intrinsics as black boxes, so asan could not instrument accurate check. This patch provide TTI hooks to make targets describe their intrinsic informations to asan.

Note,

  1. this patch renames InterestingMemoryOperand to MemoryRefInfo.
  2. this patch does not support RVV indexed/segment load/store.

@llvmbot
Copy link
Member

llvmbot commented Jun 28, 2024

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

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Yeting Kuo (yetingk)

Changes

Previously asan considers target intrinsics as black boxes, so asan could not instrument accurate check. This patch provide TTI hooks to make targets describe their intrinsic informations to asan.

Note,

  1. this patch renames InterestingMemoryOperand to MemoryRefInfo.
  2. this patch does not support RVV indexed/segment load/store.

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

11 Files Affected:

  • (added) llvm/include/llvm/Analysis/MemoryRefInfo.h (+52)
  • (modified) llvm/include/llvm/Analysis/TargetTransformInfo.h (+13)
  • (modified) llvm/include/llvm/Analysis/TargetTransformInfoImpl.h (+5)
  • (modified) llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h (+1-31)
  • (modified) llvm/lib/Analysis/TargetTransformInfo.cpp (+5)
  • (modified) llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp (+87)
  • (modified) llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h (+3)
  • (modified) llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp (+23-14)
  • (modified) llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp (+9-12)
  • (added) llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll (+16774)
  • (added) llvm/test/Instrumentation/AddressSanitizer/asan-rvv-intrinsics.ll (+2209)
diff --git a/llvm/include/llvm/Analysis/MemoryRefInfo.h b/llvm/include/llvm/Analysis/MemoryRefInfo.h
new file mode 100644
index 0000000000000..4621f94f6b16c
--- /dev/null
+++ b/llvm/include/llvm/Analysis/MemoryRefInfo.h
@@ -0,0 +1,52 @@
+//===--------- Definition of the MemoryRefInfo class -*- C++ -*------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file defines MemoryRefInfo class that is used when getting
+// the information of a memory reference instruction.
+//
+//===----------------------------------------------------------------------===//
+#ifndef LLVM_SUPPORT_MEMORYREFINFO_H
+#define LLVM_SUPPORT_MEMORYREFINFO_H
+
+#include "llvm/IR/Instruction.h"
+#include "llvm/Support/TypeSize.h"
+
+namespace llvm {
+class MemoryRefInfo {
+public:
+  Use *PtrUse = nullptr;
+  bool IsWrite;
+  Type *OpType;
+  TypeSize TypeStoreSize = TypeSize::getFixed(0);
+  MaybeAlign Alignment;
+  // The mask Value, if we're looking at a masked load/store.
+  Value *MaybeMask;
+  // The EVL Value, if we're looking at a vp intrinsic.
+  Value *MaybeEVL;
+  // The Stride Value, if we're looking at a strided load/store.
+  Value *MaybeStride;
+
+  MemoryRefInfo() = default;
+  MemoryRefInfo(Instruction *I, unsigned OperandNo, bool IsWrite,
+                class Type *OpType, MaybeAlign Alignment,
+                Value *MaybeMask = nullptr, Value *MaybeEVL = nullptr,
+                Value *MaybeStride = nullptr)
+      : IsWrite(IsWrite), OpType(OpType), Alignment(Alignment),
+        MaybeMask(MaybeMask), MaybeEVL(MaybeEVL), MaybeStride(MaybeStride) {
+    const DataLayout &DL = I->getDataLayout();
+    TypeStoreSize = DL.getTypeStoreSizeInBits(OpType);
+    PtrUse = &I->getOperandUse(OperandNo);
+  }
+
+  Instruction *getInsn() { return cast<Instruction>(PtrUse->getUser()); }
+  Value *getPtr() { return PtrUse->get(); }
+  operator bool() { return PtrUse != nullptr; }
+};
+
+} // namespace llvm
+#endif
diff --git a/llvm/include/llvm/Analysis/TargetTransformInfo.h b/llvm/include/llvm/Analysis/TargetTransformInfo.h
index dcdd9f82cde8e..3a27e8c9263d4 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfo.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfo.h
@@ -23,6 +23,7 @@
 
 #include "llvm/ADT/APInt.h"
 #include "llvm/ADT/SmallBitVector.h"
+#include "llvm/Analysis/MemoryRefInfo.h"
 #include "llvm/IR/FMF.h"
 #include "llvm/IR/InstrTypes.h"
 #include "llvm/IR/PassManager.h"
@@ -955,6 +956,10 @@ class TargetTransformInfo {
   MemCmpExpansionOptions enableMemCmpExpansion(bool OptSize,
                                                bool IsZeroCmp) const;
 
+  // Add MemoryRefInfo of Intrinsic \p II into array \p Interesting.
+  bool getMemoryRefInfo(SmallVectorImpl<MemoryRefInfo> &Interesting,
+                        IntrinsicInst *II) const;
+
   /// Should the Select Optimization pass be enabled and ran.
   bool enableSelectOptimize() const;
 
@@ -1932,6 +1937,8 @@ class TargetTransformInfo::Concept {
   virtual bool enableAggressiveInterleaving(bool LoopHasReductions) = 0;
   virtual MemCmpExpansionOptions
   enableMemCmpExpansion(bool OptSize, bool IsZeroCmp) const = 0;
+  virtual bool getMemoryRefInfo(SmallVectorImpl<MemoryRefInfo> &Interesting,
+                                IntrinsicInst *II) const = 0;
   virtual bool enableSelectOptimize() = 0;
   virtual bool shouldTreatInstructionLikeSelect(const Instruction *I) = 0;
   virtual bool enableInterleavedAccessVectorization() = 0;
@@ -2485,6 +2492,12 @@ class TargetTransformInfo::Model final : public TargetTransformInfo::Concept {
                                                bool IsZeroCmp) const override {
     return Impl.enableMemCmpExpansion(OptSize, IsZeroCmp);
   }
+
+  bool getMemoryRefInfo(SmallVectorImpl<MemoryRefInfo> &Interesting,
+                        IntrinsicInst *II) const override {
+    return Impl.getMemoryRefInfo(Interesting, II);
+  }
+
   bool enableSelectOptimize() override {
     return Impl.enableSelectOptimize();
   }
diff --git a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
index 0ded98f162abf..c46bd480aa3b3 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
@@ -394,6 +394,11 @@ class TargetTransformInfoImplBase {
     return {};
   }
 
+  bool getMemoryRefInfo(SmallVectorImpl<MemoryRefInfo> &Interesting,
+                        IntrinsicInst *II) const {
+    return false;
+  }
+
   bool enableSelectOptimize() const { return true; }
 
   bool shouldTreatInstructionLikeSelect(const Instruction *I) {
diff --git a/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h b/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h
index 9fe2716220e83..f7bd36c2def03 100644
--- a/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h
+++ b/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h
@@ -14,6 +14,7 @@
 #define LLVM_TRANSFORMS_INSTRUMENTATION_ADDRESSSANITIZERCOMMON_H
 
 #include "llvm/Analysis/CFG.h"
+#include "llvm/Analysis/MemoryRefInfo.h"
 #include "llvm/Analysis/PostDominators.h"
 #include "llvm/IR/Dominators.h"
 #include "llvm/IR/Instruction.h"
@@ -22,37 +23,6 @@
 
 namespace llvm {
 
-class InterestingMemoryOperand {
-public:
-  Use *PtrUse;
-  bool IsWrite;
-  Type *OpType;
-  TypeSize TypeStoreSize = TypeSize::getFixed(0);
-  MaybeAlign Alignment;
-  // The mask Value, if we're looking at a masked load/store.
-  Value *MaybeMask;
-  // The EVL Value, if we're looking at a vp intrinsic.
-  Value *MaybeEVL;
-  // The Stride Value, if we're looking at a strided load/store.
-  Value *MaybeStride;
-
-  InterestingMemoryOperand(Instruction *I, unsigned OperandNo, bool IsWrite,
-                           class Type *OpType, MaybeAlign Alignment,
-                           Value *MaybeMask = nullptr,
-                           Value *MaybeEVL = nullptr,
-                           Value *MaybeStride = nullptr)
-      : IsWrite(IsWrite), OpType(OpType), Alignment(Alignment),
-        MaybeMask(MaybeMask), MaybeEVL(MaybeEVL), MaybeStride(MaybeStride) {
-    const DataLayout &DL = I->getDataLayout();
-    TypeStoreSize = DL.getTypeStoreSizeInBits(OpType);
-    PtrUse = &I->getOperandUse(OperandNo);
-  }
-
-  Instruction *getInsn() { return cast<Instruction>(PtrUse->getUser()); }
-
-  Value *getPtr() { return PtrUse->get(); }
-};
-
 // Get AddressSanitizer parameters.
 void getAddressSanitizerParams(const Triple &TargetTriple, int LongSize,
                                bool IsKasan, uint64_t *ShadowBase,
diff --git a/llvm/lib/Analysis/TargetTransformInfo.cpp b/llvm/lib/Analysis/TargetTransformInfo.cpp
index c175d1737e54b..3b89e74f5b4ae 100644
--- a/llvm/lib/Analysis/TargetTransformInfo.cpp
+++ b/llvm/lib/Analysis/TargetTransformInfo.cpp
@@ -622,6 +622,11 @@ TargetTransformInfo::enableMemCmpExpansion(bool OptSize, bool IsZeroCmp) const {
   return TTIImpl->enableMemCmpExpansion(OptSize, IsZeroCmp);
 }
 
+bool TargetTransformInfo::getMemoryRefInfo(
+    SmallVectorImpl<MemoryRefInfo> &Interesting, IntrinsicInst *II) const {
+  return TTIImpl->getMemoryRefInfo(Interesting, II);
+}
+
 bool TargetTransformInfo::enableSelectOptimize() const {
   return TTIImpl->enableSelectOptimize();
 }
diff --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
index 176d0e79253ac..d87f9f8b5f0de 100644
--- a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
+++ b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
@@ -13,7 +13,9 @@
 #include "llvm/CodeGen/BasicTTIImpl.h"
 #include "llvm/CodeGen/CostTable.h"
 #include "llvm/CodeGen/TargetLowering.h"
+#include "llvm/IR/IRBuilder.h"
 #include "llvm/IR/Instructions.h"
+#include "llvm/IR/IntrinsicsRISCV.h"
 #include "llvm/IR/PatternMatch.h"
 #include <cmath>
 #include <optional>
@@ -36,6 +38,91 @@ static cl::opt<unsigned> SLPMaxVF(
         "exclusively by SLP vectorizer."),
     cl::Hidden);
 
+bool RISCVTTIImpl::getMemoryRefInfo(SmallVectorImpl<MemoryRefInfo> &Interesting,
+                                    IntrinsicInst *II) const {
+  const DataLayout &DL = getDataLayout();
+  unsigned IntNo = II->getIntrinsicID();
+  LLVMContext &C = II->getContext();
+  IRBuilder<> IB(II);
+  bool HasMask = false;
+
+  switch (IntNo) {
+  case Intrinsic::riscv_vle_mask:
+  case Intrinsic::riscv_vse_mask:
+    HasMask = true;
+    [[fallthrough]];
+  case Intrinsic::riscv_vle:
+  case Intrinsic::riscv_vse: {
+    bool IsWrite = II->getType()->isVoidTy();
+    Type *Ty = IsWrite ? II->getArgOperand(0)->getType() : II->getType();
+    const auto *RVVIInfo = RISCVVIntrinsicsTable::getRISCVVIntrinsicInfo(IntNo);
+    unsigned VLIndex = RVVIInfo->VLOperand;
+    unsigned PtrOperandNo = VLIndex - 1 - HasMask;
+    MaybeAlign Alignment =
+        II->getArgOperand(PtrOperandNo)->getPointerAlignment(DL);
+    Type *MaskType = Ty->getWithNewType(Type::getInt1Ty(C));
+    Value *Mask = ConstantInt::get(MaskType, 1);
+    if (HasMask)
+      Mask = II->getArgOperand(VLIndex - 1);
+    Value *EVL = II->getArgOperand(VLIndex);
+    Interesting.emplace_back(II, PtrOperandNo, IsWrite, Ty, Alignment, Mask,
+                             EVL);
+    return true;
+  }
+  case Intrinsic::riscv_vlse_mask:
+  case Intrinsic::riscv_vsse_mask:
+    HasMask = true;
+    [[fallthrough]];
+  case Intrinsic::riscv_vlse:
+  case Intrinsic::riscv_vsse: {
+    bool IsWrite = II->getType()->isVoidTy();
+    Type *Ty = IsWrite ? II->getArgOperand(0)->getType() : II->getType();
+    const auto *RVVIInfo = RISCVVIntrinsicsTable::getRISCVVIntrinsicInfo(IntNo);
+    unsigned VLIndex = RVVIInfo->VLOperand;
+    unsigned PtrOperandNo = VLIndex - 2 - HasMask;
+    MaybeAlign Alignment =
+        II->getArgOperand(PtrOperandNo)->getPointerAlignment(DL);
+
+    Value *Stride = II->getArgOperand(PtrOperandNo + 1);
+    // Use the pointer alignment as the element alignment if the stride is a
+    // multiple of the pointer alignment. Otherwise, the element alignment
+    // should be Align(1).
+    unsigned PointerAlign = Alignment.valueOrOne().value();
+    if (!isa<ConstantInt>(Stride) ||
+        cast<ConstantInt>(Stride)->getZExtValue() % PointerAlign != 0)
+      Alignment = Align(1);
+
+    Type *MaskType = Ty->getWithNewType(Type::getInt1Ty(C));
+    Value *Mask = ConstantInt::get(MaskType, 1);
+    if (HasMask)
+      Mask = II->getArgOperand(VLIndex - 1);
+    Value *EVL = II->getArgOperand(VLIndex);
+    Interesting.emplace_back(II, PtrOperandNo, IsWrite, Ty, Alignment, Mask,
+                             EVL, Stride);
+    return true;
+  }
+  case Intrinsic::riscv_masked_strided_load:
+  case Intrinsic::riscv_masked_strided_store: {
+    bool IsWrite = IntNo == Intrinsic::riscv_masked_strided_store;
+    Type *Ty = II->getArgOperand(0)->getType();
+    Value *Stride = II->getOperand(2);
+    // Use the pointer alignment as the element alignment if the stride is a
+    // mutiple of the pointer alignment. Otherwise, the element alignment
+    // should be Align(1).
+    MaybeAlign Alignment = II->getArgOperand(1)->getPointerAlignment(DL);
+    unsigned PointerAlign = Alignment.valueOrOne().value();
+    if (!isa<ConstantInt>(Stride) ||
+        cast<ConstantInt>(Stride)->getZExtValue() % PointerAlign != 0)
+      Alignment = Align(1);
+    Value *Mask = II->getArgOperand(3);
+    Interesting.emplace_back(II, /* PtrOperandNo */ 1, IsWrite, Ty, Alignment,
+                             Mask, /* MaybeEVL */ nullptr, Stride);
+    return true;
+  }
+  }
+  return false;
+}
+
 InstructionCost
 RISCVTTIImpl::getRISCVInstructionCost(ArrayRef<unsigned> OpCodes, MVT VT,
                                       TTI::TargetCostKind CostKind) {
diff --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
index c4d10aada1f4c..09851127a1e5a 100644
--- a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
+++ b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
@@ -60,6 +60,9 @@ class RISCVTTIImpl : public BasicTTIImplBase<RISCVTTIImpl> {
       : BaseT(TM, F.getDataLayout()), ST(TM->getSubtargetImpl(F)),
         TLI(ST->getTargetLowering()) {}
 
+  bool getMemoryRefInfo(SmallVectorImpl<MemoryRefInfo> &Interesting,
+                        IntrinsicInst *II) const;
+
   bool areInlineCompatible(const Function *Caller,
                            const Function *Callee) const;
 
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index adf77f20cb1c7..8b30a1c191cda 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -29,6 +29,7 @@
 #include "llvm/Analysis/MemoryBuiltins.h"
 #include "llvm/Analysis/StackSafetyAnalysis.h"
 #include "llvm/Analysis/TargetLibraryInfo.h"
+#include "llvm/Analysis/TargetTransformInfo.h"
 #include "llvm/Analysis/ValueTracking.h"
 #include "llvm/BinaryFormat/MachO.h"
 #include "llvm/Demangle/Demangle.h"
@@ -754,12 +755,13 @@ struct AddressSanitizer {
   bool isInterestingAlloca(const AllocaInst &AI);
 
   bool ignoreAccess(Instruction *Inst, Value *Ptr);
-  void getInterestingMemoryOperands(
-      Instruction *I, SmallVectorImpl<InterestingMemoryOperand> &Interesting);
+  void getMemoryRefInfos(Instruction *I,
+                         SmallVectorImpl<MemoryRefInfo> &Interesting,
+                         const TargetTransformInfo *TTI);
 
-  void instrumentMop(ObjectSizeOffsetVisitor &ObjSizeVis,
-                     InterestingMemoryOperand &O, bool UseCalls,
-                     const DataLayout &DL, RuntimeCallInserter &RTCI);
+  void instrumentMop(ObjectSizeOffsetVisitor &ObjSizeVis, MemoryRefInfo &O,
+                     bool UseCalls, const DataLayout &DL,
+                     RuntimeCallInserter &RTCI);
   void instrumentPointerComparisonOrSubtraction(Instruction *I,
                                                 RuntimeCallInserter &RTCI);
   void instrumentAddress(Instruction *OrigIns, Instruction *InsertBefore,
@@ -795,7 +797,8 @@ struct AddressSanitizer {
   void instrumentMemIntrinsic(MemIntrinsic *MI, RuntimeCallInserter &RTCI);
   Value *memToShadow(Value *Shadow, IRBuilder<> &IRB);
   bool suppressInstrumentationSiteForDebug(int &Instrumented);
-  bool instrumentFunction(Function &F, const TargetLibraryInfo *TLI);
+  bool instrumentFunction(Function &F, const TargetLibraryInfo *TLI,
+                          const TargetTransformInfo *TTI);
   bool maybeInsertAsanInitAtFunctionEntry(Function &F);
   bool maybeInsertDynamicShadowAtFunctionEntry(Function &F);
   void markEscapedLocalAllocas(Function &F);
@@ -1264,7 +1267,8 @@ PreservedAnalyses AddressSanitizerPass::run(Module &M,
         Options.MaxInlinePoisoningSize, Options.CompileKernel, Options.Recover,
         Options.UseAfterScope, Options.UseAfterReturn);
     const TargetLibraryInfo &TLI = FAM.getResult<TargetLibraryAnalysis>(F);
-    Modified |= FunctionSanitizer.instrumentFunction(F, &TLI);
+    const TargetTransformInfo &TTI = FAM.getResult<TargetIRAnalysis>(F);
+    Modified |= FunctionSanitizer.instrumentFunction(F, &TLI, &TTI);
   }
   Modified |= ModuleSanitizer.instrumentModule(M);
   if (!Modified)
@@ -1401,8 +1405,9 @@ bool AddressSanitizer::ignoreAccess(Instruction *Inst, Value *Ptr) {
   return false;
 }
 
-void AddressSanitizer::getInterestingMemoryOperands(
-    Instruction *I, SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
+void AddressSanitizer::getMemoryRefInfos(
+    Instruction *I, SmallVectorImpl<MemoryRefInfo> &Interesting,
+    const TargetTransformInfo *TTI) {
   // Do not instrument the load fetching the dynamic shadow address.
   if (LocalDynamicShadow == I)
     return;
@@ -1520,6 +1525,9 @@ void AddressSanitizer::getInterestingMemoryOperands(
       break;
     }
     default:
+      if (auto *II = dyn_cast<IntrinsicInst>(I))
+        if (TTI->getMemoryRefInfo(Interesting, II))
+          return;
       for (unsigned ArgNo = 0; ArgNo < CI->arg_size(); ArgNo++) {
         if (!ClInstrumentByval || !CI->isByValArgument(ArgNo) ||
             ignoreAccess(I, CI->getArgOperand(ArgNo)))
@@ -1682,7 +1690,7 @@ void AddressSanitizer::instrumentMaskedLoadOrStore(
 }
 
 void AddressSanitizer::instrumentMop(ObjectSizeOffsetVisitor &ObjSizeVis,
-                                     InterestingMemoryOperand &O, bool UseCalls,
+                                     MemoryRefInfo &O, bool UseCalls,
                                      const DataLayout &DL,
                                      RuntimeCallInserter &RTCI) {
   Value *Addr = O.getPtr();
@@ -2941,7 +2949,8 @@ bool AddressSanitizer::suppressInstrumentationSiteForDebug(int &Instrumented) {
 }
 
 bool AddressSanitizer::instrumentFunction(Function &F,
-                                          const TargetLibraryInfo *TLI) {
+                                          const TargetLibraryInfo *TLI,
+                                          const TargetTransformInfo *TTI) {
   if (F.empty())
     return false;
   if (F.getLinkage() == GlobalValue::AvailableExternallyLinkage) return false;
@@ -2979,7 +2988,7 @@ bool AddressSanitizer::instrumentFunction(Function &F,
   // We want to instrument every address only once per basic block (unless there
   // are calls between uses).
   SmallPtrSet<Value *, 16> TempsToInstrument;
-  SmallVector<InterestingMemoryOperand, 16> OperandsToInstrument;
+  SmallVector<MemoryRefInfo, 16> OperandsToInstrument;
   SmallVector<MemIntrinsic *, 16> IntrinToInstrument;
   SmallVector<Instruction *, 8> NoReturnCalls;
   SmallVector<BasicBlock *, 16> AllBlocks;
@@ -2995,8 +3004,8 @@ bool AddressSanitizer::instrumentFunction(Function &F,
       // Skip instructions inserted by another instrumentation.
       if (Inst.hasMetadata(LLVMContext::MD_nosanitize))
         continue;
-      SmallVector<InterestingMemoryOperand, 1> InterestingOperands;
-      getInterestingMemoryOperands(&Inst, InterestingOperands);
+      SmallVector<MemoryRefInfo, 1> InterestingOperands;
+      getMemoryRefInfos(&Inst, InterestingOperands, TTI);
 
       if (!InterestingOperands.empty()) {
         for (auto &Operand : InterestingOperands) {
diff --git a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
index a0e63bf12400e..47212b2679e81 100644
--- a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
@@ -339,16 +339,14 @@ class HWAddressSanitizer {
                                  LoopInfo *LI);
   bool ignoreMemIntrinsic(OptimizationRemarkEmitter &ORE, MemIntrinsic *MI);
   void instrumentMemIntrinsic(MemIntrinsic *MI);
-  bool instrumentMemAccess(InterestingMemoryOperand &O, DomTreeUpdater &DTU,
-                           LoopInfo *LI);
+  bool instrumentMemAccess(MemoryRefInfo &O, DomTreeUpdater &DTU, LoopInfo *LI);
   bool ignoreAccessWithoutRemark(Instruction *Inst, Value *Ptr);
   bool ignoreAccess(OptimizationRemarkEmitter &ORE, Instruction *Inst,
                     Value *Ptr);
 
-  void getInterestingMemoryOperands(
-      OptimizationRemarkEmitter &ORE, Instruction *I,
-      const TargetLibraryInfo &TLI,
-      SmallVectorImpl<InterestingMemoryOperand> &Interesting);
+  void getMemoryRefInfos(OptimizationRemarkEmitter &ORE, Instruction *I,
+                         const TargetLibraryInfo &TLI,
+                         SmallVectorImpl<MemoryRefInfo> &Interesting);
 
   void tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, Value *Tag, size_t Size);
   Value *tagPointer(IRBuilder<> &IRB, Type *Ty, Value *PtrLong, Value *Tag);
@@ -814,10 +812,9 @@ bool HWAddressSanitizer::ignoreAccess(OptimizationRemarkEmitter &ORE,
   return Ignored;
 }
 
-void HWAddressSanitizer::getInterestingMemoryOperands(
+void HWAddressSanitizer::getMemoryRefInfos(
     OptimizationRemarkEmitter &ORE, Instruction *I,
-    const TargetLibraryInfo &TLI,
-    SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
+    const TargetLibraryInfo &TLI, SmallVectorImpl<MemoryRefInfo> &Interesting) {
   // Skip memory acce...
[truncated]

@yetingk
Copy link
Contributor Author

yetingk commented Jul 17, 2024

Rebase and ping.

…rget intrinsics.

Previously asan considers target intrinsics as black boxes, so asan
could not instrument accurate check. This patch provide TTI hooks to
make targets describe their intrinsic informations to asan.

Note,
1. this patch renames InterestingMemoryOperand to MemoryRefInfo.
2. this patch does not support RVV indexed/segment load/store.
yetingk pushed a commit to yetingk/llvm-project that referenced this pull request Jul 28, 2024
…structions.

This is based on llvm#97070.
This patch helps AddressSanitizer to support indexed/segement instructions.
It adds a new member maybeOffset inot MemoryRefInfo to describle the offset
between the pointer and the address of this memory reference.
yetingk pushed a commit to yetingk/llvm-project that referenced this pull request Aug 5, 2024
…structions.

This is based on llvm#97070.
This patch helps AddressSanitizer to support indexed/segement instructions.
It adds a new member maybeOffset inot MemoryRefInfo to describle the offset
between the pointer and the address of this memory reference.
Value *Stride = II->getArgOperand(PtrOperandNo + 1);
// Use the pointer alignment as the element alignment if the stride is a
// multiple of the pointer alignment. Otherwise, the element alignment
// should be the greatest of common divisor of pointer alignment and stride.
Copy link
Collaborator

Choose a reason for hiding this comment

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

"greatest of common" -> "greatest common"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Collaborator

@topperc topperc left a comment

Choose a reason for hiding this comment

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

LGTM

@yetingk yetingk merged commit e8ad87c into llvm:main Aug 8, 2024
4 of 7 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 8, 2024

LLVM Buildbot has detected a new failure on builder lldb-x86_64-debian running on lldb-x86_64-debian while building llvm at step 4 "build".

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

Here is the relevant piece of the build log for the reference:

Step 4 (build) failure: build (failure)
...
17.556 [293/72/97] Building CXX object lib/Target/CMakeFiles/LLVMTarget.dir/TargetMachineC.cpp.o
17.559 [292/72/98] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/LoopUnrollPass.cpp.o
17.653 [291/72/99] Linking CXX static library lib/libLLVMObject.a
17.702 [290/72/100] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/FunctionSpecialization.cpp.o
17.841 [289/72/101] Building CXX object lib/Target/CMakeFiles/LLVMTarget.dir/TargetMachine.cpp.o
18.319 [288/72/102] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InlineOrder.cpp.o
18.321 [287/72/103] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InlineAdvisor.cpp.o
18.385 [286/72/104] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopCacheAnalysis.cpp.o
18.723 [285/72/105] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/UniformityAnalysis.cpp.o
18.750 [284/72/106] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o 
/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/2.0.1/lldb-x86_64-debian/build/lib/Target/AMDGPU -I/home/worker/2.0.1/lldb-x86_64-debian/llvm-project/llvm/lib/Target/AMDGPU -I/home/worker/2.0.1/lldb-x86_64-debian/build/include -I/home/worker/2.0.1/lldb-x86_64-debian/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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -c /home/worker/2.0.1/lldb-x86_64-debian/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
In file included from /home/worker/2.0.1/lldb-x86_64-debian/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:
/home/worker/2.0.1/lldb-x86_64-debian/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21: error: use of undeclared identifier 'InterestingMemoryOperand'
    SmallVectorImpl<InterestingMemoryOperand> &Interesting);
                    ^
/home/worker/2.0.1/lldb-x86_64-debian/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: error: use of undeclared identifier 'InterestingMemoryOperand'; did you mean 'getInterestingMemoryOperands'?
    SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~
                    getInterestingMemoryOperands
/home/worker/2.0.1/lldb-x86_64-debian/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:53:6: note: 'getInterestingMemoryOperands' declared here
void getInterestingMemoryOperands(
     ^
2 errors generated.
18.945 [284/71/107] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorizationLegality.cpp.o
19.059 [284/70/108] Building CXX object lib/CodeGen/SelectionDAG/CMakeFiles/LLVMSelectionDAG.dir/SelectionDAGISel.cpp.o
19.269 [284/69/109] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/GlobalOpt.cpp.o
19.371 [284/68/110] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
19.459 [284/67/111] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUUnifyDivergentExitNodes.cpp.o
19.557 [284/66/112] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/PartialInlining.cpp.o
19.667 [284/65/113] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoadStoreVectorizer.cpp.o
20.469 [284/64/114] Building CXX object lib/Transforms/InstCombine/CMakeFiles/LLVMInstCombine.dir/InstructionCombining.cpp.o
20.527 [284/63/115] Building CXX object lib/Transforms/Coroutines/CMakeFiles/LLVMCoroutines.dir/CoroSplit.cpp.o
20.659 [284/62/116] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MLInlineAdvisor.cpp.o
21.076 [284/61/117] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/TargetTransformInfo.cpp.o
21.623 [284/60/118] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanRecipes.cpp.o
22.030 [284/59/119] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/VectorUtils.cpp.o
22.465 [284/58/120] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/RewriteStatepointsForGC.cpp.o
22.636 [284/57/121] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InlineCost.cpp.o
22.684 [284/56/122] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/LowerMatrixIntrinsics.cpp.o
22.995 [284/55/123] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/A15SDOptimizer.cpp.o
23.069 [284/54/124] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMBaseRegisterInfo.cpp.o
23.191 [284/53/125] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/SimplifyCFG.cpp.o
23.272 [284/52/126] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMCallingConv.cpp.o
23.420 [284/51/127] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTOModule.cpp.o
23.425 [284/50/128] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VectorCombine.cpp.o
23.655 [284/49/129] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/IROutliner.cpp.o
23.768 [284/48/130] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CodeGenAction.cpp.o
23.811 [284/47/131] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/SpeculateAnalyses.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 8, 2024

LLVM Buildbot has detected a new failure on builder openmp-offload-amdgpu-runtime running on omp-vega20-0 while building llvm at step 5 "compile-openmp".

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

Here is the relevant piece of the build log for the reference:

Step 5 (compile-openmp) failure: build (failure)
...
86.628 [1730/32/2467] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600ExpandSpecialInstrs.cpp.o
86.641 [1729/32/2468] Linking CXX static library lib/libLLVMDebugInfoLogicalView.a
86.649 [1728/32/2469] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600EmitClauseMarkers.cpp.o
86.664 [1727/32/2470] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600MachineFunctionInfo.cpp.o
86.670 [1726/32/2471] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600FrameLowering.cpp.o
86.685 [1725/32/2472] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600InstrInfo.cpp.o
86.696 [1724/32/2473] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600OpenCLImageTypeLoweringPass.cpp.o
86.727 [1723/32/2474] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600MachineScheduler.cpp.o
86.766 [1722/32/2475] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600OptimizeVectorRegisters.cpp.o
86.914 [1721/32/2476] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/lib/Target/AMDGPU -I/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU -I/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/include -I/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -c /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
In file included from /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21: error: ‘InterestingMemoryOperand’ was not declared in this scope
   55 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:45: error: template argument 1 is invalid
   55 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting);
      |                                             ^
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: error: ‘InterestingMemoryOperand’ was not declared in this scope; did you mean ‘getInterestingMemoryOperands’?
  184 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
      |                     getInterestingMemoryOperands
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:45: error: template argument 1 is invalid
  184 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
      |                                             ^
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp: In function ‘void llvm::AMDGPU::getInterestingMemoryOperands(llvm::Module&, llvm::Instruction*, int&)’:
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:187:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  187 |     Interesting.emplace_back(I, LI->getPointerOperandIndex(), false,
      |                 ^~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:190:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  190 |     Interesting.emplace_back(I, SI->getPointerOperandIndex(), true,
      |                 ^~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:193:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  193 |     Interesting.emplace_back(I, RMW->getPointerOperandIndex(), true,
      |                 ^~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:196:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  196 |     Interesting.emplace_back(I, XCHG->getPointerOperandIndex(), true,
      |                 ^~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:214:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  214 |       Interesting.emplace_back(I, OpOffset, IsWrite, Ty, Alignment, Mask);
      |                   ^~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:233:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  233 |       Interesting.emplace_back(I, OpOffset, IsWrite, Ty, Alignment, TrueMask,
      |                   ^~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:259:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  259 |       Interesting.emplace_back(I, PtrOpNo, IsWrite, Ty, Alignment,
      |                   ^~~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:272:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 8, 2024

LLVM Buildbot has detected a new failure on builder mlir-rocm-mi200 running on mi200-buildbot while building llvm at step 3 "clean-build-dir".

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

Here is the relevant piece of the build log for the reference:

Step 3 (clean-build-dir) failure: Delete failed. (failure)
Step 5 (build-check-mlir-build-only) failure: build (failure)
...
67.571 [80/20/4577] Building CXX object tools/mlir/examples/toy/Ch6/CMakeFiles/toyc-ch6.dir/toyc.cpp.o
67.578 [80/19/4578] Building CXX object tools/mlir/examples/toy/Ch7/CMakeFiles/toyc-ch7.dir/toyc.cpp.o
67.578 [80/18/4579] Building CXX object tools/mlir/examples/transform/Ch2/CMakeFiles/transform-opt-ch2.dir/transform-opt/transform-opt.cpp.o
67.579 [80/17/4580] Building CXX object tools/mlir/examples/transform/Ch4/CMakeFiles/transform-opt-ch4.dir/transform-opt/transform-opt.cpp.o
67.585 [80/16/4581] Building CXX object tools/mlir/examples/transform-opt/CMakeFiles/mlir-transform-opt.dir/mlir-transform-opt.cpp.o
67.586 [80/15/4582] Building CXX object tools/mlir/examples/transform/Ch3/CMakeFiles/transform-opt-ch3.dir/transform-opt/transform-opt.cpp.o
67.617 [80/14/4583] Linking CXX static library lib/libLLVMAMDGPUUtils.a
67.730 [79/14/4584] Linking CXX static library lib/libLLVMAMDGPUDesc.a
67.818 [78/14/4585] Linking CXX static library lib/libLLVMAMDGPUAsmParser.a
69.957 [78/13/4586] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DBUILD_EXAMPLES -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -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/Target/AMDGPU -I/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/lib/Target/AMDGPU -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -c /vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
In file included from /vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21: error: use of undeclared identifier 'InterestingMemoryOperand'
   55 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting);
      |                     ^
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: error: use of undeclared identifier 'InterestingMemoryOperand'; did you mean 'getInterestingMemoryOperands'?
  184 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
      |                     getInterestingMemoryOperands
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:53:6: note: 'getInterestingMemoryOperands' declared here
   53 | void getInterestingMemoryOperands(
      |      ^
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: error: template argument for template type parameter must be a type
  184 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
/vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/llvm/include/llvm/Transforms/Utils/ModuleUtils.h:24:20: note: template parameter is declared here
   24 | template <typename T> class SmallVectorImpl;
      |                    ^
3 errors generated.
70.022 [78/12/4587] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUUnifyDivergentExitNodes.cpp.o
74.681 [78/11/4588] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600TargetTransformInfo.cpp.o
75.076 [78/10/4589] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUSplitModule.cpp.o
75.527 [78/9/4590] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600CodeGenPassBuilder.cpp.o
75.746 [78/8/4591] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUInstCombineIntrinsic.cpp.o
76.025 [78/7/4592] Building CXX object tools/llc/CMakeFiles/llc.dir/NewPMDriver.cpp.o
77.687 [78/6/4593] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUTargetTransformInfo.cpp.o
79.420 [78/5/4594] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUCodeGenPassBuilder.cpp.o
80.790 [78/4/4595] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SLPVectorizer.cpp.o
81.082 [78/3/4596] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600TargetMachine.cpp.o
81.463 [78/2/4597] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o
88.007 [78/1/4598] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUTargetMachine.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 8, 2024

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian-dbg-runtimes-build running on libc-x86_64-debian while building llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[114/310] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VectorCombine.cpp.o
[115/310] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/IRSymtab.cpp.o
[116/310] Building CXX object lib/Target/CMakeFiles/LLVMTarget.dir/TargetMachineC.cpp.o
[117/310] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InlineCost.cpp.o
[118/310] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/LowerTypeTests.cpp.o
[119/310] Building CXX object lib/Target/CMakeFiles/LLVMTarget.dir/TargetMachine.cpp.o
[120/310] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MLInlineAdvisor.cpp.o
[121/310] Linking CXX static library lib/libLLVMObject.a
[122/310] Building CXX object lib/Transforms/Coroutines/CMakeFiles/LLVMCoroutines.dir/CoroFrame.cpp.o
[123/310] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o 
/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/lib/Target/AMDGPU -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/lib/Target/AMDGPU -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/include -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -c /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21: error: use of undeclared identifier 'InterestingMemoryOperand'
    SmallVectorImpl<InterestingMemoryOperand> &Interesting);
                    ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: error: use of undeclared identifier 'InterestingMemoryOperand'; did you mean 'getInterestingMemoryOperands'?
    SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~
                    getInterestingMemoryOperands
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:53:6: note: 'getInterestingMemoryOperands' declared here
void getInterestingMemoryOperands(
     ^
2 errors generated.
[124/310] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/TargetTransformInfo.cpp.o
[125/310] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlan.cpp.o
[126/310] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/VectorUtils.cpp.o
[127/310] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUUnifyDivergentExitNodes.cpp.o
[128/310] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopAccessAnalysis.cpp.o
[129/310] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/SampleProfile.cpp.o
[130/310] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/AttributorAttributes.cpp.o
[131/310] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTOModule.cpp.o
[132/310] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/SpeculateAnalyses.cpp.o
[133/310] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o
[134/310] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMBaseRegisterInfo.cpp.o
[135/310] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTOCodeGenerator.cpp.o
[136/310] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUSplitModule.cpp.o
[137/310] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUInstCombineIntrinsic.cpp.o
[138/310] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64TargetTransformInfo.cpp.o
[139/310] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/A15SDOptimizer.cpp.o
[140/310] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMCallingConv.cpp.o
[141/310] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600TargetTransformInfo.cpp.o
[142/310] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMCallLowering.cpp.o
[143/310] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTOBackend.cpp.o
[144/310] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/ThinLTOCodeGenerator.cpp.o
[145/310] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMAsmPrinter.cpp.o
[146/310] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUTargetTransformInfo.cpp.o
[147/310] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
[148/310] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600CodeGenPassBuilder.cpp.o
Step 6 (build libc) failure: build libc (failure)
...
[114/310] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VectorCombine.cpp.o
[115/310] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/IRSymtab.cpp.o
[116/310] Building CXX object lib/Target/CMakeFiles/LLVMTarget.dir/TargetMachineC.cpp.o
[117/310] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InlineCost.cpp.o
[118/310] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/LowerTypeTests.cpp.o
[119/310] Building CXX object lib/Target/CMakeFiles/LLVMTarget.dir/TargetMachine.cpp.o
[120/310] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MLInlineAdvisor.cpp.o
[121/310] Linking CXX static library lib/libLLVMObject.a
[122/310] Building CXX object lib/Transforms/Coroutines/CMakeFiles/LLVMCoroutines.dir/CoroFrame.cpp.o
[123/310] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o 
/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/lib/Target/AMDGPU -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/lib/Target/AMDGPU -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/include -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -c /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21: error: use of undeclared identifier 'InterestingMemoryOperand'
    SmallVectorImpl<InterestingMemoryOperand> &Interesting);
                    ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: error: use of undeclared identifier 'InterestingMemoryOperand'; did you mean 'getInterestingMemoryOperands'?
    SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~
                    getInterestingMemoryOperands
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:53:6: note: 'getInterestingMemoryOperands' declared here
void getInterestingMemoryOperands(
     ^
2 errors generated.
[124/310] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/TargetTransformInfo.cpp.o
[125/310] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlan.cpp.o
[126/310] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/VectorUtils.cpp.o
[127/310] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUUnifyDivergentExitNodes.cpp.o
[128/310] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopAccessAnalysis.cpp.o
[129/310] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/SampleProfile.cpp.o
[130/310] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/AttributorAttributes.cpp.o
[131/310] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTOModule.cpp.o
[132/310] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/SpeculateAnalyses.cpp.o
[133/310] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o
[134/310] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMBaseRegisterInfo.cpp.o
[135/310] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTOCodeGenerator.cpp.o
[136/310] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUSplitModule.cpp.o
[137/310] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUInstCombineIntrinsic.cpp.o
[138/310] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64TargetTransformInfo.cpp.o
[139/310] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/A15SDOptimizer.cpp.o
[140/310] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMCallingConv.cpp.o
[141/310] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600TargetTransformInfo.cpp.o
[142/310] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMCallLowering.cpp.o
[143/310] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTOBackend.cpp.o
[144/310] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/ThinLTOCodeGenerator.cpp.o
[145/310] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMAsmPrinter.cpp.o
[146/310] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUTargetTransformInfo.cpp.o
[147/310] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
[148/310] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600CodeGenPassBuilder.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 8, 2024

LLVM Buildbot has detected a new failure on builder openmp-offload-sles-build-only running on rocm-worker-hw-04-sles while building llvm at step 5 "compile-openmp".

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

Here is the relevant piece of the build log for the reference:

Step 5 (compile-openmp) failure: build (failure)
...
42.685 [3867/32/2969] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600FrameLowering.cpp.o
42.691 [3866/32/2970] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600InstrInfo.cpp.o
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/CodeGen/ScheduleDAGInstrs.h:24:0,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/CodeGen/DFAPacketizer.h:29,
                 from lib/Target/AMDGPU/R600GenDFAPacketizer.inc:10,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU/R600InstrInfo.cpp:26:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/CodeGen/ScheduleDAG.h:312:40: warning: ‘llvm::SUnit::SchedulingPref’ is too small to hold all values of ‘enum llvm::Sched::Preference’
     Sched::Preference SchedulingPref : 4; ///< Scheduling preference.
                                        ^
42.695 [3865/32/2971] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Target/AMDGPU -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU -Iinclude -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++1z -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -c /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:0:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21: error: ‘InterestingMemoryOperand’ was not declared in this scope
     SmallVectorImpl<InterestingMemoryOperand> &Interesting);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21: note: suggested alternative: ‘getPointerOperand’
     SmallVectorImpl<InterestingMemoryOperand> &Interesting);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
                     getPointerOperand
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:45: error: template argument 1 is invalid
     SmallVectorImpl<InterestingMemoryOperand> &Interesting);
                                             ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: error: ‘InterestingMemoryOperand’ was not declared in this scope
     SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: note: suggested alternative: ‘getInterestingMemoryOperands’
     SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~
                     getInterestingMemoryOperands
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:45: error: template argument 1 is invalid
     SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
                                             ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp: In function ‘void llvm::AMDGPU::getInterestingMemoryOperands(llvm::Module&, llvm::Instruction*, int&)’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:187:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
     Interesting.emplace_back(I, LI->getPointerOperandIndex(), false,
                 ^~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:190:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
     Interesting.emplace_back(I, SI->getPointerOperandIndex(), true,
                 ^~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:193:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
     Interesting.emplace_back(I, RMW->getPointerOperandIndex(), true,
                 ^~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:196:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
     Interesting.emplace_back(I, XCHG->getPointerOperandIndex(), true,
                 ^~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:214:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
       Interesting.emplace_back(I, OpOffset, IsWrite, Ty, Alignment, Mask);
                   ^~~~~~~~~~~~

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 8, 2024

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/3021

Here is the relevant piece of the build log for the reference:

Step 5 (build-unified-tree) failure: build (failure)
...
123.100 [670/64/2926] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIPreAllocateWWMRegs.cpp.o
123.136 [669/64/2927] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIPeepholeSDWA.cpp.o
123.177 [668/64/2928] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIPostRABundler.cpp.o
123.264 [667/64/2929] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIPreEmitPeephole.cpp.o
123.286 [666/64/2930] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIShrinkInstructions.cpp.o
123.300 [665/64/2931] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIRegisterInfo.cpp.o
123.302 [664/64/2932] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIWholeQuadMode.cpp.o
123.369 [663/64/2933] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIProgramInfo.cpp.o
132.154 [662/64/2934] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ExpandReductions.cpp.o
136.511 [661/64/2935] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -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/Target/AMDGPU -I/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU -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 -fno-lifetime-dse -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-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -c /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
In file included from /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21: error: ‘InterestingMemoryOperand’ was not declared in this scope
   55 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:45: error: template argument 1 is invalid
   55 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting);
      |                                             ^
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: error: ‘InterestingMemoryOperand’ was not declared in this scope; did you mean ‘getInterestingMemoryOperands’?
  184 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
      |                     getInterestingMemoryOperands
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:45: error: template argument 1 is invalid
  184 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
      |                                             ^
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp: In function ‘void llvm::AMDGPU::getInterestingMemoryOperands(llvm::Module&, llvm::Instruction*, int&)’:
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:187:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  187 |     Interesting.emplace_back(I, LI->getPointerOperandIndex(), false,
      |                 ^~~~~~~~~~~~
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:190:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  190 |     Interesting.emplace_back(I, SI->getPointerOperandIndex(), true,
      |                 ^~~~~~~~~~~~
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:193:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  193 |     Interesting.emplace_back(I, RMW->getPointerOperandIndex(), true,
      |                 ^~~~~~~~~~~~
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:196:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  196 |     Interesting.emplace_back(I, XCHG->getPointerOperandIndex(), true,
      |                 ^~~~~~~~~~~~
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:214:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  214 |       Interesting.emplace_back(I, OpOffset, IsWrite, Ty, Alignment, Mask);
      |                   ^~~~~~~~~~~~
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:233:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  233 |       Interesting.emplace_back(I, OpOffset, IsWrite, Ty, Alignment, TrueMask,
      |                   ^~~~~~~~~~~~
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:259:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  259 |       Interesting.emplace_back(I, PtrOpNo, IsWrite, Ty, Alignment,
      |                   ^~~~~~~~~~~~
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:272:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 8, 2024

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

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

Here is the relevant piece of the build log for the reference:

Step 5 (build-unified-tree) failure: build (failure)
...
130.242 [676/64/2920] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIOptimizeExecMasking.cpp.o
130.245 [675/64/2921] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIPeepholeSDWA.cpp.o
130.262 [674/64/2922] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIPostRABundler.cpp.o
130.316 [673/64/2923] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIPreAllocateWWMRegs.cpp.o
130.337 [672/64/2924] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIPreEmitPeephole.cpp.o
130.350 [671/64/2925] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIShrinkInstructions.cpp.o
130.386 [670/64/2926] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIRegisterInfo.cpp.o
130.495 [669/64/2927] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIWholeQuadMode.cpp.o
141.392 [668/64/2928] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ExpandReductions.cpp.o
145.026 [667/64/2929] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o 
ccache /usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/ml-opt-devrel-x86-64-b1/build/lib/Target/AMDGPU -I/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU -I/var/lib/buildbot/.local/lib/python3.7/site-packages/tensorflow/include -I/b/ml-opt-devrel-x86-64-b1/build/include -I/b/ml-opt-devrel-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 -fno-lifetime-dse -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-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -DEIGEN_NEON_GEBP_NR=4 -DTFL_STATIC_LIBRARY_BUILD -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -c /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
In file included from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21: error: ‘InterestingMemoryOperand’ was not declared in this scope
   55 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:45: error: template argument 1 is invalid
   55 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting);
      |                                             ^
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: error: ‘InterestingMemoryOperand’ was not declared in this scope; did you mean ‘getInterestingMemoryOperands’?
  184 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
      |                     getInterestingMemoryOperands
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:45: error: template argument 1 is invalid
  184 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
      |                                             ^
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp: In function ‘void llvm::AMDGPU::getInterestingMemoryOperands(llvm::Module&, llvm::Instruction*, int&)’:
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:187:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  187 |     Interesting.emplace_back(I, LI->getPointerOperandIndex(), false,
      |                 ^~~~~~~~~~~~
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:190:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  190 |     Interesting.emplace_back(I, SI->getPointerOperandIndex(), true,
      |                 ^~~~~~~~~~~~
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:193:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  193 |     Interesting.emplace_back(I, RMW->getPointerOperandIndex(), true,
      |                 ^~~~~~~~~~~~
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:196:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  196 |     Interesting.emplace_back(I, XCHG->getPointerOperandIndex(), true,
      |                 ^~~~~~~~~~~~
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:214:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  214 |       Interesting.emplace_back(I, OpOffset, IsWrite, Ty, Alignment, Mask);
      |                   ^~~~~~~~~~~~
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:233:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  233 |       Interesting.emplace_back(I, OpOffset, IsWrite, Ty, Alignment, TrueMask,
      |                   ^~~~~~~~~~~~
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:259:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  259 |       Interesting.emplace_back(I, PtrOpNo, IsWrite, Ty, Alignment,
      |                   ^~~~~~~~~~~~
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:272:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 8, 2024

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

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

Here is the relevant piece of the build log for the reference:

Step 5 (build-unified-tree) failure: build (failure)
...
179.596 [627/64/2946] Linking CXX static library lib/libLLVMX86AsmParser.a
179.610 [626/64/2947] Linking CXX static library lib/libLLVMWebAssemblyDisassembler.a
179.657 [625/64/2948] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreLowerThreadLocal.cpp.o
179.714 [624/64/2949] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreMachineFunctionInfo.cpp.o
179.769 [623/64/2950] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreMCInstLower.cpp.o
179.831 [622/64/2951] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreRegisterInfo.cpp.o
179.898 [621/64/2952] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreSubtarget.cpp.o
181.127 [620/64/2953] Building CXX object lib/Target/Mips/CMakeFiles/LLVMMipsCodeGen.dir/MipsTargetTransformInfo.cpp.o
181.198 [619/64/2954] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreTargetObjectFile.cpp.o
182.807 [618/64/2955] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o 
ccache /usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -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/Target/AMDGPU -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU -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 -fno-lifetime-dse -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-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -DEIGEN_NEON_GEBP_NR=4 -DTFL_STATIC_LIBRARY_BUILD -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -c /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21: error: ‘InterestingMemoryOperand’ was not declared in this scope
   55 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:45: error: template argument 1 is invalid
   55 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting);
      |                                             ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: error: ‘InterestingMemoryOperand’ was not declared in this scope; did you mean ‘getInterestingMemoryOperands’?
  184 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
      |                     getInterestingMemoryOperands
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:45: error: template argument 1 is invalid
  184 |     SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
      |                                             ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp: In function ‘void llvm::AMDGPU::getInterestingMemoryOperands(llvm::Module&, llvm::Instruction*, int&)’:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:187:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  187 |     Interesting.emplace_back(I, LI->getPointerOperandIndex(), false,
      |                 ^~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:190:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  190 |     Interesting.emplace_back(I, SI->getPointerOperandIndex(), true,
      |                 ^~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:193:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  193 |     Interesting.emplace_back(I, RMW->getPointerOperandIndex(), true,
      |                 ^~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:196:17: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  196 |     Interesting.emplace_back(I, XCHG->getPointerOperandIndex(), true,
      |                 ^~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:214:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  214 |       Interesting.emplace_back(I, OpOffset, IsWrite, Ty, Alignment, Mask);
      |                   ^~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:233:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  233 |       Interesting.emplace_back(I, OpOffset, IsWrite, Ty, Alignment, TrueMask,
      |                   ^~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:259:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’
  259 |       Interesting.emplace_back(I, PtrOpNo, IsWrite, Ty, Alignment,
      |                   ^~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:272:19: error: request for member ‘emplace_back’ in ‘Interesting’, which is of non-class type ‘int’

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 8, 2024

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

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

Here is the relevant piece of the build log for the reference:

Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt < /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll -mtriple=riscv64 -mattr=+v -passes=asan  -asan-instrumentation-with-call-threshold=0 -S | /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt -mtriple=riscv64 -mattr=+v -passes=asan -asan-instrumentation-with-call-threshold=0 -S
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt: warning: failed to infer data layout: unable to get target for 'riscv64', see --version and --triple.
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt: WARNING: failed to create target machine for 'riscv64': unable to get target for 'riscv64', see --version and --triple.
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:12:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP2:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:16:7: note: scanning from here
entry:
      ^
<stdin>:17:2: note: possible intended match here
 %2 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:55:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP4:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:24:7: note: scanning from here
entry:
      ^
<stdin>:25:2: note: possible intended match here
 %4 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:97:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP3:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:32:7: note: scanning from here
entry:
      ^
<stdin>:33:2: note: possible intended match here
 %3 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:139:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP4:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:40:7: note: scanning from here
entry:
      ^
<stdin>:41:2: note: possible intended match here
 %4 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:180:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP0:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:48:7: note: scanning from here
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 8, 2024

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

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

Here is the relevant piece of the build log for the reference:

Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt < /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll -mtriple=riscv64 -mattr=+v -passes=asan  -asan-instrumentation-with-call-threshold=0 -S | /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt -mtriple=riscv64 -mattr=+v -passes=asan -asan-instrumentation-with-call-threshold=0 -S
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt: warning: failed to infer data layout: unable to get target for 'riscv64', see --version and --triple.
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt: WARNING: failed to create target machine for 'riscv64': unable to get target for 'riscv64', see --version and --triple.
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:12:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP2:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:16:7: note: scanning from here
entry:
      ^
<stdin>:17:2: note: possible intended match here
 %2 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:55:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP4:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:24:7: note: scanning from here
entry:
      ^
<stdin>:25:2: note: possible intended match here
 %4 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:97:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP3:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:32:7: note: scanning from here
entry:
      ^
<stdin>:33:2: note: possible intended match here
 %3 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:139:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP4:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:40:7: note: scanning from here
entry:
      ^
<stdin>:41:2: note: possible intended match here
 %4 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:180:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP0:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:48:7: note: scanning from here
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 8, 2024

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 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference:

Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt < /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll -mtriple=riscv64 -mattr=+v -passes=asan  -asan-instrumentation-with-call-threshold=0 -S | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -mtriple=riscv64 -mattr=+v -passes=asan -asan-instrumentation-with-call-threshold=0 -S
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt: warning: failed to infer data layout: unable to get target for 'riscv64', see --version and --triple.
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt: WARNING: failed to create target machine for 'riscv64': unable to get target for 'riscv64', see --version and --triple.
�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:12:15: �[0m�[0;1;31merror: �[0m�[1mCHECK-NEXT: expected string not found in input
�[0m; CHECK-NEXT: [[TMP2:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
�[0;1;32m              ^
�[0m�[1m<stdin>:16:7: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0mentry:
�[0;1;32m      ^
�[0m�[1m<stdin>:17:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %2 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:55:15: �[0m�[0;1;31merror: �[0m�[1mCHECK-NEXT: expected string not found in input
�[0m; CHECK-NEXT: [[TMP4:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
�[0;1;32m              ^
�[0m�[1m<stdin>:24:7: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0mentry:
�[0;1;32m      ^
�[0m�[1m<stdin>:25:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %4 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:97:15: �[0m�[0;1;31merror: �[0m�[1mCHECK-NEXT: expected string not found in input
�[0m; CHECK-NEXT: [[TMP3:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
�[0;1;32m              ^
�[0m�[1m<stdin>:32:7: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0mentry:
�[0;1;32m      ^
�[0m�[1m<stdin>:33:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %3 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:139:15: �[0m�[0;1;31merror: �[0m�[1mCHECK-NEXT: expected string not found in input
�[0m; CHECK-NEXT: [[TMP4:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
�[0;1;32m              ^
�[0m�[1m<stdin>:40:7: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0mentry:
�[0;1;32m      ^
�[0m�[1m<stdin>:41:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %4 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:180:15: �[0m�[0;1;31merror: �[0m�[1mCHECK-NEXT: expected string not found in input
�[0m; CHECK-NEXT: [[TMP0:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
�[0;1;32m              ^
�[0m�[1m<stdin>:48:7: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 8, 2024

LLVM Buildbot has detected a new failure on builder clang-ve-ninja running on hpce-ve-main while building llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/ve-linux.py ...' (failure)
...
[642/643] Running the LLVM regression tests
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]
An error occurred retrieving the git revision: Command '['git', '-C', '/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm', 'rev-parse', 'HEAD']' returned non-zero exit status 129.
-- Testing: 54848 tests, 48 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.
FAIL: LLVM :: Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll (31631 of 54848)
******************** TEST 'LLVM :: Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt < /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll -mtriple=riscv64 -mattr=+v -passes=asan  -asan-instrumentation-with-call-threshold=0 -S | /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -mtriple=riscv64 -mattr=+v -passes=asan -asan-instrumentation-with-call-threshold=0 -S
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll
/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt: warning: failed to infer data layout: unable to get target for 'riscv64', see --version and --triple.
/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt: WARNING: failed to create target machine for 'riscv64': unable to get target for 'riscv64', see --version and --triple.
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:12:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP2:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:16:7: note: scanning from here
entry:
      ^
<stdin>:17:2: note: possible intended match here
 %2 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:55:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP4:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:24:7: note: scanning from here
entry:
      ^
<stdin>:25:2: note: possible intended match here
 %4 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:97:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP3:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:32:7: note: scanning from here
entry:
      ^
<stdin>:33:2: note: possible intended match here
 %3 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:139:15: error: CHECK-NEXT: expected string not found in input
Step 8 (check-llvm) failure: check-llvm (failure)
...
[642/643] Running the LLVM regression tests
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]
An error occurred retrieving the git revision: Command '['git', '-C', '/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm', 'rev-parse', 'HEAD']' returned non-zero exit status 129.
-- Testing: 54848 tests, 48 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.
FAIL: LLVM :: Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll (31631 of 54848)
******************** TEST 'LLVM :: Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt < /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll -mtriple=riscv64 -mattr=+v -passes=asan  -asan-instrumentation-with-call-threshold=0 -S | /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -mtriple=riscv64 -mattr=+v -passes=asan -asan-instrumentation-with-call-threshold=0 -S
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll
/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt: warning: failed to infer data layout: unable to get target for 'riscv64', see --version and --triple.
/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt: WARNING: failed to create target machine for 'riscv64': unable to get target for 'riscv64', see --version and --triple.
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:12:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP2:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:16:7: note: scanning from here
entry:
      ^
<stdin>:17:2: note: possible intended match here
 %2 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:55:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP4:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:24:7: note: scanning from here
entry:
      ^
<stdin>:25:2: note: possible intended match here
 %4 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:97:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[TMP3:%.*]] = load i64, ptr @__asan_shadow_memory_dynamic_address, align 8
              ^
<stdin>:32:7: note: scanning from here
entry:
      ^
<stdin>:33:2: note: possible intended match here
 %3 = load i64, ptr @__asan_shadow_memory_dynamic_address, align 4
 ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/AddressSanitizer/RISCV/asan-rvv-intrinsics.ll:139:15: error: CHECK-NEXT: expected string not found in input

yetingk pushed a commit to yetingk/llvm-project that referenced this pull request Aug 8, 2024
…structions.

This is based on llvm#97070.
This patch helps AddressSanitizer to support indexed/segement instructions.
It adds a new member maybeOffset inot MemoryRefInfo to describle the offset
between the pointer and the address of this memory reference.
DamonFool added a commit that referenced this pull request Aug 8, 2024
/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21:
error: use of undeclared identifier 'InterestingMemoryOperand'
    SmallVectorImpl<InterestingMemoryOperand> &Interesting);
                    ^
yetingk pushed a commit to yetingk/llvm-project that referenced this pull request Aug 8, 2024
…structions.

This is based on llvm#97070.
This patch helps AddressSanitizer to support indexed/segement instructions.
It adds a new member maybeOffset inot MemoryRefInfo to describle the offset
between the pointer and the address of this memory reference.
@TomWeaver18
Copy link
Contributor

TomWeaver18 commented Aug 8, 2024

@yetingk Hello and good morning from the UK.

it looks like the test added in this commit has caused the following buildbots to start failing:

https://lab.llvm.org/buildbot/#/builders/46/builds/2895
https://lab.llvm.org/buildbot/#/builders/154/builds/2431
https://lab.llvm.org/buildbot/#/builders/23/builds/1748

and no doubt many others.

Are you able to take a look and get this fixed up? The bots have been red for a good few hours already.

jmorse added a commit that referenced this pull request Aug 8, 2024
…on of target intrinsics. (#97070)"

This reverts commit e8ad87c.
This reverts commit d3c9bb0.

A few buildbots trip up on asan-rvv-intrinsics.ll. I've also reverted
the follow-up commit d3c9bb0.

https://lab.llvm.org/buildbot/#/builders/46/builds/2895
@jmorse
Copy link
Member

jmorse commented Aug 8, 2024

Reverted in bde2432 to clear the buildbots, plus a follow-up commit

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 9, 2024

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

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

Here is the relevant piece of the build log for the reference:

Step 5 (build-unified-tree) failure: build (failure)
...
  /// \param CondTy Conditional type for the Select instruction.
             ^~~~~~
6 warnings generated.
91.751 [240/37/5686] Building OCaml stub object file SystemZ_ocaml.o
91.818 [239/37/5687] Building OCaml library llvm_SystemZ
91.879 [238/37/5688] Building OCaml documentation for llvm_SystemZ
91.905 [237/37/5689] Running utility command for ocaml_llvm_SystemZ
93.303 [237/36/5690] Linking CXX executable bin/clang-tidy
93.391 [237/35/5691] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceUsingSimplifyCFG.cpp.o
93.551 [237/34/5692] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/1/clang-x86_64-debian-fast/llvm.obj/lib/Target/AMDGPU -I/b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/Target/AMDGPU -I/b/1/clang-x86_64-debian-fast/llvm.obj/include -I/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include -std=c++11 -Wdocumentation -Wno-documentation-deprecated-sync -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -c /b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:24:
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/IR/MDBuilder.h:64:14: warning: parameter 'Do' not found in the function declaration [-Wdocumentation]
  /// @param Do these weights come from __builtin_expect*
             ^~
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/IR/MDBuilder.h:64:14: note: did you mean 'IsExpected'?
  /// @param Do these weights come from __builtin_expect*
             ^~
             IsExpected
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/IR/MDBuilder.h:78:14: warning: parameter 'Do' not found in the function declaration [-Wdocumentation]
  /// @param Do these weights come from __builtin_expect*
             ^~
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/IR/MDBuilder.h:78:14: note: did you mean 'IsExpected'?
  /// @param Do these weights come from __builtin_expect*
             ^~
             IsExpected
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21: error: use of undeclared identifier 'InterestingMemoryOperand'
    SmallVectorImpl<InterestingMemoryOperand> &Interesting);
                    ^
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: error: use of undeclared identifier 'InterestingMemoryOperand'; did you mean 'getInterestingMemoryOperands'?
    SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~
                    getInterestingMemoryOperands
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:53:6: note: 'getInterestingMemoryOperands' declared here
void getInterestingMemoryOperands(
     ^
2 warnings and 2 errors generated.
93.779 [237/33/5693] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUUnifyDivergentExitNodes.cpp.o
94.323 [237/32/5694] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86CodeGenPassBuilder.cpp.o
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp:13:
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/Target/X86/X86ISelDAGToDAG.h:12:
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/CodeGen/SelectionDAGISel.h:19:
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/CodeGen/SelectionDAG.h:33:
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/CodeGen/SelectionDAGNodes.h:2189:10: warning: HTML start tag prematurely ended, expected attribute name or '>' [-Wdocumentation]
  /// "<a, a+n, a+2n, a+3n, ...>" where a is integer and n is a non-zero integer,
         ^

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 9, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-expensive-checks-debian running on gribozavr4 while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:

Step 5 (build-unified-tree) failure: build (failure)
...
57.324 [96/57/3774] Copying llvm-locstats into /b/1/llvm-clang-x86_64-expensive-checks-debian/build/./bin
57.341 [96/56/3775] Linking CXX executable bin/llvm-rtdyld
57.435 [96/55/3776] Linking CXX executable bin/sancov
57.440 [96/54/3777] Linking CXX executable bin/llvm-nm
57.486 [96/53/3778] Linking CXX executable bin/llvm-objdump
57.490 [95/53/3779] Generating ../../bin/llvm-otool
57.502 [95/52/3780] Linking CXX executable bin/llvm-debuginfo-analyzer
57.605 [95/51/3781] Linking CXX executable bin/llvm-cfi-verify
59.176 [95/50/3782] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMISelLowering.cpp.o
61.235 [95/49/3783] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DEXPENSIVE_CHECKS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/1/llvm-clang-x86_64-expensive-checks-debian/build/lib/Target/AMDGPU -I/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/Target/AMDGPU -I/b/1/llvm-clang-x86_64-expensive-checks-debian/build/include -I/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/include -U_GLIBCXX_DEBUG -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -c /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
In file included from /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21: error: use of undeclared identifier 'InterestingMemoryOperand'
    SmallVectorImpl<InterestingMemoryOperand> &Interesting);
                    ^
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: error: use of undeclared identifier 'InterestingMemoryOperand'; did you mean 'getInterestingMemoryOperands'?
    SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~
                    getInterestingMemoryOperands
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:53:6: note: 'getInterestingMemoryOperands' declared here
void getInterestingMemoryOperands(
     ^
2 errors generated.
61.669 [95/48/3784] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceUsingSimplifyCFG.cpp.o
62.013 [95/47/3785] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUUnifyDivergentExitNodes.cpp.o
62.905 [95/46/3786] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilderPipelines.cpp.o
64.393 [95/45/3787] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/MarkLive.cpp.o
64.539 [95/44/3788] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/RunIRPasses.cpp.o
65.084 [95/43/3789] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/LTO.cpp.o
65.217 [95/42/3790] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600TargetTransformInfo.cpp.o
65.834 [95/41/3791] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64ISelLowering.cpp.o
65.890 [95/40/3792] Building CXX object tools/lld/ELF/CMakeFiles/lldELF.dir/LTO.cpp.o
66.110 [95/39/3793] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/InputChunks.cpp.o
66.300 [95/38/3794] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
66.424 [95/37/3795] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/Symbols.cpp.o
66.728 [95/36/3796] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/OutputSegment.cpp.o
66.821 [95/35/3797] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUSplitModule.cpp.o
66.885 [95/34/3798] Building CXX object tools/llvm-lto/CMakeFiles/llvm-lto.dir/llvm-lto.cpp.o
67.180 [95/33/3799] Building CXX object tools/lto/CMakeFiles/LTO.dir/lto.cpp.o
67.190 [95/32/3800] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/SyntheticSections.cpp.o
67.219 [95/31/3801] Building CXX object tools/bugpoint/CMakeFiles/bugpoint.dir/CrashDebugger.cpp.o
67.315 [95/30/3802] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/MapFile.cpp.o
67.508 [95/29/3803] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/OutputSections.cpp.o
67.522 [95/28/3804] Building CXX object tools/lld/MachO/CMakeFiles/lldMachO.dir/DriverUtils.cpp.o
67.661 [95/27/3805] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/ReducerWorkItem.cpp.o
67.730 [95/26/3806] Building CXX object tools/lld/wasm/CMakeFiles/lldWasm.dir/Relocations.cpp.o
67.750 [95/25/3807] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/NewPMDriver.cpp.o
67.757 [95/24/3808] Building CXX object tools/lld/MachO/CMakeFiles/lldMachO.dir/LTO.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 9, 2024

LLVM Buildbot has detected a new failure on builder llvm-x86_64-debian-dylib running on gribozavr4 while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:

Step 5 (build-unified-tree) failure: build (failure)
...
48.041 [1410/46/5490] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreTargetMachine.cpp.o
48.060 [1409/46/5491] Linking CXX static library lib/libLLVMXCoreCodeGen.a
48.626 [1409/45/5492] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyTargetMachine.cpp.o
48.660 [1408/45/5493] Linking CXX static library lib/libLLVMWebAssemblyCodeGen.a
48.757 [1408/44/5494] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVTargetMachine.cpp.o
49.028 [1408/43/5495] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86TargetMachine.cpp.o
49.069 [1408/42/5496] Building CXX object lib/Target/SystemZ/CMakeFiles/LLVMSystemZCodeGen.dir/SystemZISelLowering.cpp.o
49.093 [1407/42/5497] Linking CXX static library lib/libLLVMSystemZCodeGen.a
49.417 [1407/41/5498] Building CXX object tools/clang/tools/clang-fuzzer/handle-llvm/CMakeFiles/obj.clangHandleLLVM.dir/handle_llvm.cpp.o
49.465 [1407/40/5499] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/1/llvm-x86_64-debian-dylib/build/lib/Target/AMDGPU -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/Target/AMDGPU -I/b/1/llvm-x86_64-debian-dylib/build/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUAsanInstrumentation.cpp.o -c /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
In file included from /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:9:
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21: error: use of undeclared identifier 'InterestingMemoryOperand'
    SmallVectorImpl<InterestingMemoryOperand> &Interesting);
                    ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp:184:21: error: use of undeclared identifier 'InterestingMemoryOperand'; did you mean 'getInterestingMemoryOperands'?
    SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~
                    getInterestingMemoryOperands
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:53:6: note: 'getInterestingMemoryOperands' declared here
void getInterestingMemoryOperands(
     ^
2 errors generated.
49.743 [1407/39/5500] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUUnifyDivergentExitNodes.cpp.o
49.948 [1407/38/5501] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceUsingSimplifyCFG.cpp.o
50.430 [1407/37/5502] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86TargetTransformInfo.cpp.o
50.786 [1407/36/5503] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86InstCombineIntrinsic.cpp.o
51.303 [1407/35/5504] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o
51.622 [1407/34/5505] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86CodeGenPassBuilder.cpp.o
52.945 [1407/33/5506] Building CXX object unittests/Passes/Plugins/DoublerPlugin/CMakeFiles/DoublerPlugin.dir/DoublerPlugin.cpp.o
53.101 [1407/32/5507] Building CXX object unittests/Analysis/InlineAdvisorPlugin/CMakeFiles/InlineAdvisorPlugin.dir/InlineAdvisorPlugin.cpp.o
53.117 [1407/31/5508] Building CXX object unittests/Analysis/InlineOrderPlugin/CMakeFiles/InlineOrderPlugin.dir/InlineOrderPlugin.cpp.o
53.306 [1407/30/5509] Building CXX object examples/Bye/CMakeFiles/Bye.dir/Bye.cpp.o
53.444 [1407/29/5510] Building CXX object unittests/Passes/Plugins/TestPlugin/CMakeFiles/TestPlugin.dir/TestPlugin.cpp.o
53.465 [1407/28/5511] Building CXX object examples/IRTransforms/CMakeFiles/ExampleIRTransforms.dir/SimplifyCFG.cpp.o
53.557 [1407/27/5512] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/RunIRPasses.cpp.o
53.973 [1407/26/5513] Building CXX object tools/lto/CMakeFiles/LTO.dir/lto.cpp.o
54.017 [1407/25/5514] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600TargetTransformInfo.cpp.o
54.169 [1407/24/5515] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMISelLowering.cpp.o
54.714 [1407/23/5516] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/AttributorAttributes.cpp.o
54.738 [1407/22/5517] Building CXX object tools/llvm-extract/CMakeFiles/llvm-extract.dir/llvm-extract.cpp.o
54.847 [1407/21/5518] Building CXX object tools/llvm-opt-fuzzer/CMakeFiles/llvm-opt-fuzzer.dir/llvm-opt-fuzzer.cpp.o
54.917 [1407/20/5519] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUSplitModule.cpp.o
54.999 [1407/19/5520] Building CXX object tools/bugpoint/CMakeFiles/bugpoint.dir/CrashDebugger.cpp.o
55.326 [1407/18/5521] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/R600CodeGenPassBuilder.cpp.o
55.808 [1407/17/5522] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUInstCombineIntrinsic.cpp.o
55.908 [1407/16/5523] Building CXX object tools/llvm-lto/CMakeFiles/llvm-lto.dir/llvm-lto.cpp.o
56.063 [1407/15/5524] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilderPipelines.cpp.o

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.

6 participants