Skip to content

Commit

Permalink
[NFC] Fix a spelling mistake (#6946)
Browse files Browse the repository at this point in the history
We have folks implementing the `firstbithigh` intrinsic and I noticed
this SPIRV error has a misspelling.
  • Loading branch information
farzonl authored Oct 4, 2024
1 parent d6d3f02 commit b48341e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ For API clients and LLVM developers.

:doc:`CodeGenerator`
The design and implementation of the LLVM code generator. Useful if you are
working on retargetting LLVM to a new architecture, designing a new codegen
working on retargeting LLVM to a new architecture, designing a new codegen
pass, or enhancing existing components.

:doc:`TableGen <TableGen/index>`
Expand Down
2 changes: 1 addition & 1 deletion tools/clang/lib/SPIRV/EmitVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class EmitTypeHandler {
uint32_t emitType(const SpirvType *);

// Emits OpDecorate (or OpMemberDecorate if memberIndex is non-zero)
// targetting the given type. Uses the given decoration kind and its
// targeting the given type. Uses the given decoration kind and its
// parameters.
void emitDecoration(uint32_t typeResultId, spv::Decoration,
llvm::ArrayRef<uint32_t> decorationParams,
Expand Down
2 changes: 1 addition & 1 deletion tools/clang/lib/SPIRV/SpirvEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9444,7 +9444,7 @@ SpirvEmitter::processIntrinsicFirstbit(const CallExpr *callExpr,
astContext, argType, spirvOptions.enable16BitTypes);
if (bitwidth != 32) {
emitError("%0 is currently limited to 32-bit width components when "
"targetting SPIR-V",
"targeting SPIR-V",
srcLoc)
<< getFunctionOrOperatorName(callee, true);
return nullptr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
void main() {
uint64_t uint_1;
int64_t2 int_2;
// CHECK: error: firstbithigh is currently limited to 32-bit width components when targetting SPIR-V
// CHECK: error: firstbithigh is currently limited to 32-bit width components when targeting SPIR-V
int fbh = firstbithigh(uint_1);
// CHECK: error: firstbithigh is currently limited to 32-bit width components when targetting SPIR-V
// CHECK: error: firstbithigh is currently limited to 32-bit width components when targeting SPIR-V
int64_t2 fbh2 = firstbithigh(int_2);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

void main() {
uint64_t uint_1;
// CHECK: error: firstbitlow is currently limited to 32-bit width components when targetting SPIR-V
// CHECK: error: firstbitlow is currently limited to 32-bit width components when targeting SPIR-V
int fbl = firstbitlow(uint_1);
}

0 comments on commit b48341e

Please sign in to comment.