diff --git a/llvm/lib/Target/AMDGPU/AMDGPU.h b/llvm/lib/Target/AMDGPU/AMDGPU.h index fdf69eb3f32e9..cc69e0b6ca588 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPU.h +++ b/llvm/lib/Target/AMDGPU/AMDGPU.h @@ -358,9 +358,9 @@ namespace AMDGPUAS { BUFFER_FAT_POINTER = 7, ///< Address space for 160-bit buffer fat pointers. - /// Address space for direct addressible parameter memory (CONST0). + /// Address space for direct addressable parameter memory (CONST0). PARAM_D_ADDRESS = 6, - /// Address space for indirect addressible parameter memory (VTX1). + /// Address space for indirect addressable parameter memory (VTX1). PARAM_I_ADDRESS = 7, // Do not re-order the CONSTANT_BUFFER_* enums. Several places depend on diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h index 360835bd38e3c..fb3ea10b1fd8d 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h @@ -124,7 +124,7 @@ class AMDGPUPassConfig : public TargetPassConfig { std::unique_ptr getCSEConfig() const override; /// Check if a pass is enabled given \p Opt option. The option always - /// overrides defaults if explicitely used. Otherwise its default will + /// overrides defaults if explicitly used. Otherwise its default will /// be used given that a pass shall work at an optimization \p Level /// minimum. bool isPassEnabled(const cl::opt &Opt, diff --git a/llvm/lib/Target/AMDGPU/GCNSchedStrategy.h b/llvm/lib/Target/AMDGPU/GCNSchedStrategy.h index 15eba3f5eac09..53d6ff0aa7311 100644 --- a/llvm/lib/Target/AMDGPU/GCNSchedStrategy.h +++ b/llvm/lib/Target/AMDGPU/GCNSchedStrategy.h @@ -54,7 +54,7 @@ class GCNMaxOccupancySchedStrategy final : public GenericScheduler { // before a region scheduling to know if the region had such clusters. bool HasClusteredNodes; - // schedule() have seen a an excess register pressure and had to track + // schedule() have seen an excess register pressure and had to track // register pressure for actual scheduling heuristics. bool HasExcessPressure; diff --git a/llvm/lib/Target/AMDGPU/GCNSubtarget.h b/llvm/lib/Target/AMDGPU/GCNSubtarget.h index 0245190a1c731..672552ff66557 100644 --- a/llvm/lib/Target/AMDGPU/GCNSubtarget.h +++ b/llvm/lib/Target/AMDGPU/GCNSubtarget.h @@ -265,7 +265,7 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo, return (Generation)Gen; } - /// Return the number of high bits known to be zero fror a frame index. + /// Return the number of high bits known to be zero for a frame index. unsigned getKnownHighZeroBitsForFrameIndex() const { return countLeadingZeros(MaxWaveScratchSize) + getWavefrontSizeLog2(); } @@ -605,7 +605,7 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo, } /// Return if most LDS instructions have an m0 use that require m0 to be - /// iniitalized. + /// initialized. bool ldsRequiresM0Init() const { return getGeneration() < GFX9; } @@ -746,7 +746,7 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo, } // Scratch is allocated in 256 dword per wave blocks for the entire - // wavefront. When viewed from the perspecive of an arbitrary workitem, this + // wavefront. When viewed from the perspective of an arbitrary workitem, this // is 4-byte aligned. // // Only 4-byte alignment is really needed to access anything. Transformations diff --git a/llvm/lib/Target/AMDGPU/R600InstrInfo.h b/llvm/lib/Target/AMDGPU/R600InstrInfo.h index 1e249c6348f14..0624f17b7cee1 100644 --- a/llvm/lib/Target/AMDGPU/R600InstrInfo.h +++ b/llvm/lib/Target/AMDGPU/R600InstrInfo.h @@ -211,7 +211,7 @@ class R600InstrInfo final : public R600GenInstrInfo { bool expandPostRAPseudo(MachineInstr &MI) const override; - /// Reserve the registers that may be accesed using indirect addressing. + /// Reserve the registers that may be accessed using indirect addressing. void reserveIndirectRegisters(BitVector &Reserved, const MachineFunction &MF, const R600RegisterInfo &TRI) const; @@ -220,7 +220,7 @@ class R600InstrInfo final : public R600GenInstrInfo { /// \p Channel /// /// We model indirect addressing using a virtual address space that can be - /// accesed with loads and stores. The "Indirect Address" is the memory + /// accessed with loads and stores. The "Indirect Address" is the memory /// address in this virtual address space that maps to the given \p RegIndex /// and \p Channel. unsigned calculateIndirectAddress(unsigned RegIndex, unsigned Channel) const;