[PATCH] D31329: [globalisel][tablegen] Make it possible to declare rules directly in GlobalISel.

Daniel Sanders via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 24 06:40:13 PDT 2017


dsanders created this revision.
Herald added subscribers: igorb, kristof.beyls, dberris.

The syntax ought to be nicer but it's functional and enables testing
GlobalISelEmitter rules separately from the SelectionDAG importer.

The various emitTblgen() functions are primarily for debugging
SelectionDAG imports at this point. Rules now emit their tablegen
definition in a '#if 0' block so that we can easily see the rule the
emitter was emitting.


https://reviews.llvm.org/D31329

Files:
  include/llvm/Target/GlobalISel/Target.td
  test/TableGen/GlobalISelEmitter-GIRule.td
  utils/TableGen/GlobalISelEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31329.92933.patch
Type: text/x-patch
Size: 52270 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170324/82c9106f/attachment.bin>


More information about the llvm-commits mailing list