|
LLVM 24.0.0git
|
#include "llvm/Transforms/IPO/FunctionSpecialization.h"#include "IPOOptions.h"#include "llvm/ADT/Statistic.h"#include "llvm/Analysis/CodeMetrics.h"#include "llvm/Analysis/ConstantFolding.h"#include "llvm/Analysis/InlineCost.h"#include "llvm/Analysis/InstructionSimplify.h"#include "llvm/Analysis/TargetTransformInfo.h"#include "llvm/Analysis/ValueLattice.h"#include "llvm/Analysis/ValueLatticeUtils.h"#include "llvm/Analysis/ValueTracking.h"#include "llvm/Transforms/Scalar/SCCP.h"#include "llvm/Transforms/Utils/Cloning.h"#include "llvm/Transforms/Utils/SCCPSolver.h"#include "llvm/Transforms/Utils/SizeOpts.h"Go to the source code of this file.
Classes | |
| struct | llvm::DenseMapInfo< SpecSig > |
Macros | |
| #define | DEBUG_TYPE "function-specialization" |
Functions | |
| STATISTIC (NumSpecsCreated, "Number of specializations created") | |
| static void | removeSSACopy (Function &F) |
| static unsigned | getCostValue (const Cost &C) |
| Get the unsigned Value of given Cost object. | |
| static Function * | cloneCandidateFunction (Function *F, unsigned NSpecs) |
Clone the function F and remove the ssa_copy intrinsics added by the SCCPSolver in the cloned version. | |
| #define DEBUG_TYPE "function-specialization" |
Definition at line 27 of file FunctionSpecialization.cpp.
Clone the function F and remove the ssa_copy intrinsics added by the SCCPSolver in the cloned version.
Definition at line 831 of file FunctionSpecialization.cpp.
References llvm::CloneFunction(), F, removeSSACopy(), and llvm::Value::setName().
|
static |
Definition at line 549 of file FunctionSpecialization.cpp.
References llvm::dyn_cast(), F, and llvm::make_early_inc_range().
Referenced by cloneCandidateFunction().