Displaying 1 result from an estimated 1 matches for "registercodegenflag".
Did you mean:
registercodegenflags
2020 Mar 18
2
Replace MCTargetOptionsCommandFlags.inc and CommandFlags.inc by runtime registration
...uation like this:
https://bugzilla.redhat.com/show_bug.cgi?id=1756977#c5
And overall, having static options registred in « header » file is not the
panacea.
Current situation has moved to a more robust approach. options are registered
through static objects declared in the constructor of
codegen::RegisterCodeGenFlags that lies in libLLVMCodeGen. That way, when a static instance of
codegen::RegisterCodeGenFlags is created, all options are registered, and they
can only be registered once. If codegen::RegisterCodeGenFlags is not created,
the options are not registered.
Note that this approach could be used for *...