Chris Lattner | 51cbcbf | 2002-11-20 20:47:41 +0000 | [diff] [blame] | 1 | //===- ValueMapper.h - Interface shared by lib/Transforms/Utils -*- C++ -*-===// |
John Criswell | 856ba76 | 2003-10-21 15:17:13 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by the LLVM research group and is distributed under |
| 6 | // the University of Illinois Open Source License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
Chris Lattner | 51cbcbf | 2002-11-20 20:47:41 +0000 | [diff] [blame] | 9 | // |
| 10 | // This file defines the MapValue interface which is used by various parts of |
| 11 | // the Transforms/Utils library to implement cloning and linking facilities. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
Brian Gaeke | 6129af3 | 2004-05-19 09:08:12 +0000 | [diff] [blame^] | 15 | #ifndef VALUEMAPPER_H |
| 16 | #define VALUEMAPPER_H |
Chris Lattner | 51cbcbf | 2002-11-20 20:47:41 +0000 | [diff] [blame] | 17 | |
| 18 | #include <map> |
Brian Gaeke | d0fde30 | 2003-11-11 22:41:34 +0000 | [diff] [blame] | 19 | |
| 20 | namespace llvm { |
Chris Lattner | f7703df | 2004-01-09 06:12:26 +0000 | [diff] [blame] | 21 | class Value; |
Brian Gaeke | 6129af3 | 2004-05-19 09:08:12 +0000 | [diff] [blame^] | 22 | class Instruction; |
| 23 | typedef std::map<const Value *, Value *> ValueMapTy; |
| 24 | |
| 25 | Value *MapValue(const Value *V, ValueMapTy &VM); |
| 26 | void RemapInstruction(Instruction *I, ValueMapTy &VM); |
Brian Gaeke | d0fde30 | 2003-11-11 22:41:34 +0000 | [diff] [blame] | 27 | } // End llvm namespace |
| 28 | |
Chris Lattner | 51cbcbf | 2002-11-20 20:47:41 +0000 | [diff] [blame] | 29 | #endif |