This is an archive of the discontinued LLVM Phabricator instance.

Function Annotation with Function Attributes
Needs RevisionPublic

Authored by tarinduj on Aug 9 2021, 1:06 AM.

Details

Summary

This pass provides an interface to annotate functions in the IR level, with predetermined function attributes. The attribute name and an input CSV file containing the attribute values for each function should be provided to the pass.

Diff Detail

Event Timeline

tarinduj created this revision.Aug 9 2021, 1:06 AM
tarinduj requested review of this revision.Aug 9 2021, 1:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2021, 1:06 AM
tarinduj updated this revision to Diff 365127.Aug 9 2021, 2:07 AM

Fixed case style for variable

fhahn requested changes to this revision.Aug 9 2021, 2:28 AM
fhahn added a subscriber: fhahn.

This pass changes the IR by adding new attributes, right? I think it should be under transforms then?

I am also not sure about using a command line argument to specify the attribute name and a CSV file with the values for functions. Could the attribute name also be part of the CSV? this would allow adding multiple different attributes to the function, which is not possible with the current interface I think.

This revision now requires changes to proceed.Aug 9 2021, 2:28 AM

This could use a much better description and/or an RFC - how useful is this? why is this beneficial to have?

jdoerfert requested changes to this revision.Aug 9 2021, 7:37 PM

RFC is in development, that will clear things up. This is not going in without :)