[PATCH] D142079: [TableGen] Support custom decoders for variable length instructions
Min-Yih Hsu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 22 22:59:32 PST 2023
myhsu added inline comments.
================
Comment at: llvm/include/llvm/Target/Target.td:806-807
+/// doesn't matter.
+/// Note that currently we cannot assign different decoders in the same
+/// (instruction) operand.
def encoder;
----------------
barannikov88 wrote:
> myhsu wrote:
> > 0x59616e wrote:
> > > Under what circumstances will we need different decoders for the same operand ?
> > I figure it's probably rare but for instance, the binary encoding of an operand was separated in two different places so the decoder has to puzzle them back.
> Is it diagnosed somewhere?
I double check with the code and found that it requires some works to report such diagnostics (e.g. print a warning if two different decoders are used on the same operand), which personally I think it's not worth it.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142079/new/
https://reviews.llvm.org/D142079
More information about the llvm-commits
mailing list