diff --git a/llvm/lib/Support/DebugOptions.h b/llvm/lib/Support/DebugOptions.h --- a/llvm/lib/Support/DebugOptions.h +++ b/llvm/lib/Support/DebugOptions.h @@ -11,6 +11,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_SUPPORT_DEBUGOPTIONS_H +#define LLVM_SUPPORT_DEBUGOPTIONS_H + namespace llvm { // These are invoked internally before parsing command line options. @@ -27,3 +30,5 @@ void initRandomSeedOptions(); } // namespace llvm + +#endif // LLVM_SUPPORT_DEBUGOPTIONS_H diff --git a/llvm/lib/Target/AArch64/Utils/AArch64SMEAttributes.h b/llvm/lib/Target/AArch64/Utils/AArch64SMEAttributes.h --- a/llvm/lib/Target/AArch64/Utils/AArch64SMEAttributes.h +++ b/llvm/lib/Target/AArch64/Utils/AArch64SMEAttributes.h @@ -6,10 +6,11 @@ // //===----------------------------------------------------------------------===// -#include "llvm/IR/Function.h" - #ifndef LLVM_LIB_TARGET_AARCH64_UTILS_AARCH64SMEATTRIBUTES_H #define LLVM_LIB_TARGET_AARCH64_UTILS_AARCH64SMEATTRIBUTES_H + +#include "llvm/IR/Function.h" + namespace llvm { class Function; diff --git a/llvm/lib/Target/AMDGPU/AMDGPUCombinerHelper.h b/llvm/lib/Target/AMDGPU/AMDGPUCombinerHelper.h --- a/llvm/lib/Target/AMDGPU/AMDGPUCombinerHelper.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUCombinerHelper.h @@ -12,6 +12,9 @@ /// //===----------------------------------------------------------------------===// +#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUCOMBINERHELPER_H +#define LLVM_LIB_TARGET_AMDGPU_AMDGPUCOMBINERHELPER_H + #include "llvm/CodeGen/GlobalISel/Combiner.h" #include "llvm/CodeGen/GlobalISel/CombinerHelper.h" @@ -29,3 +32,5 @@ void applyExpandPromotedF16FMed3(MachineInstr &MI, Register Src0, Register Src1, Register Src2); }; + +#endif // LLVM_LIB_TARGET_AMDGPU_AMDGPUCOMBINERHELPER_H diff --git a/llvm/lib/Target/AMDGPU/AMDGPUUnifyDivergentExitNodes.h b/llvm/lib/Target/AMDGPU/AMDGPUUnifyDivergentExitNodes.h --- a/llvm/lib/Target/AMDGPU/AMDGPUUnifyDivergentExitNodes.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUUnifyDivergentExitNodes.h @@ -19,6 +19,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUUNIFYDIVERGENTEXITNODES_H +#define LLVM_LIB_TARGET_AMDGPU_AMDGPUUNIFYDIVERGENTEXITNODES_H + #include "AMDGPU.h" namespace llvm { @@ -29,3 +32,5 @@ }; } // end namespace llvm + +#endif // LLVM_LIB_TARGET_AMDGPU_AMDGPUUNIFYDIVERGENTEXITNODES_H diff --git a/llvm/lib/Target/DirectX/DXILResourceAnalysis.h b/llvm/lib/Target/DirectX/DXILResourceAnalysis.h --- a/llvm/lib/Target/DirectX/DXILResourceAnalysis.h +++ b/llvm/lib/Target/DirectX/DXILResourceAnalysis.h @@ -10,6 +10,9 @@ /// //===----------------------------------------------------------------------===// +#ifndef LLVM_TARGET_DIRECTX_DXILRESOURCEANALYSIS_H +#define LLVM_TARGET_DIRECTX_DXILRESOURCEANALYSIS_H + #include "DXILResource.h" #include "llvm/IR/PassManager.h" #include "llvm/Pass.h" @@ -54,3 +57,5 @@ void print(raw_ostream &O, const Module *M = nullptr) const override; }; } // namespace llvm + +#endif // LLVM_TARGET_DIRECTX_DXILRESOURCEANALYSIS_H diff --git a/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.h b/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.h --- a/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.h +++ b/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.h @@ -10,6 +10,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_DXILWRITER_DXILBITCODEWRITER_H +#define LLVM_DXILWRITER_DXILBITCODEWRITER_H + #include "llvm/ADT/StringRef.h" #include "llvm/IR/ModuleSummaryIndex.h" #include "llvm/MC/StringTableBuilder.h" @@ -61,3 +64,5 @@ } // namespace dxil } // namespace llvm + +#endif // LLVM_DXILWRITER_DXILBITCODEWRITER_H diff --git a/llvm/lib/Target/SystemZ/SystemZMachineScheduler.h b/llvm/lib/Target/SystemZ/SystemZMachineScheduler.h --- a/llvm/lib/Target/SystemZ/SystemZMachineScheduler.h +++ b/llvm/lib/Target/SystemZ/SystemZMachineScheduler.h @@ -14,14 +14,14 @@ // region of each MBB, so that a successor block can learn from it. //===----------------------------------------------------------------------===// +#ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZMACHINESCHEDULER_H +#define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZMACHINESCHEDULER_H + #include "SystemZHazardRecognizer.h" #include "llvm/CodeGen/MachineScheduler.h" #include "llvm/CodeGen/ScheduleDAG.h" #include -#ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZMACHINESCHEDULER_H -#define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZMACHINESCHEDULER_H - using namespace llvm; namespace llvm {