You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TableGen] Allow emitter callback to use const RecordKeeper &
- Refactor TableGen backend options to allow specifying a callback
function that takes a const reference to `RecordKeeper`. This
will enable gradual migration of code to use const references
and pointers to `RecordKeeper` and `Record` in the TableGen
backend. Add support for both forms of the callback to both
`Opt` and `OptClass`.
- Refactor handling of the callback command line options. Move
variable for the command line option from the header to the
CPP file, and add a function `ApplyCallback` to apply the
selected callback.
- Change callbacks in TableGen.cpp to take const reference. They
use the `Opt` class to define their callbacks.
- Change IntrinsicEmitter to use the `OptClass` to define its
callbacks. It already uses a const reference.
- Change global variables in TableGen.cpp to be static instead of
being in an anonymous namespace per LLVM coding standards.
0 commit comments