[all-commits] [llvm/llvm-project] ad43ea: [TableGen] Add support for DefaultMode in per-HwMo...

Jason Eckhardt via All-commits all-commits at lists.llvm.org
Wed Feb 28 09:47:30 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad43ea3328dad844c245caf93509c2facba1ec32
      https://github.com/llvm/llvm-project/commit/ad43ea3328dad844c245caf93509c2facba1ec32
  Author: Jason Eckhardt <jeckhardt at nvidia.com>
  Date:   2024-02-29 (Thu, 29 Feb 2024)

  Changed paths:
    A llvm/test/TableGen/HwModeEncodeDecode3.td
    M llvm/utils/TableGen/CodeEmitterGen.cpp
    M llvm/utils/TableGen/CodeGenHwModes.h
    M llvm/utils/TableGen/DecoderEmitter.cpp

  Log Message:
  -----------
  [TableGen] Add support for DefaultMode in per-HwMode encode/decode. (#83029)

Currently the decoder and encoder emitters will crash if DefaultMode is
used within an EncodingByHwMode. As can be done today for
RegInfoByHwMode and ValueTypeByHwMode, this patch adds support for this
usage in EncodingByHwMode:
  let EncodingInfos =
    EncodingByHwMode<[ModeA, DefaultMode], [EncA, EncDefault]>;



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list