From c7d1d8256ee319bb6fe70f112a502db1e06dbb7e Mon Sep 17 00:00:00 2001
From: Reid Spencer
Date: Mon, 1 Nov 2004 09:16:30 +0000
Subject: Attempt HTML 4.01 Strict compliance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17399 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/ProgrammersManual.html | 76 +++++++++++++++++++++++----------------------
1 file changed, 39 insertions(+), 37 deletions(-)
(limited to 'docs/ProgrammersManual.html')
diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html
index 5d10882..7c6bd15 100644
--- a/docs/ProgrammersManual.html
+++ b/docs/ProgrammersManual.html
@@ -1771,42 +1771,43 @@ types.
isLosslesslyConvertableTo (const Type *Ty) const: Return true if
this type can be converted to 'Ty' without any reinterpretation of bits. For
example, uint to int or one pointer type to another.
+
+
-
- Derived Types
-
+
+
+
+
+ - SequentialType : This is subclassed by ArrayType and PointerType
- - SequentialType : This is subclassed by ArrayType and PointerType
-
- - const Type * getElementType() const: Returns the type of
-each of the elements in the sequential type.
-
-
- - ArrayType : This is a subclass of SequentialType and defines
-interface for array types.
-
- - unsigned getNumElements() const: Returns the number of
-elements in the array.
-
-
- - PointerType : Subclass of SequentialType for pointer types.
- - StructType : subclass of DerivedTypes for struct types
- - FunctionType : subclass of DerivedTypes for function types.
-
- - bool isVarArg() const: Returns true if its a vararg
- function
- - const Type * getReturnType() const: Returns the
- return type of the function.
- - const Type * getParamType (unsigned i): Returns
- the type of the ith parameter.
- - const unsigned getNumParams() const: Returns the
- number of formal parameters.
-
-
+ - const Type * getElementType() const: Returns the type of each
+ of the elements in the sequential type.
+
+
+ - ArrayType : This is a subclass of SequentialType and defines interface for
+ array types.
+
+ - unsigned getNumElements() const: Returns the number of
+ elements in the array.
+
+
+ - PointerType : Subclass of SequentialType for pointer types.
+ - StructType : subclass of DerivedTypes for struct types
+ - FunctionType : subclass of DerivedTypes for function types.
+
+ - bool isVarArg() const: Returns true if its a vararg
+ function
+ - const Type * getReturnType() const: Returns the
+ return type of the function.
+ - const Type * getParamType (unsigned i): Returns
+ the type of the ith parameter.
+ - const unsigned getNumParams() const: Returns the
+ number of formal parameters.
-
@@ -1946,32 +1947,33 @@ three idioms worth pointing out:
Units | Iterator | Idiom |
Planes Of name/Value maps | PI |
-
+
for (SymbolTable::plane_const_iterator PI = ST.plane_begin(),
PE = ST.plane_end(); PI != PE; ++PI ) {
PI->first // This is the Type* of the plane
PI->second // This is the SymbolTable::ValueMap of name/Value pairs
- |
+ |
All name/Type Pairs | TI |
-
+
for (SymbolTable::type_const_iterator TI = ST.type_begin(),
TE = ST.type_end(); TI != TE; ++TI )
TI->first // This is the name of the type
TI->second // This is the Type* value associated with the name
- |
+ |
name/Value pairs in a plane | VI |
-
+
for (SymbolTable::value_const_iterator VI = ST.value_begin(SomeType),
VE = ST.value_end(SomeType); VI != VE; ++VI )
VI->first // This is the name of the Value
VI->second // This is the Value* value associated with the name
- |
+ |
+
Using the recommended iterator names and idioms will help you avoid
making mistakes. Of particular note, make sure that whenever you use
value_begin(SomeType) that you always compare the resulting iterator
--
cgit v1.1