A cache for the CodeExtractor analysis. The operation CodeExtractor::extractCodeRegion is guaranteed not to invalidate this object. This object should conservatively be considered invalid if any other mutating operations on the IR occur.

Synopsis

Declared in <llvm/Transforms/Utils/CodeExtractor.h>

class CodeExtractorAnalysisCache;

Description

Constructing this object is O(n) in the size of the function.

Member Functions

Name

Description

CodeExtractorAnalysisCache [constructor]

Construct from Function

doesBlockContainClobberOfAddr

Check whether BB contains an instruction thought to load from, store to, or otherwise clobber the alloca Addr.

getAllocas

Get the allocas in the function at the time the analysis was created. Note that some of these allocas may no longer be present in the function, due to CodeExtractor::extractCodeRegion.

Created with MrDocs