This is an archive of the discontinued LLVM Phabricator instance.

[mlir] generate enum translation functions with unused attribute
ClosedPublic

Authored by ftynse on Feb 17 2021, 10:39 AM.

Details

Summary

The functions translating enums to LLVM IR are generated in a single
file included in many places, not all of which use all translations.
Generate functions with "unused" attribute to silence compiler warnings.

Diff Detail

Event Timeline

ftynse created this revision.Feb 17 2021, 10:39 AM
ftynse requested review of this revision.Feb 17 2021, 10:39 AM
mehdi_amini accepted this revision.Feb 17 2021, 11:15 AM
This revision is now accepted and ready to land.Feb 17 2021, 11:15 AM