This is an archive of the discontinued LLVM Phabricator instance.

Add backend name to Target to enable runtime info to be fed back into TableGen
ClosedPublic

Authored by dsanders on Nov 7 2017, 10:00 AM.

Details

Summary

Make it possible to feed runtime information back to tablegen to enable
profile-guided tablegen-eration, detection of untested tablegen definitions, etc.

Being a cross-compiler by nature, LLVM will potentially collect data for multiple
architectures (e.g. when running 'ninja check'). We therefore need a way for
TableGen to figure out what data applies to the backend it is generating at the
time. This patch achieves that by including the name of the 'def X : Target ...'
for the backend in the TargetRegistry.

Event Timeline

dsanders created this revision.Nov 7 2017, 10:00 AM
qcolombet accepted this revision.Nov 15 2017, 2:59 PM
This revision is now accepted and ready to land.Nov 15 2017, 2:59 PM
dsanders closed this revision.Nov 15 2017, 3:55 PM

Hi,

Build for ARC fails, fix TargetInfo for this target please.

Hi,

Build for ARC fails, fix TargetInfo for this target please.

I've updated ARC in r318441. I also had to fix an ambiguous overloaded operator to get ARC to build on my machine. The fix for that is in r318443