@@ -51,7 +51,7 @@ def SPIRV_BitcastOp : SPIRV_Op<"Bitcast", [Pure]> {
51
51
52
52
If Result Type has a different number of components than Operand, the
53
53
total number of bits in Result Type must equal the total number of bits
54
- in Operand. Let L be the type, either Result Type or Operand’ s type,
54
+ in Operand. Let L be the type, either Result Type or Operand' s type,
55
55
that has the larger number of components. Let S be the other type, with
56
56
the smaller number of components. The number of components in L must be
57
57
an integer multiple of the number of components in S. The first
@@ -335,17 +335,17 @@ def SPIRV_UConvertOp : SPIRV_CastOp<"UConvert",
335
335
336
336
def SPIRV_ConvertPtrToUOp : SPIRV_Op<"ConvertPtrToU", []> {
337
337
let summary = [{
338
- Bit pattern-preserving conversion of a pointer to
338
+ Bit pattern-preserving conversion of a pointer to
339
339
an unsigned scalar integer of possibly different bit width.
340
340
}];
341
341
342
342
let description = [{
343
343
Result Type must be a scalar of integer type, whose Signedness operand is 0.
344
344
345
- Pointer must be a physical pointer type. If the bit width of Pointer is
346
- smaller than that of Result Type, the conversion zero extends Pointer.
347
- If the bit width of Pointer is larger than that of Result Type,
348
- the conversion truncates Pointer.
345
+ Pointer must be a physical pointer type. If the bit width of Pointer is
346
+ smaller than that of Result Type, the conversion zero extends Pointer.
347
+ If the bit width of Pointer is larger than that of Result Type,
348
+ the conversion truncates Pointer.
349
349
350
350
For same bit width Pointer and Result Type, this is the same as OpBitcast.
351
351
@@ -359,7 +359,7 @@ def SPIRV_ConvertPtrToUOp : SPIRV_Op<"ConvertPtrToU", []> {
359
359
#### Example:
360
360
361
361
```mlir
362
- %1 = spirv.ConvertPtrToU %0 : !spirv.ptr<i32, Generic> to i32
362
+ %1 = spirv.ConvertPtrToU %0 : !spirv.ptr<i32, Generic> to i32
363
363
```
364
364
}];
365
365
@@ -390,18 +390,18 @@ def SPIRV_ConvertPtrToUOp : SPIRV_Op<"ConvertPtrToU", []> {
390
390
391
391
def SPIRV_ConvertUToPtrOp : SPIRV_Op<"ConvertUToPtr", [UnsignedOp]> {
392
392
let summary = [{
393
- Bit pattern-preserving conversion of an unsigned scalar integer
393
+ Bit pattern-preserving conversion of an unsigned scalar integer
394
394
to a pointer.
395
395
}];
396
396
397
397
let description = [{
398
398
Result Type must be a physical pointer type.
399
399
400
- Integer Value must be a scalar of integer type, whose Signedness
401
- operand is 0. If the bit width of Integer Value is smaller
400
+ Integer Value must be a scalar of integer type, whose Signedness
401
+ operand is 0. If the bit width of Integer Value is smaller
402
402
than that of Result Type, the conversion zero extends Integer Value.
403
- If the bit width of Integer Value is larger than that of Result Type,
404
- the conversion truncates Integer Value.
403
+ If the bit width of Integer Value is larger than that of Result Type,
404
+ the conversion truncates Integer Value.
405
405
406
406
For same-width Integer Value and Result Type, this is the same as OpBitcast.
407
407
@@ -415,7 +415,7 @@ def SPIRV_ConvertUToPtrOp : SPIRV_Op<"ConvertUToPtr", [UnsignedOp]> {
415
415
#### Example:
416
416
417
417
```mlir
418
- %1 = spirv.ConvertUToPtr %0 : i32 to !spirv.ptr<i32, Generic>
418
+ %1 = spirv.ConvertUToPtr %0 : i32 to !spirv.ptr<i32, Generic>
419
419
```
420
420
}];
421
421
0 commit comments