From 0377de4d9744283fc0d782338744139bfdd9da43 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 6 Sep 2002 14:50:55 +0000 Subject: Add information about the GlobalVariable and Module classes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3592 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ProgrammersManual.html | 150 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 140 insertions(+), 10 deletions(-) (limited to 'docs/ProgrammersManual.html') diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index b539e34..c93161a 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -676,34 +676,164 @@ doxygen info: GlobalVariable ClassGlobalValue, User, Value

- -A GlobalVariable is a subclass of GlobalValue and defines the interface to -global variables in the SSA program. It can have a name and an -initializer. (initial constant Value) - -Can be constant. +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). 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).

-


Important Public Members of -the GlobalVariable class


Important Public Members of the +GlobalVariable class

+
   + +The Module class +


Important Public Members of the +Module class

@@ -842,6 +972,6 @@ pointer to the parent Function. Chris Lattner -Last modified: Thu Sep 5 21:49:34 CDT 2002 +Last modified: Fri Sep 6 09:47:35 CDT 2002 -- cgit v1.1