2002-11-20 20:47:41 +00:00
|
|
|
//===- ValueMapper.h - Interface shared by lib/Transforms/Utils -*- C++ -*-===//
|
2003-10-21 15:17:13 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2002-11-20 20:47:41 +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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2004-05-19 09:08:12 +00:00
|
|
|
#ifndef VALUEMAPPER_H
|
|
|
|
#define VALUEMAPPER_H
|
2002-11-20 20:47:41 +00:00
|
|
|
|
|
|
|
#include <map>
|
2003-11-11 22:41:34 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
2004-01-09 06:12:26 +00:00
|
|
|
class Value;
|
2004-05-19 09:08:12 +00:00
|
|
|
class Instruction;
|
|
|
|
typedef std::map<const Value *, Value *> ValueMapTy;
|
|
|
|
|
|
|
|
Value *MapValue(const Value *V, ValueMapTy &VM);
|
|
|
|
void RemapInstruction(Instruction *I, ValueMapTy &VM);
|
2003-11-11 22:41:34 +00:00
|
|
|
} // End llvm namespace
|
|
|
|
|
2002-11-20 20:47:41 +00:00
|
|
|
#endif
|