2010-08-24 18:50:07 +00:00
|
|
|
//===- ValueMapper.h - Remapping for constants and metadata -----*- C++ -*-===//
|
2007-11-09 12:16:58 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 19:59:42 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-11-09 12:16:58 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file defines the MapValue interface which is used by various parts of
|
|
|
|
// the Transforms/Utils library to implement cloning and linking facilities.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2010-08-24 18:50:07 +00:00
|
|
|
#ifndef LLVM_TRANSFORMS_UTILS_VALUEMAPPER_H
|
|
|
|
#define LLVM_TRANSFORMS_UTILS_VALUEMAPPER_H
|
2007-11-09 12:16:58 +00:00
|
|
|
|
2010-06-24 00:33:28 +00:00
|
|
|
#include "llvm/ADT/ValueMap.h"
|
2007-11-09 12:16:58 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class Value;
|
|
|
|
class Instruction;
|
2010-10-13 02:08:17 +00:00
|
|
|
typedef ValueMap<const Value *, TrackingVH<Value> > ValueToValueMapTy;
|
2007-11-09 12:16:58 +00:00
|
|
|
|
2010-08-26 15:41:53 +00:00
|
|
|
Value *MapValue(const Value *V, ValueToValueMapTy &VM,
|
|
|
|
bool ModuleLevelChanges);
|
|
|
|
void RemapInstruction(Instruction *I, ValueToValueMapTy &VM,
|
|
|
|
bool ModuleLevelChanges);
|
2007-11-09 12:16:58 +00:00
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
#endif
|