[llvm] [TableGen][DecoderEmitter] Add option to emit type-specialized `decodeToMCInst` (PR #146593)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 15 03:17:05 PDT 2025
================
@@ -216,6 +217,20 @@ struct EncodingIDAndOpcode {
using EncodingIDsVec = std::vector<EncodingIDAndOpcode>;
using NamespacesHwModesMap = std::map<std::string, std::set<StringRef>>;
+// A struct to represent the C++ type for the instruction payload.
+struct CPPType {
+ enum TypeKind { TemplateTy, UIntTy, APIntTy, BitsetTy } Kind;
----------------
s-barannikov wrote:
May Template -> Custom be cleaner?
https://github.com/llvm/llvm-project/pull/146593
More information about the llvm-commits
mailing list