1 //===-- llvm/CodeGen/PseudoSourceValue.h ------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declaration of the PseudoSourceValue class.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_CODEGEN_PSEUDOSOURCEVALUE_H
15 #define LLVM_CODEGEN_PSEUDOSOURCEVALUE_H
17 #include "llvm/Value.h"
20 /// PseudoSourceValue - Special value supplied for machine level alias
21 /// analysis. It indicates that the a memory access references the functions
22 /// stack frame (e.g., a spill slot), below the stack frame (e.g., argument
23 /// space), or constant pool.
24 class PseudoSourceValue : public Value {
28 virtual void print(std::ostream &OS) const;
30 /// classof - Methods for support type inquiry through isa, cast, and
33 static inline bool classof(const PseudoSourceValue *) { return true; }
34 static inline bool classof(const Value *V) {
35 return V->getValueID() == PseudoSourceValueVal;
38 /// A pseudo source value referencing to the stack frame of a function,
39 /// e.g., a spill slot.
40 static const PseudoSourceValue *getFixedStack();
42 /// A source value referencing the area below the stack frame of a function,
43 /// e.g., the argument space.
44 static const PseudoSourceValue *getStack();
46 /// A source value referencing the global offset table (or something the
48 static const PseudoSourceValue *getGOT();
50 /// A SV referencing the constant pool
51 static const PseudoSourceValue *getConstantPool();
53 /// A SV referencing the jump table
54 static const PseudoSourceValue *getJumpTable();
56 } // End llvm namespace