[PATCH] D93969: [TableGen] Add field kind to the RecordVal class.

Francois Pichet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 11 14:05:58 PST 2021


fpichet added a comment.

I had to add 'field' for something like: ( out of tree target)

  field string BaseOpcodeSTSrcKind;

...

  let BaseOpcodeSTSrcKind = asmstr # opVal # DataSize # PtrMode #

OffsetMode # isSub # isDS # "_ri7";

BaseOpcodeSTSrcKind is then used in InstructionMapping.
Because the initialization of "let BaseOpcodeSTSrcKind =.." is of
type BinOpInit for which isConcrete() returns false.
I am not familiar with tablegen internal enough to understand what is going
on.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93969/new/

https://reviews.llvm.org/D93969



More information about the llvm-commits mailing list