|
LLVM
3.7.0
|
#include "llvm/Transforms/Utils/Cloning.h"#include "llvm/ADT/SmallVector.h"#include "llvm/Analysis/ConstantFolding.h"#include "llvm/Analysis/InstructionSimplify.h"#include "llvm/Analysis/LoopInfo.h"#include "llvm/IR/CFG.h"#include "llvm/IR/Constants.h"#include "llvm/IR/DebugInfo.h"#include "llvm/IR/DerivedTypes.h"#include "llvm/IR/Function.h"#include "llvm/IR/GlobalVariable.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/IR/LLVMContext.h"#include "llvm/IR/Metadata.h"#include "llvm/IR/Module.h"#include "llvm/Transforms/Utils/BasicBlockUtils.h"#include "llvm/Transforms/Utils/Local.h"#include "llvm/Transforms/Utils/ValueMapper.h"#include <map>Go to the source code of this file.
Functions | |
| static DISubprogram * | FindSubprogram (const Function *F, DebugInfoFinder &Finder) |
| static void | AddOperand (DICompileUnit *CU, DISubprogramArray SPs, Metadata *NewSP) |
| static void | CloneDebugInfoMetadata (Function *NewFunc, const Function *OldFunc, ValueToValueMapTy &VMap) |
|
static |
Definition at line 170 of file CloneFunction.cpp.
References llvm::MDTuple::get(), llvm::MDNode::getContext(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::DICompileUnit::replaceSubprograms(), llvm::SmallVectorImpl< T >::reserve(), and llvm::SP.
Referenced by CloneDebugInfoMetadata().
|
static |
Definition at line 182 of file CloneFunction.cpp.
References AddOperand(), llvm::DebugInfoFinder::compile_units(), FindSubprogram(), llvm::GlobalValue::getParent(), llvm::MapMetadata(), llvm::DebugInfoFinder::processModule(), and llvm::SP.
Referenced by llvm::CloneFunction().
|
static |
Definition at line 159 of file CloneFunction.cpp.
References llvm::DebugInfoFinder::subprograms().
Referenced by CloneDebugInfoMetadata().
1.8.6