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

Jianjian Guan llvmlistbot at llvm.org
Sun Aug 25 23:42:43 PDT 2024


jacquesguan wrote:

> Can you please update the [attribute emission](https://github.com/llvm/llvm-project/blob/19f7d82a59be6511e3a00a2d355d5348faea6e7d/mlir/lib/Target/Cpp/TranslateToCpp.cpp#L1254) to print the correct literal suffix: [godbolt](https://godbolt.org/z/oTnf3jnTq), [clang documentation](https://clang.llvm.org/docs/LanguageExtensions.html#half-precision-floating-point)

Added fp16 and bf16 to the literal emit logic.

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


More information about the Mlir-commits mailing list