llvm::FunctionSpecializer

Clones functions specialized for constant call arguments under IPSCCP.

Synopsis

Declared in <llvm/Transforms/IPO/FunctionSpecialization.h>

class FunctionSpecializer;

Description

Discovers profitable specializations, creates clones, updates matching call sites, and cleans up functions that become dead after specialization.

Member Functions

NameDescription
FunctionSpecializer [constructor]Construct a function specializer for module M.
~FunctionSpecializer [destructor]Destroy the specializer and release owned resources.
getInstCostVisitorFor Build an instruction-cost visitor for estimating bonus on F.
isDeadFunction Return true if F was fully specialized and marked dead.
run Run function specialization over the module and return true if changed.