[PATCH] D47077: [RFC][Patch 2/3] Add a MCSubtargetInfo hook to resolve variant scheduling classes.

Andrea Di Biagio via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 18 09:28:24 PDT 2018


andreadb created this revision.
andreadb added reviewers: RKSimon, filcab, gbedwell, atrick, MatzeB, rengolin, javed.absar, ab.

This patch is the second of a sequence of three patches related to LLVM-dev RFC "MC support for variant scheduling classes". http://lists.llvm.org/pipermail/llvm-dev/2018-May/123181.html

This patch requires https://reviews.llvm.org/D46695 to be applied first.

This patch introduces a new method named `MCSubtargetInfo::resolveVariantSchedClass()`, which can be used to resolve variant classes when the input is a MCInst.

This patch also teaches the SubtargetEmitter how to automatically generate the definition of that new method in a sub-class of MCSubtargetInfo named XXXGenMCSubtargetInfo (where XXX is the name of the Target).


https://reviews.llvm.org/D47077

Files:
  TableGen/InstrInfoEmitter.cpp
  TableGen/SubtargetEmitter.cpp
  llvm/MC/MCSubtargetInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47077.147533.patch
Type: text/x-patch
Size: 5525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180518/f35d5c05/attachment.bin>


More information about the llvm-commits mailing list