mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Be more consistent in using ValueToValueMapTy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116387 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
#include "llvm/Support/ValueHandle.h"
|
||||
#include "llvm/Transforms/Utils/ValueMapper.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@ -46,7 +47,7 @@ class AllocaInst;
|
||||
/// CloneModule - Return an exact copy of the specified module
|
||||
///
|
||||
Module *CloneModule(const Module *M);
|
||||
Module *CloneModule(const Module *M, ValueMap<const Value*, Value*> &VMap);
|
||||
Module *CloneModule(const Module *M, ValueToValueMapTy &VMap);
|
||||
|
||||
/// ClonedCodeInfo - This struct can be used to capture information about code
|
||||
/// being cloned, while it is being cloned.
|
||||
@ -102,7 +103,7 @@ struct ClonedCodeInfo {
|
||||
/// parameter.
|
||||
///
|
||||
BasicBlock *CloneBasicBlock(const BasicBlock *BB,
|
||||
ValueMap<const Value*, Value*> &VMap,
|
||||
ValueToValueMapTy &VMap,
|
||||
const Twine &NameSuffix = "", Function *F = 0,
|
||||
ClonedCodeInfo *CodeInfo = 0);
|
||||
|
||||
@ -110,7 +111,7 @@ BasicBlock *CloneBasicBlock(const BasicBlock *BB,
|
||||
/// CloneLoop - Clone Loop. Clone dominator info for loop insiders. Populate
|
||||
/// VMap using old blocks to new blocks mapping.
|
||||
Loop *CloneLoop(Loop *L, LPPassManager *LPM, LoopInfo *LI,
|
||||
ValueMap<const Value *, Value *> &VMap, Pass *P);
|
||||
ValueToValueMapTy &VMap, Pass *P);
|
||||
|
||||
/// CloneFunction - Return a copy of the specified function, but without
|
||||
/// embedding the function into another module. Also, any references specified
|
||||
@ -125,14 +126,14 @@ Loop *CloneLoop(Loop *L, LPPassManager *LPM, LoopInfo *LI,
|
||||
/// mappings.
|
||||
///
|
||||
Function *CloneFunction(const Function *F,
|
||||
ValueMap<const Value*, Value*> &VMap,
|
||||
ValueToValueMapTy &VMap,
|
||||
bool ModuleLevelChanges,
|
||||
ClonedCodeInfo *CodeInfo = 0);
|
||||
|
||||
/// CloneFunction - Version of the function that doesn't need the VMap.
|
||||
///
|
||||
inline Function *CloneFunction(const Function *F, ClonedCodeInfo *CodeInfo = 0){
|
||||
ValueMap<const Value*, Value*> VMap;
|
||||
ValueToValueMapTy VMap;
|
||||
return CloneFunction(F, VMap, CodeInfo);
|
||||
}
|
||||
|
||||
@ -146,7 +147,7 @@ inline Function *CloneFunction(const Function *F, ClonedCodeInfo *CodeInfo = 0){
|
||||
/// mappings.
|
||||
///
|
||||
void CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
||||
ValueMap<const Value*, Value*> &VMap,
|
||||
ValueToValueMapTy &VMap,
|
||||
bool ModuleLevelChanges,
|
||||
SmallVectorImpl<ReturnInst*> &Returns,
|
||||
const char *NameSuffix = "",
|
||||
@ -164,7 +165,7 @@ void CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
||||
/// mappings.
|
||||
///
|
||||
void CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
||||
ValueMap<const Value*, Value*> &VMap,
|
||||
ValueToValueMapTy &VMap,
|
||||
bool ModuleLevelChanges,
|
||||
SmallVectorImpl<ReturnInst*> &Returns,
|
||||
const char *NameSuffix = "",
|
||||
|
Reference in New Issue
Block a user