LLVM: lib/Transforms/Utils/CloneFunction.cpp File Reference (original) (raw)
#include "[llvm/ADT/SmallVector.h](SmallVector%5F8h%5Fsource.html)"#include "[llvm/ADT/Statistic.h](Statistic%5F8h%5Fsource.html)"#include "[llvm/Analysis/ConstantFolding.h](ConstantFolding%5F8h%5Fsource.html)"#include "[llvm/Analysis/DomTreeUpdater.h](DomTreeUpdater%5F8h%5Fsource.html)"#include "[llvm/Analysis/InstructionSimplify.h](InstructionSimplify%5F8h%5Fsource.html)"#include "[llvm/Analysis/LoopInfo.h](LoopInfo%5F8h%5Fsource.html)"#include "[llvm/IR/AttributeMask.h](AttributeMask%5F8h%5Fsource.html)"#include "[llvm/IR/CFG.h](IR%5F2CFG%5F8h%5Fsource.html)"#include "[llvm/IR/Constants.h](Constants%5F8h%5Fsource.html)"#include "[llvm/IR/DebugInfo.h](llvm%5F2IR%5F2DebugInfo%5F8h%5Fsource.html)"#include "[llvm/IR/DerivedTypes.h](DerivedTypes%5F8h%5Fsource.html)"#include "[llvm/IR/Function.h](IR%5F2Function%5F8h%5Fsource.html)"#include "[llvm/IR/InstIterator.h](InstIterator%5F8h%5Fsource.html)"#include "[llvm/IR/Instructions.h](Instructions%5F8h%5Fsource.html)"#include "[llvm/IR/IntrinsicInst.h](IR%5F2IntrinsicInst%5F8h%5Fsource.html)"#include "[llvm/IR/LLVMContext.h](LLVMContext%5F8h%5Fsource.html)"#include "[llvm/IR/MDBuilder.h](MDBuilder%5F8h%5Fsource.html)"#include "[llvm/IR/Metadata.h](Metadata%5F8h%5Fsource.html)"#include "[llvm/IR/Module.h](IR%5F2Module%5F8h%5Fsource.html)"#include "[llvm/Transforms/Utils/BasicBlockUtils.h](BasicBlockUtils%5F8h%5Fsource.html)"#include "[llvm/Transforms/Utils/Cloning.h](Cloning%5F8h%5Fsource.html)"#include "[llvm/Transforms/Utils/Local.h](Transforms%5F2Utils%5F2Local%5F8h%5Fsource.html)"#include "[llvm/Transforms/Utils/ValueMapper.h](ValueMapper%5F8h%5Fsource.html)"#include <map>#include <optional>
Go to the source code of this file.
| Macros | |
|---|---|
| #define | DEBUG_TYPE "clone-function" |
| Functions | |
|---|---|
| STATISTIC (RemappedAtomMax, "Highest global NextAtomGroup (after mapping)") | |
| static void | collectDebugInfoFromInstructions (const Function &F, DebugInfoFinder &DIFinder) |
| static MetadataPredicate | createIdentityMDPredicate (const Function &F, CloneFunctionChangeType Changes) |
Macro Definition Documentation
◆ DEBUG_TYPE
#define DEBUG_TYPE "clone-function"
Definition at line 42 of file CloneFunction.cpp.
Function Documentation
◆ collectDebugInfoFromInstructions()
| void collectDebugInfoFromInstructions ( const Function & F, DebugInfoFinder & DIFinder ) | static |
|---|
Definition at line 65 of file CloneFunction.cpp.
References F, I, instructions, and llvm::DebugInfoFinder::processInstruction().
Referenced by llvm::CloneFunctionInto().
◆ createIdentityMDPredicate()
| MetadataPredicate createIdentityMDPredicate ( const Function & F, CloneFunctionChangeType Changes ) | static |
|---|
Definition at line 78 of file CloneFunction.cpp.
References llvm::DifferentModule, llvm::dyn_cast(), llvm::dyn_cast_or_null(), F, and llvm::isa().
Referenced by llvm::CloneFunctionInto().
◆ STATISTIC()
| STATISTIC | ( | RemappedAtomMax | , |
|---|---|---|---|
| "Highest global NextAtomGroup (after mapping)" | ) |