[llvm] [llvm] Remove declarations without definitions (NFC) (PR #225020)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 21 00:16:37 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-ir
@llvm/pr-subscribers-llvm-mc
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
ThreadSafeTrieRawHashMapBase::getImpl in
llvm/include/llvm/ADT/TrieRawHashMap.h: Added on October 29, 2024 in
commit b510cdb895b9188e5819c4c85a6dab22a4d14385 without a definition or
any callers.
MIRAddFSDiscriminators::getNumFSBBs and
MIRAddFSDiscriminators::getNumFSSamples in
llvm/include/llvm/CodeGen/MIRFSDiscriminator.h: Added on May 18, 2021 in
commit 886629a8c9e58752627d8ae7abf6fa93191a3df8 without definitions or
any callers.
MIRProfileLoaderPass::init in
llvm/include/llvm/CodeGen/MIRSampleProfile.h: Added on August 18, 2021
in commit 5fdaaf7fd8f35ac9c9de50a45b09e29c7b0d48c4 without a definition
or any callers.
ModuloScheduleExpanderMVE::generateKernelPhi in
llvm/include/llvm/CodeGen/ModuloSchedule.h: Added on June 12, 2024 in
commit 0c5319e546321d7a766999e49e0ccf801ff2b3dc without a definition or
any callers.
codeview::DebugFrameDataSubsection::setFrames in
llvm/include/llvm/DebugInfo/CodeView/DebugFrameDataSubsection.h: Added
on June 14, 2017 in commit a8cfc29c9a3e39a18f576a2820a7a259654fe953
without a definition or any callers.
gsym::DwarfTransformer::parse in
llvm/include/llvm/DebugInfo/GSYM/DwarfTransformer.h: Added on
February 11, 2020 in commit 19602b71949db1f840b262558c832c5f73722c7e
without a definition or any callers.
logicalview::LVLogicalVisitor::printMemberAttributes (both overloads) in
llvm/include/llvm/DebugInfo/LogicalView/Readers/LVCodeViewVisitor.h:
Added on February 27, 2023 in commit
e7950fceb1e7f82370f6cff80b258e552eb410a6 without definitions or any
callers.
pdb::InfoStreamBuilder::finalize in
llvm/include/llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h: Added on
January 20, 2017 in commit 60667ca0b2b95ee25dace3f8627feda5a904cd8f
without a definition or any callers.
orc::SimpleCompiler::manglingOptionsForTargetMachine in
llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h: Added on
January 21, 2020 in commit ce2207abaf9a925b35f15ef92aaff6b301ba6d22
without a definition or any callers.
orc::DLLImportDefinitionGenerator::getTargetPointerSize and
orc::DLLImportDefinitionGenerator::getEndianness in
llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h: The definitions
and callers were removed on January 14, 2025 in commit
4eaff6c58ae2f130ac8d63cf2c87bbb483114876.
orc::IRMaterializationUnit::getInitSymbol in
llvm/include/llvm/ExecutionEngine/Orc/Layer.h: Added on December 16,
2019 in commit 85fb997659b55101b58e3545733e581bf4ed9cf2 without a
definition or any callers.
orc::loadMachOLinkableFile in
llvm/include/llvm/ExecutionEngine/Orc/MachO.h: Added on August 28, 2024
in commit 7a4013f029c4d360a9374ff49b5d17479fcb03df without a definition
or any callers (when renaming loadMachORelocatableObject in the header
while leaving the definition in MachO.cpp named
loadMachORelocatableObject).
RuntimeDyldChecker::getSectionLoadAddress in
llvm/include/llvm/ExecutionEngine/RuntimeDyldChecker.h: The definition
and callers were removed on April 8, 2019 in commit
941f247d30c447903107aa614ea46fb1e4019698.
hlsl::rootsig::verifyRangeType in
llvm/include/llvm/Frontend/HLSL/RootSignatureValidations.h: The
definition and caller were removed on September 10, 2025 in commit
9e778f6cd155f64896a9a0580e96aa4814ca999b.
FenceInst::Init in llvm/include/llvm/IR/Instructions.h: Added on
July 25, 2011 in commit fee02c6c1378f7244e05157aa9b07da77061fb64 without
a definition or any callers.
initializeDXILMetadataAnalysisWrapperPrinterPass and
initializeLogicalSROALegacyPassPass in
llvm/include/llvm/InitializePasses.h:
initializeDXILMetadataAnalysisWrapperPrinterPass was added on August 12,
2024 in commit 03e6675fc78783d0d0b0a784eccbd5ff19de23a2, and
initializeLogicalSROALegacyPassPass was added on July 20, 2026 in commit
03b5c5285eaf0acdc1dc30c5be6e0a7cefeab16f, both without definitions or
any callers.
createCustomBehaviour, createInstrPostProcess, and
createInstrumentManager in llvm/include/llvm/MC/TargetRegistry.h:
createCustomBehaviour and createInstrPostProcess were added on July 24,
2021 in commit dbed061bf13b74cbbe6de3062f7f50481dd45ac4, and
createInstrumentManager was added on November 4, 2022 in commit
98e342dca23729dd4e9cdc5f25c647d617b94283, all without definitions or any
callers (only the corresponding methods on Target were defined).
object::DXContainer::parseSignature in
llvm/include/llvm/Object/DXContainer.h: Added on October 5, 2023 in
commit 9f87522b121a08b97aff433e8b53dec1acf7c9d0 without a definition or
any callers.
object::Record::getContinuousData and
object::{TXTRecord,HDRRecord,ESDRecord,RLDRecord,ENDRecord}::getData in
llvm/include/llvm/Object/GOFF.h: RLDRecord::getData was added on
April 28, 2023 in commit 2fa6bcf02f1585df3af6d0081215e23c07421f43
without a definition or any callers; the definitions and callers of
Record::getContinuousData, TXTRecord::getData, HDRRecord::getData,
ESDRecord::getData, and ENDRecord::getData were removed on August 13,
2026 in commit 5f59554a392283f9f047b51ca5e562179e2e37d8.
GCOVBlock::getLineCount in llvm/include/llvm/ProfileData/GCOV.h: The
definition and callers were removed on September 13, 2020 in commit
4d7b19454397103620394dcceaf29592ef195231.
sandboxir::CmpInst::createCommon in
llvm/include/llvm/SandboxIR/Instruction.h: Added on September 4, 2024 in
commit 840da2e8ba7e0f77938adfc6f6d315137542a1b8 without a definition or
any callers.
cl::expandResponseFiles (4-argument overload) in
llvm/include/llvm/Support/CommandLine.h: Added on August 22, 2022 in
commit b934be2c059a99351d08069bb80155e49f047b6e without a definition or
any callers.
DebugCounter::parseChunks in llvm/include/llvm/Support/DebugCounter.h:
The definition and callers were removed on January 5, 2026 in commit
7f9a00e59c569110ac2bdaa5f21d26eff9c1de65.
sys::fs::status_known (2-argument overload) in
llvm/include/llvm/Support/FileSystem.h: Added on November 24, 2010 in
commit 96bcfcf2c2907519cd765debce94082f421f0829 without a definition or
any callers.
Xtensa::getCPUFeatures and Xtensa::fillValidCPUList in
llvm/include/llvm/TargetParser/XtensaTargetParser.h: Added on August 12,
2025 in commit 48da8489f2c1d416658527f6b806d618abd5ab73 without matching
definitions or any callers (XtensaTargetParser.cpp defined overloads
taking std::vector<StringRef> & instead of
SmallVectorImpl<StringRef> &).
Assisted-by: Antigravity
---
Full diff: https://github.com/llvm/llvm-project/pull/225020.diff
25 Files Affected:
- (modified) llvm/include/llvm/ADT/TrieRawHashMap.h (-1)
- (modified) llvm/include/llvm/CodeGen/MIRFSDiscriminator.h (-7)
- (modified) llvm/include/llvm/CodeGen/MIRSampleProfile.h (-1)
- (modified) llvm/include/llvm/CodeGen/ModuloSchedule.h (-4)
- (modified) llvm/include/llvm/DebugInfo/CodeView/DebugFrameDataSubsection.h (-1)
- (modified) llvm/include/llvm/DebugInfo/GSYM/DwarfTransformer.h (-4)
- (modified) llvm/include/llvm/DebugInfo/LogicalView/Readers/LVCodeViewVisitor.h (-3)
- (modified) llvm/include/llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h (-2)
- (modified) llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h (-3)
- (modified) llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h (-2)
- (modified) llvm/include/llvm/ExecutionEngine/Orc/Layer.h (-3)
- (modified) llvm/include/llvm/ExecutionEngine/Orc/MachO.h (-8)
- (modified) llvm/include/llvm/ExecutionEngine/RuntimeDyldChecker.h (-5)
- (modified) llvm/include/llvm/Frontend/HLSL/RootSignatureValidations.h (-1)
- (modified) llvm/include/llvm/IR/Instructions.h (-2)
- (modified) llvm/include/llvm/InitializePasses.h (-2)
- (modified) llvm/include/llvm/MC/TargetRegistry.h (-10)
- (modified) llvm/include/llvm/Object/DXContainer.h (-1)
- (modified) llvm/include/llvm/Object/GOFF.h (-19)
- (modified) llvm/include/llvm/ProfileData/GCOV.h (-1)
- (modified) llvm/include/llvm/SandboxIR/Instruction.h (-3)
- (modified) llvm/include/llvm/Support/CommandLine.h (-8)
- (modified) llvm/include/llvm/Support/DebugCounter.h (-5)
- (modified) llvm/include/llvm/Support/FileSystem.h (-8)
- (modified) llvm/include/llvm/TargetParser/XtensaTargetParser.h (-3)
``````````diff
diff --git a/llvm/include/llvm/ADT/TrieRawHashMap.h b/llvm/include/llvm/ADT/TrieRawHashMap.h
index a980638166765..cbe370b5531bc 100644
--- a/llvm/include/llvm/ADT/TrieRawHashMap.h
+++ b/llvm/include/llvm/ADT/TrieRawHashMap.h
@@ -178,7 +178,6 @@ class ThreadSafeTrieRawHashMapBase {
// destroyImpl.
std::atomic<ImplType *> ImplPtr;
ImplType &getOrCreateImpl();
- ImplType *getImpl() const;
};
/// Lock-free thread-safe hash-mapped trie.
diff --git a/llvm/include/llvm/CodeGen/MIRFSDiscriminator.h b/llvm/include/llvm/CodeGen/MIRFSDiscriminator.h
index f9f1937dbddf5..96ea01f3f9669 100644
--- a/llvm/include/llvm/CodeGen/MIRFSDiscriminator.h
+++ b/llvm/include/llvm/CodeGen/MIRFSDiscriminator.h
@@ -49,13 +49,6 @@ class LLVM_ABI MIRAddFSDiscriminators : public MachineFunctionPass {
return "Add FS discriminators in MIR";
}
- /// getNumFSBBs() - Return the number of machine BBs that have FS samples.
- unsigned getNumFSBBs();
-
- /// getNumFSSamples() - Return the number of samples that have flow sensitive
- /// values.
- uint64_t getNumFSSamples();
-
/// getMachineFunction - Return the current machine function.
const MachineFunction *getMachineFunction() const { return MF; }
diff --git a/llvm/include/llvm/CodeGen/MIRSampleProfile.h b/llvm/include/llvm/CodeGen/MIRSampleProfile.h
index 43639c7bb8039..f11965714b188 100644
--- a/llvm/include/llvm/CodeGen/MIRSampleProfile.h
+++ b/llvm/include/llvm/CodeGen/MIRSampleProfile.h
@@ -52,7 +52,6 @@ class LLVM_ABI MIRProfileLoaderPass : public MachineFunctionPass {
StringRef getPassName() const override { return "SampleFDO loader in MIR"; }
private:
- void init(MachineFunction &MF);
bool runOnMachineFunction(MachineFunction &) override;
bool doInitialization(Module &M) override;
void getAnalysisUsage(AnalysisUsage &AU) const override;
diff --git a/llvm/include/llvm/CodeGen/ModuloSchedule.h b/llvm/include/llvm/CodeGen/ModuloSchedule.h
index 586a3a157f3e0..981ab7ee19cc4 100644
--- a/llvm/include/llvm/CodeGen/ModuloSchedule.h
+++ b/llvm/include/llvm/CodeGen/ModuloSchedule.h
@@ -432,10 +432,6 @@ class ModuloScheduleExpanderMVE {
void updateInstrDef(MachineInstr *NewMI, ValueMapTy &VRMap, bool LastDef);
- void generateKernelPhi(Register OrigLoopVal, Register NewLoopVal,
- unsigned UnrollNum,
- SmallVectorImpl<ValueMapTy> &VRMapProlog,
- SmallVectorImpl<ValueMapTy> &VRMapPhi);
void updateInstrUse(MachineInstr *MI, int StageNum, int PhaseNum,
SmallVectorImpl<ValueMapTy> &CurVRMap,
SmallVectorImpl<ValueMapTy> *PrevVRMap);
diff --git a/llvm/include/llvm/DebugInfo/CodeView/DebugFrameDataSubsection.h b/llvm/include/llvm/DebugInfo/CodeView/DebugFrameDataSubsection.h
index 878bfa45969db..0bac2ac52d9b0 100644
--- a/llvm/include/llvm/DebugInfo/CodeView/DebugFrameDataSubsection.h
+++ b/llvm/include/llvm/DebugInfo/CodeView/DebugFrameDataSubsection.h
@@ -56,7 +56,6 @@ class LLVM_ABI DebugFrameDataSubsection final : public DebugSubsection {
Error commit(BinaryStreamWriter &Writer) const override;
void addFrameData(const FrameData &Frame);
- void setFrames(ArrayRef<FrameData> Frames);
private:
bool IncludeRelocPtr = false;
diff --git a/llvm/include/llvm/DebugInfo/GSYM/DwarfTransformer.h b/llvm/include/llvm/DebugInfo/GSYM/DwarfTransformer.h
index 2c59a5219292f..0c93196477e48 100644
--- a/llvm/include/llvm/DebugInfo/GSYM/DwarfTransformer.h
+++ b/llvm/include/llvm/DebugInfo/GSYM/DwarfTransformer.h
@@ -69,10 +69,6 @@ class DwarfTransformer {
LLVM_ABI llvm::Error verify(StringRef GsymPath, OutputAggregator &OS);
private:
-
- /// Parse the DWARF in the object file and convert it into the GsymCreator.
- Error parse();
-
/// Handle any DIE (debug info entry) from the DWARF.
///
/// This function will find all DW_TAG_subprogram DIEs that convert them into
diff --git a/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVCodeViewVisitor.h b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVCodeViewVisitor.h
index 2d1bfa6f8dcb9..639490aaecce4 100644
--- a/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVCodeViewVisitor.h
+++ b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVCodeViewVisitor.h
@@ -312,9 +312,6 @@ class LVLogicalVisitor final {
LLVM_ABI void printTypeIndex(StringRef FieldName, TypeIndex TI,
uint32_t StreamIdx);
- LLVM_ABI void printMemberAttributes(MemberAttributes Attrs);
- LLVM_ABI void printMemberAttributes(MemberAccess Access, MethodKind Kind,
- MethodOptions Options);
LLVM_ABI LVElement *createElement(TypeLeafKind Kind);
LLVM_ABI LVElement *createElement(SymbolKind Kind);
diff --git a/llvm/include/llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h b/llvm/include/llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h
index 692bc70f01238..13be06115d329 100644
--- a/llvm/include/llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h
+++ b/llvm/include/llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h
@@ -49,8 +49,6 @@ class InfoStreamBuilder {
codeview::GUID getGuid() const { return Guid; }
std::optional<uint32_t> getSignature() const { return Signature; }
- LLVM_ABI uint32_t finalize();
-
LLVM_ABI Error finalizeMsfLayout();
LLVM_ABI Error commit(const msf::MSFLayout &Layout,
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h b/llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h
index 00d0057f8ef2b..1a18edc6c6851 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h
@@ -50,9 +50,6 @@ class LLVM_ABI SimpleCompiler : public IRCompileLayer::IRCompiler {
Expected<CompileResult> operator()(Module &M) override;
private:
- IRSymbolMapper::ManglingOptions
- manglingOptionsForTargetMachine(const TargetMachine &TM);
-
CompileResult tryToLoadFromObjectCache(const Module &M);
void notifyObjectCompiled(const Module &M, const MemoryBuffer &ObjBuffer);
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h b/llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h
index e42c902568a07..19c0912a26110 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h
@@ -370,8 +370,6 @@ class LLVM_ABI DLLImportDefinitionGenerator : public DefinitionGenerator {
DLLImportDefinitionGenerator(ExecutionSession &ES, ObjectLinkingLayer &L)
: ES(ES), L(L) {}
- static Expected<unsigned> getTargetPointerSize(const Triple &TT);
- static Expected<llvm::endianness> getEndianness(const Triple &TT);
Expected<std::unique_ptr<jitlink::LinkGraph>>
createStubsGraph(const SymbolMap &Resolved);
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/Layer.h b/llvm/include/llvm/ExecutionEngine/Orc/Layer.h
index 25df380413d5b..46c028ae11b1f 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/Layer.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/Layer.h
@@ -58,9 +58,6 @@ class LLVM_ABI IRMaterializationUnit : public MaterializationUnit {
SymbolNameToDefinitionMap SymbolToDefinition;
private:
- static SymbolStringPtr getInitSymbol(ExecutionSession &ES,
- const ThreadSafeModule &TSM);
-
void discard(const JITDylib &JD, const SymbolStringPtr &Name) override;
};
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/MachO.h b/llvm/include/llvm/ExecutionEngine/Orc/MachO.h
index 0e789b5e05a75..6e52978f5be82 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/MachO.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/MachO.h
@@ -51,14 +51,6 @@ LLVM_ABI Expected<std::unique_ptr<MemoryBuffer>>
checkMachORelocatableObject(std::unique_ptr<MemoryBuffer> Obj, const Triple &TT,
bool ObjIsSlice);
-/// Load a relocatable object compatible with TT from Path.
-/// If Path is a universal binary, this function will return a buffer for the
-/// slice compatible with Triple (if one is present).
-LLVM_ABI Expected<std::pair<std::unique_ptr<MemoryBuffer>, LinkableFileKind>>
-loadMachOLinkableFile(
- StringRef Path, const Triple &TT, LoadArchives LA,
- std::optional<StringRef> IdentifierOverride = std::nullopt);
-
/// Load a compatible relocatable object (if available) from a MachO universal
/// binary.
/// Path is only used for error reporting. Identifier will be used to name the
diff --git a/llvm/include/llvm/ExecutionEngine/RuntimeDyldChecker.h b/llvm/include/llvm/ExecutionEngine/RuntimeDyldChecker.h
index 79e873c5f7219..e5a60cd50886d 100644
--- a/llvm/include/llvm/ExecutionEngine/RuntimeDyldChecker.h
+++ b/llvm/include/llvm/ExecutionEngine/RuntimeDyldChecker.h
@@ -193,11 +193,6 @@ class RuntimeDyldChecker {
LLVM_ABI std::pair<uint64_t, std::string>
getSectionAddr(StringRef FileName, StringRef SectionName, bool LocalAddress);
- /// If there is a section at the given local address, return its load
- /// address, otherwise return std::nullopt.
- LLVM_ABI std::optional<uint64_t>
- getSectionLoadAddress(void *LocalAddress) const;
-
private:
std::unique_ptr<RuntimeDyldCheckerImpl> Impl;
};
diff --git a/llvm/include/llvm/Frontend/HLSL/RootSignatureValidations.h b/llvm/include/llvm/Frontend/HLSL/RootSignatureValidations.h
index 7131980e9ff3a..ed805372e21c6 100644
--- a/llvm/include/llvm/Frontend/HLSL/RootSignatureValidations.h
+++ b/llvm/include/llvm/Frontend/HLSL/RootSignatureValidations.h
@@ -30,7 +30,6 @@ LLVM_ABI bool verifyRegisterValue(uint32_t RegisterValue);
LLVM_ABI bool verifyRegisterSpace(uint32_t RegisterSpace);
LLVM_ABI bool verifyRootDescriptorFlag(uint32_t Version,
dxbc::RootDescriptorFlags Flags);
-LLVM_ABI bool verifyRangeType(uint32_t Type);
LLVM_ABI bool verifyDescriptorRangeFlag(uint32_t Version,
dxil::ResourceClass Type,
dxbc::DescriptorRangeFlags Flags);
diff --git a/llvm/include/llvm/IR/Instructions.h b/llvm/include/llvm/IR/Instructions.h
index 00d689283479f..51a1d9ed380bc 100644
--- a/llvm/include/llvm/IR/Instructions.h
+++ b/llvm/include/llvm/IR/Instructions.h
@@ -498,8 +498,6 @@ class FenceInst : public Instruction {
constexpr static IntrusiveOperandsAllocMarker AllocMarker{0};
- void Init(AtomicOrdering Ordering, SyncScope::ID SSID);
-
protected:
// Note: Instruction needs to be a friend here to call cloneImpl.
friend class Instruction;
diff --git a/llvm/include/llvm/InitializePasses.h b/llvm/include/llvm/InitializePasses.h
index d3f7f50673336..cb5a5a2dfb306 100644
--- a/llvm/include/llvm/InitializePasses.h
+++ b/llvm/include/llvm/InitializePasses.h
@@ -87,7 +87,6 @@ LLVM_ABI void initializeDAEPass(PassRegistry &);
LLVM_ABI void initializeDCELegacyPassPass(PassRegistry &);
LLVM_ABI void initializeDSELegacyPassPass(PassRegistry &);
LLVM_ABI void initializeDXILMetadataAnalysisWrapperPassPass(PassRegistry &);
-LLVM_ABI void initializeDXILMetadataAnalysisWrapperPrinterPass(PassRegistry &);
LLVM_ABI void initializeDXILResourceBindingWrapperPassPass(PassRegistry &);
LLVM_ABI void initializeDXILResourceTypeWrapperPassPass(PassRegistry &);
LLVM_ABI void initializeDXILResourceWrapperPassPass(PassRegistry &);
@@ -171,7 +170,6 @@ LLVM_ABI void initializeLoadStoreOptLegacyPass(PassRegistry &);
LLVM_ABI void initializeLoadStoreVectorizerLegacyPassPass(PassRegistry &);
LLVM_ABI void initializeLocalStackSlotPassPass(PassRegistry &);
LLVM_ABI void initializeLocalizerLegacyPass(PassRegistry &);
-LLVM_ABI void initializeLogicalSROALegacyPassPass(PassRegistry &);
LLVM_ABI void initializeLoopDataPrefetchLegacyPassPass(PassRegistry &);
LLVM_ABI void initializeLoopInfoWrapperPassPass(PassRegistry &);
LLVM_ABI void initializeLoopPassPass(PassRegistry &);
diff --git a/llvm/include/llvm/MC/TargetRegistry.h b/llvm/include/llvm/MC/TargetRegistry.h
index e3ad54699d1c0..7f57838efcc3d 100644
--- a/llvm/include/llvm/MC/TargetRegistry.h
+++ b/llvm/include/llvm/MC/TargetRegistry.h
@@ -127,16 +127,6 @@ createMCSymbolizer(const Triple &TT, LLVMOpInfoCallback GetOpInfo,
LLVMSymbolLookupCallback SymbolLookUp, void *DisInfo,
MCContext *Ctx, std::unique_ptr<MCRelocationInfo> &&RelInfo);
-LLVM_ABI mca::CustomBehaviour *
-createCustomBehaviour(const MCSubtargetInfo &STI, const mca::SourceMgr &SrcMgr,
- const MCInstrInfo &MCII);
-
-LLVM_ABI mca::InstrPostProcess *
-createInstrPostProcess(const MCSubtargetInfo &STI, const MCInstrInfo &MCII);
-
-LLVM_ABI mca::InstrumentManager *
-createInstrumentManager(const MCSubtargetInfo &STI, const MCInstrInfo &MCII);
-
/// Target - Wrapper for Target specific information.
///
/// For registration purposes, this is a POD type so that targets can be
diff --git a/llvm/include/llvm/Object/DXContainer.h b/llvm/include/llvm/Object/DXContainer.h
index 545e8930f1458..36ede1b21330e 100644
--- a/llvm/include/llvm/Object/DXContainer.h
+++ b/llvm/include/llvm/Object/DXContainer.h
@@ -490,7 +490,6 @@ class DXContainer {
Error parseHash(StringRef Part);
Error parseRootSignature(StringRef Part);
Error parsePSVInfo(StringRef Part);
- Error parseSignature(StringRef Part, DirectX::Signature &Array);
Error parseCompilerVersionInfo(StringRef Part);
Error parseSourceInfo(StringRef Part);
Error parsePrivateData(StringRef Part);
diff --git a/llvm/include/llvm/Object/GOFF.h b/llvm/include/llvm/Object/GOFF.h
index 145c354a307cc..a1b49f7f329a4 100644
--- a/llvm/include/llvm/Object/GOFF.h
+++ b/llvm/include/llvm/Object/GOFF.h
@@ -30,10 +30,6 @@ namespace object {
/// be called from deriving classes to change values as that record specifies.
class Record {
public:
- LLVM_ABI static Error getContinuousData(const uint8_t *Record,
- uint16_t DataLength, int DataIndex,
- SmallString<256> &CompleteData);
-
static bool isContinued(const uint8_t *Record) {
uint8_t IsContinued;
getBits(Record, 1, 7, 1, IsContinued);
@@ -79,9 +75,6 @@ class TXTRecord : public Record {
/// \brief Maximum length of data; any more must go in continuation.
static const uint8_t TXTMaxDataLength = 56;
- LLVM_ABI static Error getData(const uint8_t *Record,
- SmallString<256> &CompleteData);
-
static void getElementEsdId(const uint8_t *Record, uint32_t &EsdId) {
get<uint32_t>(Record, 4, EsdId);
}
@@ -97,9 +90,6 @@ class TXTRecord : public Record {
class HDRRecord : public Record {
public:
- LLVM_ABI static Error getData(const uint8_t *Record,
- SmallString<256> &CompleteData);
-
static uint16_t getPropertyModuleLength(const uint8_t *Record) {
uint16_t Length;
get<uint16_t>(Record, 52, Length);
@@ -121,9 +111,6 @@ class ESDRecord : public Record {
static const uint16_t MaxNameLength = 32 * 1024;
public:
- LLVM_ABI static Error getData(const uint8_t *Record,
- SmallString<256> &CompleteData);
-
// ESD Get routines.
static void getSymbolType(const uint8_t *Record,
GOFF::ESDSymbolType &SymbolType) {
@@ -292,9 +279,6 @@ class ESDRecord : public Record {
class RLDRecord : public Record {
public:
- LLVM_ABI static Error getData(const uint8_t *Record,
- SmallString<256> &CompleteData);
-
static void getDataLength(const uint8_t *Record, uint16_t &Length) {
get<uint16_t>(Record, 4, Length);
}
@@ -302,9 +286,6 @@ class RLDRecord : public Record {
class ENDRecord : public Record {
public:
- LLVM_ABI static Error getData(const uint8_t *Record,
- SmallString<256> &CompleteData);
-
static uint16_t getNameLength(const uint8_t *Record) {
uint16_t Length;
get<uint16_t>(Record, 24, Length);
diff --git a/llvm/include/llvm/ProfileData/GCOV.h b/llvm/include/llvm/ProfileData/GCOV.h
index 8d9a656537c72..62ca92b2887b5 100644
--- a/llvm/include/llvm/ProfileData/GCOV.h
+++ b/llvm/include/llvm/ProfileData/GCOV.h
@@ -317,7 +317,6 @@ class GCOVBlock {
augmentOneCycle(GCOVBlock *src,
std::vector<std::pair<GCOVBlock *, size_t>> &stack);
LLVM_ABI static uint64_t getCyclesCount(const BlockVector &blocks);
- LLVM_ABI static uint64_t getLineCount(const BlockVector &Blocks);
public:
uint32_t number;
diff --git a/llvm/include/llvm/SandboxIR/Instruction.h b/llvm/include/llvm/SandboxIR/Instruction.h
index cf4fc4e867667..fe54f3da818c0 100644
--- a/llvm/include/llvm/SandboxIR/Instruction.h
+++ b/llvm/include/llvm/SandboxIR/Instruction.h
@@ -2627,9 +2627,6 @@ class CmpInst : public SingleLLVMInstructionImpl<llvm::CmpInst> {
CmpInst(llvm::CmpInst *CI, Context &Ctx, ClassID Id, Opcode Opc)
: SingleLLVMInstructionImpl(Id, Opc, CI, Ctx) {}
friend Context; // for CmpInst()
- LLVM_ABI static Value *createCommon(Value *Cond, Value *True, Value *False,
- const Twine &Name, IRBuilder<> &Builder,
- Context &Ctx);
public:
using Predicate = llvm::CmpInst::Predicate;
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h
index 96d491ad4814b..b5fe08443e513 100644
--- a/llvm/include/llvm/Support/CommandLine.h
+++ b/llvm/include/llvm/Support/CommandLine.h
@@ -2271,14 +2271,6 @@ class ExpansionContext {
LLVM_ABI Error expandResponseFiles(SmallVectorImpl<const char *> &Argv);
};
-/// A convenience helper which concatenates the options specified by the
-/// environment variable EnvVar and command line options, then expands
-/// response files recursively.
-/// \return true if all @files were expanded successfully or there were none.
-LLVM_ABI bool expandResponseFiles(int Argc, const char *const *Argv,
- const char *EnvVar,
- SmallVectorImpl<const char *> &NewArgv);
-
/// A convenience helper which supports the typical use case of expansion
/// function call.
LLVM_ABI bool ExpandResponseFiles(StringSaver &Saver,
diff --git a/llvm/include/llvm/Support/DebugCounter.h b/llvm/include/llvm/Support/DebugCounter.h
index 8df853063e994..ce690a86e1081 100644
--- a/llvm/include/llvm/Support/DebugCounter.h
+++ b/llvm/include/llvm/Support/DebugCounter.h
@@ -91,11 +91,6 @@ class DebugCounter {
LLVM_ABI static void
printChunks(raw_ostream &OS, ArrayRef<IntegerInclusiveInterval> Intervals);
- /// Return true on parsing error and print the error message on the
- /// llvm::errs()
- LLVM_ABI static bool
- parseChunks(StringRef Str, IntegerInclusiveIntervalUtils::IntervalList &Res);
-
/// Returns a reference to the singleton instance.
LLVM_ABI static DebugCounter &instance();
diff --git a/llvm/include/llvm/Support/FileSystem.h b/llvm/include/llvm/Support/FileSystem.h
index d8ebca97f2a62..8e5470661dee0 100644
--- a/llvm/include/llvm/Support/FileSystem.h
+++ b/llvm/include/llvm/Support/FileSystem.h
@@ -752,14 +752,6 @@ inline std::error_code setLastAccessAndModificationTime(const Twine &Path,
/// @returns True if status() != status_error.
LLVM_ABI bool status_known(const basic_file_status &s);
-/// Is status available?
-///
-/// @param path Input path.
-/// @param result Set to true if status() != status_error.
-/// @returns errc::success if result has been successfully set, otherwise a
-/// platform-specific error_code.
-LLVM_ABI std::error_code status_known(const Twine &path, bool &result);
-
enum CreationDisposition : unsigned {
/// CD_CreateAlways - When opening a file:
/// * If it already exists, truncate it.
diff --git a/llvm/include/llvm/TargetParser/XtensaTargetParser.h b/llvm/include/llvm/TargetParser/XtensaTargetParser.h
index be63dc0a74eaa..a00a4b2f1e429 100644
--- a/llvm/include/llvm/TargetParser/XtensaTargetParser.h
+++ b/llvm/include/llvm/TargetParser/XtensaTargetParser.h
@@ -71,9 +71,6 @@ enum XtensaFeatureKind : uint64_t {
LLVM_ABI CPUKind parseCPUKind(StringRef CPU);
LLVM_ABI StringRef getBaseName(StringRef CPU);
-LLVM_ABI void getCPUFeatures(StringRef CPU,
- SmallVectorImpl<StringRef> &Features);
-LLVM_ABI void fillValidCPUList(SmallVectorImpl<StringRef> &Values);
} // namespace Xtensa
} // namespace llvm
``````````
</details>
https://github.com/llvm/llvm-project/pull/225020
More information about the llvm-commits
mailing list