From be5e85e9d3a1e41eca85881024b923597375d201 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 14 Apr 2006 14:11:48 +0000 Subject: Correct the Superclasses list for GlobalVariable and Function to indicate that they are "Constant" as they derive from GlobalValue. Also, fix some of the wording where it mentions this. Patch inspired by Nai Xia. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27701 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ProgrammersManual.html | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) (limited to 'docs') diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index a31d345..11f2435 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -1710,8 +1710,8 @@ returned.

href="/doxygen/GlobalValue_8h-source.html">llvm/GlobalValue.h"
doxygen info: GlobalValue Class
-Superclasses: User, Value

+Superclasses: Constant, +User, Value

Global values (GlobalVariables or Functions) are the only LLVM values that are @@ -1778,15 +1778,17 @@ GlobalValue is currently embedded into.

#include "llvm/Function.h"
doxygen info: Function Class
-Superclasses: GlobalValue, User, Value

+Superclasses: GlobalValue, +Constant, +User, +Value

The Function class represents a single procedure in LLVM. It is actually one of the more complex classes in the LLVM heirarchy because it must keep track of a large amount of data. The Function class keeps track -of a list of BasicBlocks, a list of formal Arguments, and a SymbolTable.

+of a list of BasicBlocks, a list of formal +Arguments, and a +SymbolTable.

The list of BasicBlocks is the most commonly used part of Function objects. The list imposes an implicit @@ -1915,20 +1917,22 @@ iterator
href="/doxygen/GlobalVariable_8h-source.html">llvm/GlobalVariable.h"
doxygen info: GlobalVariable -Class
Superclasses: GlobalValue, User, Value

+ Class
+Superclasses: GlobalValue, +Constant, +User, +Value

Global variables are represented with the (suprise suprise) GlobalVariable class. Like functions, GlobalVariables are also subclasses of GlobalValue, and as such are always referenced by their address (global values must live in memory, so their -"name" refers to their address). See GlobalValue for more on this. Global variables -may have an initial value (which must be a Constant), and if they have an initializer, they -may be marked as "constant" themselves (indicating that their contents never -change at runtime).

- +"name" refers to their constant address). See +GlobalValue for more on this. Global +variables may have an initial value (which must be a +Constant), and if they have an initializer, +they may be marked as "constant" themselves (indicating that their contents +never change at runtime).

-- cgit v1.1