This is an archive of the discontinued LLVM Phabricator instance.

[globalisel][tablegen] Make it possible to declare rules directly in GlobalISel.
Needs ReviewPublic

Authored by dsanders on Mar 24 2017, 6:40 AM.



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.