2002-11-20 20:47:41 +00:00
|
|
|
//===- ValueMapper.h - Interface shared by lib/Transforms/Utils -*- C++ -*-===//
|
2005-04-21 23:48:37 +00:00
|
|
|
//
|
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.
|
2005-04-21 23:48:37 +00:00
|
|
|
//
|
2003-10-21 15:17:13 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
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
|
|
|
|
2007-02-03 00:08:31 +00:00
|
|
|
#include "llvm/ADT/DenseMap.h"
|
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;
|
2007-02-03 00:08:31 +00:00
|
|
|
typedef DenseMap<const Value *, Value *> ValueMapTy;
|
2004-05-19 09:08:12 +00:00
|
|
|
|
|
|
|
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
|