improve grammar
[oota-llvm.git] / docs / LinkTimeOptimization.html
index 7c97f9011c48c61c8dcff5fa360e291d092258d7..a79efa8693525f6a5d7ab75361d88e708baa792e 100644 (file)
@@ -29,6 +29,9 @@
     <li><a href="#llvmsymbol">LLVMSymbol</a></li>
     <li><a href="#readllvmobjectfile">readLLVMObjectFile()</a></li>
     <li><a href="#optimizemodules">optimizeModules()</a></li>
+    <li><a href="#gettargettriple">getTargetTriple()</a></li>
+    <li><a href="#removemodule">removeModule()</a></li>
+    <li><a href="#getalignment">getAlignment()</a></li>
   </ul></li>
   <li><a href="#debug">Debugging Information</a></li>
 </ul>
@@ -85,7 +88,7 @@ conservative escape analysis.
     <li> Input source file <tt>a.c</tt> is compiled into LLVM byte code form.
     <li> Input source file <tt>main.c</tt> is compiled into native object code.
   </ul>
-<pre>
+<div class="doc_code"><pre>
 --- a.h ---
 extern int foo1(void);
 extern void foo2(void);
@@ -129,7 +132,7 @@ int main() {
 $ llvm-gcc4 --emit-llvm -c a.c -o a.o  # &lt;-- a.o is LLVM bytecode file
 $ llvm-gcc4 -c main.c -o main.o # &lt;-- main.o is native object file
 $ llvm-gcc4 a.o main.o -o main # &lt;-- standard link command without any modifications
-</pre>
+</pre></div>
   <p>In this example, the linker recognizes that <tt>foo2()</tt> is an 
   externally visible symbol defined in LLVM byte code file. This information 
   is collected using <a href="#readllvmobjectfile"> readLLVMObjectFile()</a>. 
@@ -326,6 +329,37 @@ $ llvm-gcc4 a.o main.o -o main # &lt;-- standard link command without any modifi
   linker.</p>
 </div>
 
+<!-- ======================================================================= -->
+<div class="doc_subsection">
+  <a name="gettargettriple">getTargetTriple()</a>
+</div>
+
+<div class="doc_text">
+  <p>The linker may use <tt>getTargetTriple()</tt> to query target architecture
+  while validating LLVM bytecode file.</p>
+</div>
+
+<!-- ======================================================================= -->
+<div class="doc_subsection">
+  <a name="removemodule">removeModule()</a>
+</div>
+
+<div class="doc_text">
+  <p>Internally, <a href="#lto">LLVMlto</a> maintains LLVM bytecode modules in 
+  memory. The linker may use <tt>removeModule()</tt> method to remove desired
+  modules from memory. </p>
+</div>
+
+<!-- ======================================================================= -->
+<div class="doc_subsection">
+  <a name="getalignment">getAlignment()</a>
+</div>
+
+<div class="doc_text">
+  <p>The linker may use <a href="#llvmsymbol">LLVMSymbol</a> method 
+  <tt>getAlignment()</tt> to query symbol alignment information.</p>
+</div>
+
 <!-- *********************************************************************** -->
 <div class="doc_section">
   <a name="debug">Debugging Information</a>