[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 03:22:47 PDT 2024
================
@@ -34,16 +35,22 @@ class VTAny<int value> : ValueType<0, value> {
class VTInt<int size, int value>
: ValueType<size, value> {
+ let LLVMTyForEVT = !strconcat("Type::getIntNTy(Context, ",
+ !cast<string>(size), ")");
let isInteger = true;
}
-class VTFP<int size, int value>
+class VTFP<int size, string LLVMTy, int value>
: ValueType<size, value> {
+ let LLVMTyForEVT = !strconcat("Type::get", LLVMTy, "(Context)");
----------------
kito-cheng wrote:
Yeah, make sense, thanks for the suggestion :)
https://github.com/llvm/llvm-project/pull/96608
More information about the llvm-commits
mailing list