[llvm] 4c1023b - [AMDGPU] NFC: Fixing small spelling errors in AMDGPU header files
Jacob Lambert via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 16 13:03:36 PDT 2021
Author: Jacob Lambert
Date: 2021-09-16T13:03:09-07:00
New Revision: 4c1023b4b7900db3ddeec16e16018c1413ecc3db
URL: https://github.com/llvm/llvm-project/commit/4c1023b4b7900db3ddeec16e16018c1413ecc3db
DIFF: https://github.com/llvm/llvm-project/commit/4c1023b4b7900db3ddeec16e16018c1413ecc3db.diff
LOG: [AMDGPU] NFC: Fixing small spelling errors in AMDGPU header files
Nonfunctional commit fixing several minor spelling errors in llvm/lib/Target/AMDGPU header files.
Testing workflow as a new contributor.
Differential Revision: https://reviews.llvm.org/D109733
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPU.h
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
llvm/lib/Target/AMDGPU/GCNSchedStrategy.h
llvm/lib/Target/AMDGPU/GCNSubtarget.h
llvm/lib/Target/AMDGPU/R600InstrInfo.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPU.h b/llvm/lib/Target/AMDGPU/AMDGPU.h
index fdf69eb3f32e..cc69e0b6ca58 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 360835bd38e3..fb3ea10b1fd8 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<CSEConfigBase> 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<bool> &Opt,
diff --git a/llvm/lib/Target/AMDGPU/GCNSchedStrategy.h b/llvm/lib/Target/AMDGPU/GCNSchedStrategy.h
index 15eba3f5eac0..53d6ff0aa731 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 0245190a1c73..672552ff6655 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 1e249c6348f1..0624f17b7cee 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;
More information about the llvm-commits
mailing list