Reverting r56249. On further investigation, this functionality isn't needed.
[oota-llvm.git] / include / llvm / CodeGen / PseudoSourceValue.h
1 //===-- llvm/CodeGen/PseudoSourceValue.h ------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declaration of the PseudoSourceValue class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_CODEGEN_PSEUDOSOURCEVALUE_H
15 #define LLVM_CODEGEN_PSEUDOSOURCEVALUE_H
16
17 #include "llvm/Value.h"
18
19 namespace llvm {
20   class MachineFrameInfo;
21   class raw_ostream;
22
23   /// PseudoSourceValue - Special value supplied for machine level alias
24   /// analysis. It indicates that the a memory access references the functions
25   /// stack frame (e.g., a spill slot), below the stack frame (e.g., argument
26   /// space), or constant pool.
27   class PseudoSourceValue : public Value {
28   public:
29     PseudoSourceValue();
30
31     virtual void print(raw_ostream &OS) const;
32
33     /// isConstant - Test whether this PseudoSourceValue has a constant value.
34     ///
35     virtual bool isConstant(const MachineFrameInfo *) const;
36
37     /// classof - Methods for support type inquiry through isa, cast, and
38     /// dyn_cast:
39     ///
40     static inline bool classof(const PseudoSourceValue *) { return true; }
41     static inline bool classof(const Value *V) {
42       return V->getValueID() == PseudoSourceValueVal;
43     }
44
45     /// A pseudo source value referencing a fixed stack frame entry,
46     /// e.g., a spill slot.
47     static const PseudoSourceValue *getFixedStack(int FI);
48
49     /// A source value referencing the area below the stack frame of a function,
50     /// e.g., the argument space.
51     static const PseudoSourceValue *getStack();
52
53     /// A source value referencing the global offset table (or something the
54     /// like).
55     static const PseudoSourceValue *getGOT();
56
57     /// A SV referencing the constant pool
58     static const PseudoSourceValue *getConstantPool();
59
60     /// A SV referencing the jump table
61     static const PseudoSourceValue *getJumpTable();
62   };
63 } // End llvm namespace
64
65 #endif