Anton Korobeynikov | 18d083f | 2007-11-09 12:16:58 +0000 | [diff] [blame] | 1 | //===- ValueMapper.h - Interface shared by lib/Transforms/Utils -*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 7ed47a1 | 2007-12-29 19:59:42 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
Anton Korobeynikov | 18d083f | 2007-11-09 12:16:58 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 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 | |
| 15 | #ifndef VALUEMAPPER_H |
| 16 | #define VALUEMAPPER_H |
| 17 | |
| 18 | #include "llvm/ADT/DenseMap.h" |
| 19 | |
| 20 | namespace llvm { |
| 21 | class Value; |
| 22 | class Instruction; |
| 23 | typedef DenseMap<const Value *, Value *> ValueMapTy; |
| 24 | |
Dan Gohman | 5fa75b0 | 2009-10-24 23:37:16 +0000 | [diff] [blame] | 25 | Value *MapValue(const Value *V, ValueMapTy &VM); |
Anton Korobeynikov | 18d083f | 2007-11-09 12:16:58 +0000 | [diff] [blame] | 26 | void RemapInstruction(Instruction *I, ValueMapTy &VM); |
| 27 | } // End llvm namespace |
| 28 | |
| 29 | #endif |