[clang] [DO NOT MERGE][clang][RISCV] Introduce OFP8(E4M3, E5M2) RISC-V vector types (PR #191349)
Brandon Wu via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 11 05:44:33 PDT 2026
================
@@ -327,9 +331,13 @@ void RVVType::initTypeStr() {
Str += getTypeString("int");
break;
case ScalarTypeKind::UnsignedInteger:
+ Str += getTypeString("uint");
+ break;
case ScalarTypeKind::FloatE4M3:
+ Str += Twine("vfloat8e4m3" + LMUL.str() + "_t").str();
+ break;
case ScalarTypeKind::FloatE5M2:
- Str += getTypeString("uint");
+ Str += Twine("vfloat8e5m2" + LMUL.str() + "_t").str();
----------------
4vtomat wrote:
I think it doesn't even need Twine
https://github.com/llvm/llvm-project/pull/191349
More information about the cfe-commits
mailing list