[PATCH] D115128: [TableGen][CodeEmitter] Introducing the VarLenCodeEmitterGen infrastructure

Min-Yih Hsu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 11 23:42:44 PST 2021


myhsu updated this revision to Diff 393722.
myhsu marked 5 inline comments as done.
myhsu added a comment.

- Addressed minor issues.
- Replace `const APInt InstBits[] =...` with two integer arrays to avoid static global ctor.

Now we will have two arrays, `Index` and `InstBits` that look like this:

  unsigned Index[][2] = {
    {/*NumBits*/87, /*Index to InstBits*/0}, // FOO16
    {/*NumBits*/39, /*Index to InstBits*/2}, // FOO32
  };
  uint64_t InstBits[] = {
    UINT64_C(<fixed values>), UINT64_C(...), // FOO16
    UINT64_C(...),  // FOO32
  };


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

https://reviews.llvm.org/D115128

Files:
  llvm/include/llvm/Target/Target.td
  llvm/test/TableGen/VarLenEncoder.td
  llvm/utils/TableGen/CMakeLists.txt
  llvm/utils/TableGen/CodeEmitterGen.cpp
  llvm/utils/TableGen/VarLenCodeEmitterGen.cpp
  llvm/utils/TableGen/VarLenCodeEmitterGen.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115128.393722.patch
Type: text/x-patch
Size: 34099 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211212/8c33a31c/attachment.bin>


More information about the llvm-commits mailing list