[llvm] [ValueTypes][NFC] Generate EVT::getTypeForEVT from GenVT.inc (PR #96608)
Kito Cheng via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 25 04:57:21 PDT 2024
================
@@ -14,6 +14,7 @@
class ValueType<int size, int value> {
string Namespace = "MVT";
string LLVMName = NAME;
+ string LLVMTy = "";
----------------
kito-cheng wrote:
This only used for floating point types, part of floating point type can inference from other fields , but some of them like bf16, ppc f128 and x86 fp80 can't, and bf16 will used by vector types, so I think keep an optional LLVMTy field should be easier to maintain here.
https://github.com/llvm/llvm-project/pull/96608
More information about the llvm-commits
mailing list