[llvm] [llvm] Add missing LLVM_ABI annotations (PR #224293)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 17 06:24:58 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-vectorizers
@llvm/pr-subscribers-llvm-mc
Author: Fabrice de Gans (Steelskin)
<details>
<summary>Changes</summary>
The automatic LLVM_ABI annotations script has been broken since #<!-- -->208780. PR #<!-- -->223354 restores its functionality. In the meantime, some API annotations regressed. This PR aims to fix all of these regressions.
This was applied by calling the updated ids-check-helper.py from #<!-- -->223354 on the public LLVM headers on a macOS host and clang-formatting the results.
---
Patch is 23.89 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/224293.diff
25 Files Affected:
- (modified) llvm/include/llvm/ADT/APInt.h (+1-2)
- (modified) llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h (+5-5)
- (modified) llvm/include/llvm/CodeGen/GlobalISel/InstructionSelect.h (+12-11)
- (modified) llvm/include/llvm/CodeGen/GlobalISel/Legalizer.h (+3-3)
- (modified) llvm/include/llvm/CodeGen/GlobalISel/LoadStoreOpt.h (+2-2)
- (modified) llvm/include/llvm/CodeGen/GlobalISel/Localizer.h (+2-2)
- (modified) llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h (+3-2)
- (modified) llvm/include/llvm/CodeGen/LiveIntervals.h (+4-3)
- (modified) llvm/include/llvm/CodeGen/MachineFunction.h (+2-2)
- (modified) llvm/include/llvm/CodeGen/RegisterClassInfo.h (+5-4)
- (modified) llvm/include/llvm/CodeGen/Rematerializer.h (+2-2)
- (modified) llvm/include/llvm/CodeGen/SelectionDAG.h (+4-4)
- (modified) llvm/include/llvm/DTLTO/DTLTO.h (+1-1)
- (modified) llvm/include/llvm/DebugInfo/PDB/Native/PDBStringTableBuilder.h (+1-1)
- (modified) llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h (+3-3)
- (modified) llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/LibraryScanner.h (+2-2)
- (modified) llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/OrcRTBootstrap.h (+2-2)
- (modified) llvm/include/llvm/IR/PassManager.h (+2-1)
- (modified) llvm/include/llvm/MC/MCAsmStreamer.h (+5-3)
- (modified) llvm/include/llvm/MC/MCGOFFObjectWriter.h (+1-1)
- (modified) llvm/include/llvm/Passes/RunCodeGen.h (+1-1)
- (modified) llvm/include/llvm/Support/RWMutex.h (+8-8)
- (modified) llvm/include/llvm/Transforms/Scalar/LogicalSROA.h (+2-2)
- (modified) llvm/include/llvm/Transforms/Utils/FunctionComparator.h (+1-1)
- (modified) llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/VecUtils.h (+1-1)
``````````diff
diff --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h
index c13677aaba0f8..4b9c23a6082c6 100644
--- a/llvm/include/llvm/ADT/APInt.h
+++ b/llvm/include/llvm/ADT/APInt.h
@@ -150,8 +150,7 @@ class [[nodiscard]] APInt {
/// Was equivalent to APInt(numBits, ArrayRef<uint64_t>(bigVal, numWords))
/// historically, but is now deleted because this constructor is prone to
/// ambiguity with the APInt(unsigned, uint64_t, bool) constructor.
- LLVM_ABI APInt(unsigned numBits, unsigned numWords,
- const uint64_t bigVal[]) = delete;
+ APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]) = delete;
/// Construct an APInt from a string representation.
///
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h b/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
index 117f03959cc45..d0053da2bc812 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
@@ -58,12 +58,12 @@ class IRTranslatorPass : public RequiredPassInfoMixin<IRTranslatorPass> {
std::unique_ptr<IRTranslatorImpl> Impl;
public:
- IRTranslatorPass(CodeGenOptLevel OptLevel);
- ~IRTranslatorPass();
- IRTranslatorPass(IRTranslatorPass &&);
+ LLVM_ABI IRTranslatorPass(CodeGenOptLevel OptLevel);
+ LLVM_ABI ~IRTranslatorPass();
+ LLVM_ABI IRTranslatorPass(IRTranslatorPass &&);
- PreservedAnalyses run(MachineFunction &MF,
- MachineFunctionAnalysisManager &MFAM);
+ LLVM_ABI PreservedAnalyses run(MachineFunction &MF,
+ MachineFunctionAnalysisManager &MFAM);
};
} // end namespace llvm
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/InstructionSelect.h b/llvm/include/llvm/CodeGen/GlobalISel/InstructionSelect.h
index d6a4537489332..b2f0f9d94178a 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/InstructionSelect.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/InstructionSelect.h
@@ -68,13 +68,14 @@ class LLVM_ABI InstructionSelectLegacy : public MachineFunctionPass {
class InstructionSelectImpl {
public:
- bool selectMachineFunction(MachineFunction &MF);
+ LLVM_ABI bool selectMachineFunction(MachineFunction &MF);
void setInstructionSelector(InstructionSelector *NewISel) { ISel = NewISel; }
- bool runOnMachineFunction(MachineFunction &MF,
- function_ref<GISelValueTracking *()> GetVT,
- function_ref<ProfileSummaryInfo *()> GetPSI,
- function_ref<BlockFrequencyInfo *()> GetBFI);
- InstructionSelectImpl(CodeGenOptLevel OL);
+ LLVM_ABI bool
+ runOnMachineFunction(MachineFunction &MF,
+ function_ref<GISelValueTracking *()> GetVT,
+ function_ref<ProfileSummaryInfo *()> GetPSI,
+ function_ref<BlockFrequencyInfo *()> GetBFI);
+ LLVM_ABI InstructionSelectImpl(CodeGenOptLevel OL);
protected:
class MIIteratorMaintainer;
@@ -86,7 +87,7 @@ class InstructionSelectImpl {
CodeGenOptLevel OptLevel = CodeGenOptLevel::None;
- bool selectInstr(MachineInstr &MI);
+ LLVM_ABI bool selectInstr(MachineInstr &MI);
};
class InstructionSelectPass
@@ -95,10 +96,10 @@ class InstructionSelectPass
bool RequireRegBankSelection = true;
public:
- InstructionSelectPass(CodeGenOptLevel OL = CodeGenOptLevel::Default,
- bool RequireRegBankSelection = true);
- PreservedAnalyses run(MachineFunction &MF,
- MachineFunctionAnalysisManager &MFAM);
+ LLVM_ABI InstructionSelectPass(CodeGenOptLevel OL = CodeGenOptLevel::Default,
+ bool RequireRegBankSelection = true);
+ LLVM_ABI PreservedAnalyses run(MachineFunction &MF,
+ MachineFunctionAnalysisManager &MFAM);
MachineFunctionProperties getRequiredProperties() const {
MachineFunctionProperties RequiredProperties;
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/Legalizer.h b/llvm/include/llvm/CodeGen/GlobalISel/Legalizer.h
index 0b69204a3f813..f7ae436414cfd 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/Legalizer.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/Legalizer.h
@@ -44,7 +44,7 @@ struct LegalizerMFResult {
const MachineInstr *FailedOn;
};
-LegalizerMFResult legalizeMachineFunction(
+LLVM_ABI LegalizerMFResult legalizeMachineFunction(
MachineFunction &MF, const LegalizerInfo &LI,
ArrayRef<GISelChangeObserver *> AuxObservers,
LostDebugLocObserver &LocObserver, MachineIRBuilder &MIRBuilder,
@@ -79,8 +79,8 @@ class LLVM_ABI LegalizerLegacy : public MachineFunctionPass {
class LegalizerPass : public RequiredPassInfoMixin<LegalizerPass> {
public:
- PreservedAnalyses run(MachineFunction &MF,
- MachineFunctionAnalysisManager &MFAM);
+ LLVM_ABI PreservedAnalyses run(MachineFunction &MF,
+ MachineFunctionAnalysisManager &MFAM);
MachineFunctionProperties getRequiredProperties() const {
return MachineFunctionProperties().setIsSSA();
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/LoadStoreOpt.h b/llvm/include/llvm/CodeGen/GlobalISel/LoadStoreOpt.h
index 847aad9eb62dc..ccff745143eb9 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/LoadStoreOpt.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/LoadStoreOpt.h
@@ -88,8 +88,8 @@ class LLVM_ABI LoadStoreOptLegacy : public MachineFunctionPass {
class LoadStoreOptPass : public RequiredPassInfoMixin<LoadStoreOptPass> {
public:
- PreservedAnalyses run(MachineFunction &MF,
- MachineFunctionAnalysisManager &MFAM);
+ LLVM_ABI PreservedAnalyses run(MachineFunction &MF,
+ MachineFunctionAnalysisManager &MFAM);
MachineFunctionProperties getRequiredProperties() const {
return MachineFunctionProperties().setIsSSA();
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/Localizer.h b/llvm/include/llvm/CodeGen/GlobalISel/Localizer.h
index 2b98c46d93d80..2e3bc6038c2ff 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/Localizer.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/Localizer.h
@@ -56,8 +56,8 @@ class LLVM_ABI LocalizerLegacy : public MachineFunctionPass {
class LocalizerPass : public RequiredPassInfoMixin<LocalizerPass> {
public:
- PreservedAnalyses run(MachineFunction &MF,
- MachineFunctionAnalysisManager &MFAM);
+ LLVM_ABI PreservedAnalyses run(MachineFunction &MF,
+ MachineFunctionAnalysisManager &MFAM);
MachineFunctionProperties getRequiredProperties() const {
return MachineFunctionProperties().setIsSSA();
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h b/llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h
index 3ba4d382451f4..980ce54c27b36 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h
@@ -116,9 +116,10 @@ class RegBankSelectPass : public RequiredPassInfoMixin<RegBankSelectPass> {
RegBankSelectMode OptMode;
public:
+ LLVM_ABI
RegBankSelectPass(RegBankSelectMode RunningMode = RegBankSelectMode::Fast);
- PreservedAnalyses run(MachineFunction &MF,
- MachineFunctionAnalysisManager &MFAM);
+ LLVM_ABI PreservedAnalyses run(MachineFunction &MF,
+ MachineFunctionAnalysisManager &MFAM);
MachineFunctionProperties getRequiredProperties() const {
return MachineFunctionProperties().setIsSSA().setLegalized();
diff --git a/llvm/include/llvm/CodeGen/LiveIntervals.h b/llvm/include/llvm/CodeGen/LiveIntervals.h
index 760dbf771efe1..acb6faf13e791 100644
--- a/llvm/include/llvm/CodeGen/LiveIntervals.h
+++ b/llvm/include/llvm/CodeGen/LiveIntervals.h
@@ -501,12 +501,13 @@ class LiveIntervals {
/// Implementation of insertMBBInMaps(). \p MBB must contain no regmask
/// operands when \p AssumeRegMaskEmpty is true.
- void insertMBBInMapsImpl(MachineBasicBlock *MBB, bool AssumeRegMaskEmpty);
+ LLVM_ABI void insertMBBInMapsImpl(MachineBasicBlock *MBB,
+ bool AssumeRegMaskEmpty);
/// Updates the regmask table for \p Orig's instructions that are moved into
/// \p SplitBB, so that the table is sliced across both blocks.
- void reassignRegMaskSlots(MachineBasicBlock &Orig,
- MachineBasicBlock &SplitBB);
+ LLVM_ABI void reassignRegMaskSlots(MachineBasicBlock &Orig,
+ MachineBasicBlock &SplitBB);
/// Walk the values in \p LI and check for dead values:
/// - Dead PHIDef values are marked as unused.
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h
index 94386510b9f8a..31a8c88516d3f 100644
--- a/llvm/include/llvm/CodeGen/MachineFunction.h
+++ b/llvm/include/llvm/CodeGen/MachineFunction.h
@@ -807,11 +807,11 @@ class LLVM_ABI MachineFunction {
/// Returns true if frame pointer elimination should be disabled for this
/// function.
- LLVM_ABI bool disableFramePointerElim() const;
+ bool disableFramePointerElim() const;
/// Returns true if the frame pointer must always either point to a new frame
/// record or be un-modified in this function.
- LLVM_ABI bool framePointerIsReserved() const;
+ bool framePointerIsReserved() const;
/// getJumpTableInfo - Return the jump table info object for the current
/// function. This object contains information about jump tables in the
diff --git a/llvm/include/llvm/CodeGen/RegisterClassInfo.h b/llvm/include/llvm/CodeGen/RegisterClassInfo.h
index ab286d8da1e07..251d928e86c0b 100644
--- a/llvm/include/llvm/CodeGen/RegisterClassInfo.h
+++ b/llvm/include/llvm/CodeGen/RegisterClassInfo.h
@@ -107,8 +107,8 @@ class RegisterClassInfo {
/// registers, register costs, and allocation orders must remain unchanged.
LLVM_ABI void updateReservedRegs(const BitVector &ReservedInput);
- LLVM_ABI bool invalidate(MachineFunction &, const PreservedAnalyses &PA,
- MachineFunctionAnalysisManager::Invalidator &) {
+ bool invalidate(MachineFunction &, const PreservedAnalyses &PA,
+ MachineFunctionAnalysisManager::Invalidator &) {
auto PAC = PA.getChecker<MachineRegisterClassAnalysis>();
return !PAC.preservedWhenStateless();
}
@@ -186,10 +186,11 @@ class MachineRegisterClassAnalysis
public:
using Result = RegisterClassInfo;
- Result run(MachineFunction &, MachineFunctionAnalysisManager &);
+ LLVM_ABI Result run(MachineFunction &, MachineFunctionAnalysisManager &);
};
-class MachineRegisterClassInfoWrapperPass : public MachineFunctionPass {
+class LLVM_ABI MachineRegisterClassInfoWrapperPass
+ : public MachineFunctionPass {
virtual void anchor();
RegisterClassInfo RCI;
diff --git a/llvm/include/llvm/CodeGen/Rematerializer.h b/llvm/include/llvm/CodeGen/Rematerializer.h
index 0b042b62d131d..9dda2a47b4387 100644
--- a/llvm/include/llvm/CodeGen/Rematerializer.h
+++ b/llvm/include/llvm/CodeGen/Rematerializer.h
@@ -462,7 +462,7 @@ class Rematerializer {
std::optional<unsigned> UseRegion = std::nullopt) const;
private:
- struct DeadDefDelegate : LiveRangeEdit::Delegate {
+ struct LLVM_ABI DeadDefDelegate : LiveRangeEdit::Delegate {
Rematerializer &Remater;
DeadDefDelegate(Rematerializer &Remater) : Remater(Remater) {}
void LRE_WillEraseInstruction(MachineInstr *MI) override;
@@ -604,7 +604,7 @@ class LLVM_ABI Rollbacker : public Rematerializer::Listener {
/// previously deleted registers.
SmallVector<MachineInstr *, 1> Defs;
- LLVM_ABI DeadReg(RegisterIdx Idx, const Rematerializer &Remater)
+ DeadReg(RegisterIdx Idx, const Rematerializer &Remater)
: Idx(Idx), DefReg(Remater.getReg(Idx).getDefReg()),
Defs(Remater.getReg(Idx).Defs) {}
};
diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h
index 4d7bc22097ee4..764858702b732 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAG.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAG.h
@@ -506,7 +506,7 @@ class SelectionDAG {
MachineFunction &getMachineFunction() const { return *MF; }
MachineFunctionAnalysisManager *getMFAM() { return MFAM; }
- bool hasSwiftErrorArg() const;
+ LLVM_ABI bool hasSwiftErrorArg() const;
CodeGenOptLevel getOptLevel() const { return OptLevel; }
const DataLayout &getDataLayout() const { return MF->getDataLayout(); }
@@ -2761,13 +2761,13 @@ class SelectionDAG {
/// Returns the maximum runtime number of elements in VT if known, or 0
/// otherwise.
- unsigned getMaxRuntimeNumElements(EVT VT) const;
+ LLVM_ABI unsigned getMaxRuntimeNumElements(EVT VT) const;
/// Returns a vector constructed from the scalar values in order. The number
/// of scalars must match the maximum runtime length of VT, but only the first
/// actual runtime length scalars are included in the result.
- SDValue buildVectorFromUnrolledParts(EVT VT, const SDLoc &DL,
- ArrayRef<SDValue> Scalars);
+ LLVM_ABI SDValue buildVectorFromUnrolledParts(EVT VT, const SDLoc &DL,
+ ArrayRef<SDValue> Scalars);
private:
#ifndef NDEBUG
diff --git a/llvm/include/llvm/DTLTO/DTLTO.h b/llvm/include/llvm/DTLTO/DTLTO.h
index 13b83ec6e0770..71c0a2f44702f 100644
--- a/llvm/include/llvm/DTLTO/DTLTO.h
+++ b/llvm/include/llvm/DTLTO/DTLTO.h
@@ -366,7 +366,7 @@ class LLVM_ABI DTLTO : public LTO {
// There can be many temporary files to remove. Performing deletion in the
// background can save a few seconds on Windows hosts.
- struct BackgroundDeletion : DefaultThreadPool {
+ struct LLVM_ABI BackgroundDeletion : DefaultThreadPool {
BackgroundDeletion();
~BackgroundDeletion();
diff --git a/llvm/include/llvm/DebugInfo/PDB/Native/PDBStringTableBuilder.h b/llvm/include/llvm/DebugInfo/PDB/Native/PDBStringTableBuilder.h
index 8deb065c4ef71..873b74d8d1c60 100644
--- a/llvm/include/llvm/DebugInfo/PDB/Native/PDBStringTableBuilder.h
+++ b/llvm/include/llvm/DebugInfo/PDB/Native/PDBStringTableBuilder.h
@@ -35,7 +35,7 @@ class PDBStringTableBuilder;
struct StringTableHashTraits {
PDBStringTableBuilder *Table;
- LLVM_ABI StringTableHashTraits() = default;
+ StringTableHashTraits() = default;
LLVM_ABI explicit StringTableHashTraits(PDBStringTableBuilder &Table);
LLVM_ABI uint32_t hashLookupKey(StringRef S) const;
LLVM_ABI StringRef storageKeyToLookupKey(uint32_t Offset) const;
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h b/llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
index 7f391863985ce..b62145b304f1e 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
@@ -286,7 +286,7 @@ class LLVM_ABI LLJIT {
/// An extended version of LLJIT that supports lazy function-at-a-time
/// compilation of LLVM IR.
-class LLLazyJIT : public LLJIT {
+class LLVM_ABI LLLazyJIT : public LLJIT {
template <typename, typename, typename> friend class LLJITBuilderSetters;
public:
@@ -296,13 +296,13 @@ class LLLazyJIT : public LLJIT {
IPLayer->setPartitionFunction(std::move(Partition));
}
- LLVM_ABI ~LLLazyJIT();
+ ~LLLazyJIT();
/// Returns a reference to the on-demand layer.
CompileOnDemandLayer &getCompileOnDemandLayer() { return *CODLayer; }
/// Add a module to be lazily compiled to JITDylib JD.
- LLVM_ABI Error addLazyIRModule(JITDylib &JD, ThreadSafeModule M);
+ Error addLazyIRModule(JITDylib &JD, ThreadSafeModule M);
/// Add a module to be lazily compiled to the main JITDylib.
Error addLazyIRModule(ThreadSafeModule M) {
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/LibraryScanner.h b/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/LibraryScanner.h
index dff659944e38d..5bc8ed7a14dbc 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/LibraryScanner.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/LibraryScanner.h
@@ -152,8 +152,8 @@ class PathResolver {
return realpathCached(Path, ec);
}
#ifndef _WIN32
- mode_t lstatCached(StringRef Path);
- std::optional<std::string> readlinkCached(StringRef Path);
+ LLVM_ABI mode_t lstatCached(StringRef Path);
+ LLVM_ABI std::optional<std::string> readlinkCached(StringRef Path);
#endif
LLVM_ABI std::optional<std::string>
realpathCached(StringRef Path, std::error_code &ec, StringRef base = "",
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/OrcRTBootstrap.h b/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/OrcRTBootstrap.h
index 8fb93ddf65eb5..e10a3d8930d60 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/OrcRTBootstrap.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/OrcRTBootstrap.h
@@ -23,10 +23,10 @@
namespace llvm::orc::rt_bootstrap {
/// Adds executor-side wrappers for the run-as function proxies.
-void addRunAsFunctionWrappersTo(StringMap<ExecutorAddr> &M);
+LLVM_ABI void addRunAsFunctionWrappersTo(StringMap<ExecutorAddr> &M);
/// Adds all default target-process bootstrap wrappers.
-void addTo(StringMap<ExecutorAddr> &M);
+LLVM_ABI void addTo(StringMap<ExecutorAddr> &M);
} // namespace llvm::orc::rt_bootstrap
diff --git a/llvm/include/llvm/IR/PassManager.h b/llvm/include/llvm/IR/PassManager.h
index 1a7581a062aed..c626e3a63ac0e 100644
--- a/llvm/include/llvm/IR/PassManager.h
+++ b/llvm/include/llvm/IR/PassManager.h
@@ -88,7 +88,8 @@ struct PassInfoMixin : detail::InfoMixin<DerivedT> {
}
};
-bool shouldSkipOptimizationForOptBisect(IRUnitRef IR, StringRef PassName);
+LLVM_ABI bool shouldSkipOptimizationForOptBisect(IRUnitRef IR,
+ StringRef PassName);
} // namespace detail
class Function;
diff --git a/llvm/include/llvm/MC/MCAsmStreamer.h b/llvm/include/llvm/MC/MCAsmStreamer.h
index 4780c7892bc12..e15929dc030fa 100644
--- a/llvm/include/llvm/MC/MCAsmStreamer.h
+++ b/llvm/include/llvm/MC/MCAsmStreamer.h
@@ -38,8 +38,9 @@ class MCAsmBaseStreamer : public MCStreamer {
raw_svector_ostream CommentStream;
raw_null_ostream NullStream;
- MCAsmBaseStreamer(MCContext &Context, std::unique_ptr<MCCodeEmitter> Emitter,
- std::unique_ptr<MCAsmBackend> AsmBackend);
+ LLVM_ABI MCAsmBaseStreamer(MCContext &Context,
+ std::unique_ptr<MCCodeEmitter> Emitter,
+ std::unique_ptr<MCAsmBackend> AsmBackend);
public:
/// Return a raw_ostream that comments can be written to.
@@ -54,7 +55,8 @@ class MCAsmBaseStreamer : public MCStreamer {
/// Add a comment showing the encoding of an instruction.
/// \param Inst - The instruction to encode.
/// \param STI - Subtarget information.
- void addEncodingComment(const MCInst &Inst, const MCSubtargetInfo &STI);
+ LLVM_ABI void addEncodingComment(const MCInst &Inst,
+ const MCSubtargetInfo &STI);
MCAssembler &getAssembler() { return *Assembler; }
};
diff --git a/llvm/include/llvm/MC/MCGOFFObjectWriter.h b/llvm/include/llvm/MC/MCGOFFObjectWriter.h
index 491bc62d9f9e3..1852ce6e560cf 100644
--- a/llvm/include/llvm/MC/MCGOFFObjectWriter.h
+++ b/llvm/include/llvm/MC/MCGOFFObjectWriter.h
@@ -116,7 +116,7 @@ LLVM_ABI std::unique_ptr<MCObjectWriter>
createGOFFObjectWriter(std::unique_ptr<MCGOFFObjectTargetWriter> MOTW,
raw_pwrite_stream &OS);
-std::unique_ptr<MCObjectWriter>
+LLVM_ABI std::unique_ptr<MCObjectWriter>
createGOFFObjectWriter(std::unique_ptr<MCGOFFObjectTargetWriter> MOTW,
raw_pwrite_stream &OS, raw_pwrite_stream &DwoOS);
} // namespace llvm
diff --git a/llvm/include/llvm/Passes/RunCodeGen.h b/llvm/include/llvm/Passes/RunCodeGen.h
index 4834b99dbe6fb..b61e171363b7d 100644
--- a/llvm/include/llvm/Passes/RunCodeGen.h
+++ b/llvm/include/llvm/Passes/RunCodeGen.h
@@ -16,7 +16,7 @@
namespace llvm {
-Error runCodeGenPipeline(
+LLVM_ABI Error runCodeGenPipeline(
TargetMachine &TM, Module &M, raw_pwrite_stream &OS,
std::unique_ptr<ToolOutputFile> &DwoOS, CodeGenFileType CGFT,
bool PrintPipelinePasses = false, bool DisableVerify = true,
diff --git a/llvm/include/llvm/Support/RWMutex.h b/llvm/include/llvm/Support/RWMutex.h
index efc1ca19a1208..67079d615bd9d 100644
--- a/llvm/include/llvm/Support/RWMutex.h
+++ b/llvm/include/llvm/Support/RWMutex.h
@@ -34,...
[truncated]
``````````
</details>
https://github.com/llvm/llvm-project/pull/224293
More information about the llvm-commits
mailing list