Clones functions specialized for constant call arguments under IPSCCP.
Declared in <llvm/Transforms/IPO/FunctionSpecialization.h>
class FunctionSpecializer;
Discovers profitable specializations, creates clones, updates matching call sites, and cleans up functions that become dead after specialization.
| Name | Description |
|---|---|
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. |