LLVM API Documentation
00001 //===-- llvm/CodeGen/ValueSet.h ---------------------------------*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file was developed by the LLVM research group and is distributed under 00006 // the University of Illinois Open Source License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This header is OBSOLETE, do not use it for new code. 00011 // 00012 // FIXME: Eliminate this file. 00013 // 00014 //===----------------------------------------------------------------------===// 00015 00016 #ifndef VALUE_SET_H 00017 #define VALUE_SET_H 00018 00019 #include <set> 00020 00021 namespace llvm { 00022 00023 class Value; 00024 00025 // RAV - Used to print values in a form used by the register allocator. 00026 // 00027 struct RAV { // Register Allocator Value 00028 const Value &V; 00029 RAV(const Value *v) : V(*v) {} 00030 RAV(const Value &v) : V(v) {} 00031 }; 00032 std::ostream &operator<<(std::ostream &out, RAV Val); 00033 00034 typedef std::set<const Value*> ValueSet; 00035 void printSet(const ValueSet &S); 00036 00037 } // End llvm namespace 00038 00039 #endif