Return the expected cost of a memcpy.

Synopsis

Declared in <llvm/Analysis/TargetTransformInfo.h>

InstructionCost
getMemcpyCost(Instruction const* I) const;

Description

The cost could e.g. depend on the source/destination type and alignment and the number of bytes copied.

Return Value

The expected cost of a memcpy.

Parameters

Name

Description

I

Memcpy instruction.

Created with MrDocs