Skip to content

Commit a656137

Browse files
committed
Remove commented out code.
1 parent 6a3d341 commit a656137

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

mlir/lib/Dialect/SPIRV/Transforms/SPIRVConversion.cpp

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -366,52 +366,6 @@ convertShaped8BitFloatType(ShapedType type,
366366
return type.clone(convertedElementType);
367367
}
368368

369-
/// Converts a sub-byte float ``type` to i32 regardless of target environment.
370-
/// Returns a nullptr for unsupported float types, including non sub-byte
371-
/// types.
372-
///
373-
/// We are treating 8 bit floats as sub-byte types here due to it's similar
374-
/// nature of being used as a packed format.
375-
376-
/// Note that we don't recognize
377-
/// sub-byte types in `spirv::ScalarType` and use the above given that these
378-
/// sub-byte types are not supported at all in SPIR-V; there are no
379-
/// compute/storage capability for them like other supported integer types.
380-
381-
// static Type convertPackedFLoatType(const SPIRVConversionOptions &options,
382-
// FloatType type) {
383-
384-
// // F4, F6, F8 types are converted to integer types with the same bit width.
385-
386-
// if (isa<Float8E5M2Type, Float8E4M3Type, Float8E4M3FNType,
387-
// Float8E5M2FNUZType,
388-
// Float8E4M3FNUZType, Float8E4M3B11FNUZType, Float8E3M4Type,
389-
// Float4E2M1FNType, Float6E2M3FNType, Float6E3M2FNType,
390-
// Float8E8M0FNUType>(type))
391-
// auto emulatedType = IntegerType::get(type.getContext(), type.getWidth());
392-
393-
// if (type.getWidth() > 8) {
394-
// LLVM_DEBUG(llvm::dbgs() << "not a packed type\n");
395-
// return nullptr;
396-
// }
397-
// if (options.subByteTypeStorage != SPIRVSubByteTypeStorage::Packed) {
398-
// LLVM_DEBUG(llvm::dbgs() << "unsupported sub-byte storage kind\n");
399-
// return nullptr;
400-
// }
401-
402-
// // if (!llvm::isPowerOf2_32(type.getWidth())) {
403-
// // LLVM_DEBUG(llvm::dbgs()
404-
// // << "unsupported non-power-of-two bitwidth in sub-byte" <<
405-
// type
406-
// // << "\n");
407-
// // return nullptr;
408-
// // }
409-
410-
// LLVM_DEBUG(llvm::dbgs() << type << " converted to 32-bit for SPIR-V\n");
411-
// return IntegerType::get(type.getContext(), /*width=*/32,
412-
// type.getSignedness());
413-
// }
414-
415369
/// Returns a type with the same shape but with any index element type converted
416370
/// to the matching integer type. This is a noop when the element type is not
417371
/// the index type.

0 commit comments

Comments
 (0)