This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Allow clients to disable built-in transfer functions.
ClosedPublic

Authored by ymandel on Jan 25 2022, 12:39 PM.

Details

Summary

These built-in functions build the (sophisticated) model of the code's
memory. This model isn't used by all analyses, so we provide for disabling it to
avoid incurring the costs associated with its construction.

Diff Detail

Event Timeline

ymandel created this revision.Jan 25 2022, 12:39 PM
ymandel requested review of this revision.Jan 25 2022, 12:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 25 2022, 12:39 PM
sgatev accepted this revision.Jan 26 2022, 7:12 AM
sgatev added inline comments.
clang/include/clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h
44

We use /// to start a doc comment.

45

Let's add a FIXME to consider removing this if the framework gains support for composite analyses.

80

We use /// to start a doc comment.

82

Make this member const?

clang/unittests/Analysis/FlowSensitive/NoopAnalysis.h
42–48

We use /// to start a doc comment.

This revision is now accepted and ready to land.Jan 26 2022, 7:12 AM
ymandel updated this revision to Diff 403296.Jan 26 2022, 8:55 AM

addressed comments

This revision was landed with ongoing or failed builds.Jan 26 2022, 9:25 AM
This revision was automatically updated to reflect the committed changes.