freebsd-dev/lib/Transforms/Utils/ValueMapper.h

30 lines
931 B
C
Raw Normal View History

2009-06-02 17:52:33 +00:00
//===- ValueMapper.h - Interface shared by lib/Transforms/Utils -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file defines the MapValue interface which is used by various parts of
// the Transforms/Utils library to implement cloning and linking facilities.
//
//===----------------------------------------------------------------------===//
#ifndef VALUEMAPPER_H
#define VALUEMAPPER_H
2010-07-13 17:19:57 +00:00
#include "llvm/ADT/ValueMap.h"
2009-06-02 17:52:33 +00:00
namespace llvm {
class Value;
class Instruction;
2010-07-13 17:19:57 +00:00
typedef ValueMap<const Value *, Value *> ValueToValueMapTy;
2009-06-02 17:52:33 +00:00
2010-05-04 16:11:02 +00:00
Value *MapValue(const Value *V, ValueToValueMapTy &VM);
void RemapInstruction(Instruction *I, ValueToValueMapTy &VM);
2009-06-02 17:52:33 +00:00
} // End llvm namespace
#endif