[Mlir-commits] [mlir] [mlir] Support emit fp16 and bf16 type to cpp (PR #105803)

Matthias Gehre llvmlistbot at llvm.org
Fri Aug 23 02:08:30 PDT 2024


================
@@ -116,6 +116,7 @@ bool mlir::emitc::isIntegerIndexOrOpaqueType(Type type) {
 bool mlir::emitc::isSupportedFloatType(Type type) {
   if (auto floatType = llvm::dyn_cast<FloatType>(type)) {
     switch (floatType.getWidth()) {
+    case 16:
----------------
mgehre-amd wrote:

Could you please explicitly check for Float16Type and BFloat16Type here?

https://github.com/llvm/llvm-project/pull/105803


More information about the Mlir-commits mailing list