[PATCH] D142079: [TableGen] Support custom decoders for variable length instructions
Min-Yih Hsu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 18 20:42:36 PST 2023
myhsu created this revision.
myhsu added reviewers: 0x59616e, RKSimon, jyknight, Paul-C-Anagnostopoulos.
Herald added a project: All.
myhsu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Just like the `encoder` directive for variable-length instructions, this patch adds a new `decoder` directive to allow custom decoder function on an operand.
Right now, due to the design of DecoderEmitter each operand can only have a single custom decoder in a given instruction.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D142079
Files:
llvm/include/llvm/Target/Target.td
llvm/test/TableGen/VarLenDecoder.td
llvm/utils/TableGen/DecoderEmitter.cpp
llvm/utils/TableGen/VarLenCodeEmitterGen.cpp
llvm/utils/TableGen/VarLenCodeEmitterGen.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142079.490369.patch
Type: text/x-patch
Size: 8036 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230119/cfb0d921/attachment.bin>
More information about the llvm-commits
mailing list