[PATCH] D115128: [TableGen][CodeEmitter] Introducing the VarLenCodeEmitterGen infrastructure
Min-Yih Hsu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 5 19:24:52 PST 2021
myhsu created this revision.
Herald added a subscriber: mgorny.
myhsu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Full write up: https://gist.github.com/mshockwave/66e98d099256deefc062633909bb7b5b
The existing CodeEmitterGen infrastructure is unable to generate encoder function for ISAs with variable-length instructions. This patch introduces a new infrastructure to support variable-length instruction encoding, including a new TableGen syntax for writing instruction encoding directives and a new TableGen backend component, VarLenCodeEmitterGen, built on top of CodeEmitterGen.
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.391952.patch
Type: text/x-patch
Size: 29498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211206/2c1c3dea/attachment.bin>
More information about the llvm-commits
mailing list