[llvm] [TableGen][DecoderEmitter] Add option to emit type-specialized `decodeToMCInst` (PR #146593)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 15 06:53:50 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;
----------------
jurahul wrote:
I am not sure. Custom doesn't convey the intent (i.e., it could a custom concrete type) and won't match with the option name `GenerateTemplatedDecoder` and use of the template terminology throughout the code (GenerateTemplated, emitTemplate etc).
https://github.com/llvm/llvm-project/pull/146593
More information about the llvm-commits
mailing list