This struct can be used to capture information about code being cloned, while it is being cloned.

Synopsis

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

struct ClonedCodeInfo;

Member Functions

Name

Description

ClonedCodeInfo [constructor]

Construct a default‐initialized ClonedCodeInfo.

isSimplified

Return true if cloning mapped From to a simplified To.

Data Members

Name

Description

ContainsCalls

This is set to true if the cloned code contains a normal call instruction.

ContainsDynamicAllocas

Whether the cloned code contains a dynamic alloca.

ContainsMemProfMetadata

This is set to true if there is memprof related metadata (memprof or callsite metadata) in the cloned code.

OperandBundleCallSites

Cloned call sites that had operand bundles attached.

OrigVMap

Unsimplified instruction mappings used by isSimplified().

OriginallyIndirectCalls

Cloned calls that were originally an indirect call.

Created with MrDocs