[PATCH] D105751: WIP/RFC: Introduce GenericMachineInstr classes and derivatives for idiomatic LLVM RTTI.

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 12 11:58:36 PDT 2021


aemerson updated this revision to Diff 358018.
aemerson added a comment.

Convert some explicit checking of MI.getOpcode() to use the new types.

Also add a templated variant of `getOpcodeDef()` that takes the class to match instead of an opcode.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105751

Files:
  llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h
  llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
  llvm/include/llvm/CodeGen/GlobalISel/Utils.h
  llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
  llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105751.358018.patch
Type: text/x-patch
Size: 20784 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210712/9ec1deeb/attachment.bin>


More information about the llvm-commits mailing list