We have folks implementing the `firstbithigh` intrinsic and I noticed
this SPIRV error has a misspelling.
This commit is contained in:
Farzon Lotfi 2024-10-04 16:05:20 -04:00 коммит произвёл GitHub
Родитель d6d3f02bac
Коммит b48341e403
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
5 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -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>`

Просмотреть файл

@ -78,7 +78,7 @@ public:
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,

Просмотреть файл

@ -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;

Просмотреть файл

@ -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);
}

Просмотреть файл

@ -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);
}