diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-02-16 09:30:23 +0000 |
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-02-16 09:30:23 +0000 |
| commit | 6fe5c7aa327e188b7176daa5595bbf075a6b94df (patch) | |
| tree | 4cfca640904d1896e25032757a61f8959c066919 /docs | |
| parent | 989df958a10f0beb90b89ccadd8351cbe51d90b1 (diff) | |
Notes
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/CommandGuide/lit.pod | 8 | ||||
| -rw-r--r-- | docs/CommandGuide/llvm-extract.pod | 8 | ||||
| -rw-r--r-- | docs/ExceptionHandling.html | 21 | ||||
| -rw-r--r-- | docs/GettingStarted.html | 14 | ||||
| -rw-r--r-- | docs/LangRef.html | 153 | ||||
| -rw-r--r-- | docs/ProgrammersManual.html | 41 | ||||
| -rw-r--r-- | docs/ReleaseNotes.html | 510 | ||||
| -rw-r--r-- | docs/WritingAnLLVMBackend.html | 10 | ||||
| -rw-r--r-- | docs/index.html | 10 | ||||
| -rw-r--r-- | docs/tutorial/LangImpl1.html | 2 | ||||
| -rw-r--r-- | docs/tutorial/LangImpl2.html | 2 | ||||
| -rw-r--r-- | docs/tutorial/LangImpl3.html | 2 | ||||
| -rw-r--r-- | docs/tutorial/LangImpl4.html | 49 | ||||
| -rw-r--r-- | docs/tutorial/LangImpl5.html | 18 | ||||
| -rw-r--r-- | docs/tutorial/LangImpl6.html | 18 | ||||
| -rw-r--r-- | docs/tutorial/LangImpl7.html | 18 | ||||
| -rw-r--r-- | docs/tutorial/LangImpl8.html | 2 | ||||
| -rw-r--r-- | docs/tutorial/OCamlLangImpl1.html | 2 | ||||
| -rw-r--r-- | docs/tutorial/OCamlLangImpl2.html | 2 | ||||
| -rw-r--r-- | docs/tutorial/OCamlLangImpl3.html | 2 | ||||
| -rw-r--r-- | docs/tutorial/OCamlLangImpl4.html | 2 | ||||
| -rw-r--r-- | docs/tutorial/OCamlLangImpl5.html | 2 | ||||
| -rw-r--r-- | docs/tutorial/OCamlLangImpl6.html | 2 | ||||
| -rw-r--r-- | docs/tutorial/OCamlLangImpl7.html | 2 |
24 files changed, 333 insertions, 567 deletions
diff --git a/docs/CommandGuide/lit.pod b/docs/CommandGuide/lit.pod index 246fc66aa6d2..72d9d2b394f1 100644 --- a/docs/CommandGuide/lit.pod +++ b/docs/CommandGuide/lit.pod @@ -49,13 +49,13 @@ Show the B<lit> help message. =item B<-j> I<N>, B<--threads>=I<N> -Run I<N> tests in parallel. By default, this is automatically chose to match the -number of detected available CPUs. +Run I<N> tests in parallel. By default, this is automatically chosen to match +the number of detected available CPUs. =item B<--config-prefix>=I<NAME> Search for I<NAME.cfg> and I<NAME.site.cfg> when searching for test suites, -instead I<lit.cfg> and I<lit.site.cfg>. +instead of I<lit.cfg> and I<lit.site.cfg>. =item B<--param> I<NAME>, B<--param> I<NAME>=I<VALUE> @@ -237,7 +237,7 @@ creating a new B<lit> testing implementation, or extending an existing one. B<lit> proper is primarily an infrastructure for discovering and running arbitrary tests, and to expose a single convenient interface to these -tests. B<lit> itself doesn't contain know how to run tests, rather this logic is +tests. B<lit> itself doesn't know how to run tests, rather this logic is defined by I<test suites>. =head2 TEST SUITES diff --git a/docs/CommandGuide/llvm-extract.pod b/docs/CommandGuide/llvm-extract.pod index b62e8ae312bf..02f38adf554e 100644 --- a/docs/CommandGuide/llvm-extract.pod +++ b/docs/CommandGuide/llvm-extract.pod @@ -34,7 +34,13 @@ B<llvm-extract> will write raw bitcode regardless of the output device. =item B<--func> I<function-name> -Extract the function named I<function-name> from the LLVM bitcode. +Extract the function named I<function-name> from the LLVM bitcode. May be +specified multiple times to extract multiple functions at once. + +=item B<--glob> I<global-name> + +Extract the global variable named I<global-name> from the LLVM bitcode. May be +specified multiple times to extract multiple global variables at once. =item B<--help> diff --git a/docs/ExceptionHandling.html b/docs/ExceptionHandling.html index 0ca702f477bf..dfe7ee8e35c9 100644 --- a/docs/ExceptionHandling.html +++ b/docs/ExceptionHandling.html @@ -39,6 +39,7 @@ <li><a href="#llvm_eh_sjlj_setjmp"><tt>llvm.eh.sjlj.setjmp</tt></a></li> <li><a href="#llvm_eh_sjlj_longjmp"><tt>llvm.eh.sjlj.longjmp</tt></a></li> <li><a href="#llvm_eh_sjlj_lsda"><tt>llvm.eh.sjlj.lsda</tt></a></li> + <li><a href="#llvm_eh_sjlj_callsite"><tt>llvm.eh.sjlj.callsite</tt></a></li> </ol></li> <li><a href="#asm">Asm Table Formats</a> <ol> @@ -509,6 +510,24 @@ </div> <!-- ======================================================================= --> +<div class="doc_subsubsection"> + <a name="llvm_eh_sjlj_callsite">llvm.eh.sjlj.callsite</a> +</div> + +<div class="doc_text"> + +<pre> + void %<a href="#llvm_eh_sjlj_callsite">llvm.eh.sjlj.callsite</a>(i32) +</pre> + +<p>For SJLJ based exception handling, the <a href="#llvm_eh_sjlj_callsite"> + <tt>llvm.eh.sjlj.callsite</tt></a> intrinsic identifies the callsite value + associated with the following invoke instruction. This is used to ensure + that landing pad entries in the LSDA are generated in the matching order.</p> + +</div> + +<!-- ======================================================================= --> <div class="doc_section"> <a name="asm">Asm Table Formats</a> </div> @@ -580,7 +599,7 @@ <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2009-10-14 18:11:37 +0200 (Wed, 14 Oct 2009) $ + Last modified: $Date: 2010-01-28 02:45:32 +0100 (Thu, 28 Jan 2010) $ </address> </body> diff --git a/docs/GettingStarted.html b/docs/GettingStarted.html index 5f17b5b5dcf2..44fbf2185cd0 100644 --- a/docs/GettingStarted.html +++ b/docs/GettingStarted.html @@ -256,13 +256,13 @@ software you will need.</p> <td>Cygwin/Win32</td> <td>x86<sup><a href="#pf_1">1</a>,<a href="#pf_8">8</a>, <a href="#pf_11">11</a></sup></td> - <td>GCC 3.4.X, binutils 2.15</td> + <td>GCC 3.4.X, binutils 2.20</td> </tr> <tr> <td>MinGW/Win32</td> <td>x86<sup><a href="#pf_1">1</a>,<a href="#pf_6">6</a>, <a href="#pf_8">8</a>, <a href="#pf_10">10</a></sup></td> - <td>GCC 3.4.X, binutils 2.15</td> + <td>GCC 3.4.X, binutils 2.20</td> </tr> </table> @@ -318,12 +318,8 @@ up</a></li> <li><a name="pf_5">The GCC-based C/C++ frontend does not build</a></li> <li><a name="pf_6">The port is done using the MSYS shell.</a></li> <li><a name="pf_7">Native code generation exists but is not complete.</a></li> -<li><a name="pf_8">Binutils</a> up to post-2.17 has bug in bfd/cofflink.c - preventing LLVM from building correctly. Several workarounds have been - introduced into LLVM build system, but the bug can occur anytime in the - future. We highly recommend that you rebuild your current binutils with the - patch from <a href="http://sourceware.org/bugzilla/show_bug.cgi?id=2659"> - Binutils bugzilla</a>, if it wasn't already applied.</li> +<li><a name="pf_8">Binutils 2.20 or later is required to build the assembler + generated by LLVM properly.</a></li> <li><a name="pf_9">XCode 2.5 and gcc 4.0.1</a> (Apple Build 5370) will trip internal LLVM assert messages when compiled for Release at optimization levels greater than 0 (i.e., <i>"-O1"</i> and higher). @@ -1671,7 +1667,7 @@ out:</p> <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="http://llvm.x10sys.com/rspencer/">Reid Spencer</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2009-12-17 18:18:11 +0100 (Thu, 17 Dec 2009) $ + Last modified: $Date: 2010-02-11 22:51:51 +0100 (Thu, 11 Feb 2010) $ </address> </body> </html> diff --git a/docs/LangRef.html b/docs/LangRef.html index cbb7d568f289..b31d22f441bc 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -66,12 +66,17 @@ </li> <li><a href="#t_derived">Derived Types</a> <ol> - <li><a href="#t_array">Array Type</a></li> + <li><a href="#t_aggregate">Aggregate Types</a> + <ol> + <li><a href="#t_array">Array Type</a></li> + <li><a href="#t_struct">Structure Type</a></li> + <li><a href="#t_pstruct">Packed Structure Type</a></li> + <li><a href="#t_union">Union Type</a></li> + <li><a href="#t_vector">Vector Type</a></li> + </ol> + </li> <li><a href="#t_function">Function Type</a></li> <li><a href="#t_pointer">Pointer Type</a></li> - <li><a href="#t_struct">Structure Type</a></li> - <li><a href="#t_pstruct">Packed Structure Type</a></li> - <li><a href="#t_vector">Vector Type</a></li> <li><a href="#t_opaque">Opaque Type</a></li> </ol> </li> @@ -1078,11 +1083,21 @@ define void @f() optsize { ... } </div> <dl> + <dt><tt><b>alignstack(<<em>n</em>>)</b></tt></dt> + <dd>This attribute indicates that, when emitting the prologue and epilogue, + the backend should forcibly align the stack pointer. Specify the + desired alignment, which must be a power of two, in parentheses. + <dt><tt><b>alwaysinline</b></tt></dt> <dd>This attribute indicates that the inliner should attempt to inline this function into callers whenever possible, ignoring any active inlining size threshold for this caller.</dd> + <dt><tt><b>inlinehint</b></tt></dt> + <dd>This attribute indicates that the source code contained a hint that inlining + this function is desirable (such as the "inline" keyword in C/C++). It + is just a hint; it imposes no requirements on the inliner.</dd> + <dt><tt><b>noinline</b></tt></dt> <dd>This attribute indicates that the inliner should never inline this function in any situation. This attribute may not be used together with @@ -1394,6 +1409,7 @@ Classifications</a> </div> <a href="#t_pointer">pointer</a>, <a href="#t_vector">vector</a>, <a href="#t_struct">structure</a>, + <a href="#t_union">union</a>, <a href="#t_array">array</a>, <a href="#t_label">label</a>, <a href="#t_metadata">metadata</a>. @@ -1408,12 +1424,12 @@ Classifications</a> </div> </tr> <tr> <td><a href="#t_derived">derived</a></td> - <td><a href="#t_integer">integer</a>, - <a href="#t_array">array</a>, + <td><a href="#t_array">array</a>, <a href="#t_function">function</a>, <a href="#t_pointer">pointer</a>, <a href="#t_struct">structure</a>, <a href="#t_pstruct">packed structure</a>, + <a href="#t_union">union</a>, <a href="#t_vector">vector</a>, <a href="#t_opaque">opaque</a>. </td> @@ -1551,6 +1567,21 @@ Classifications</a> </div> possible to have a two dimensional array, using an array as the element type of another array.</p> + +</div> + +<!-- _______________________________________________________________________ --> +<div class="doc_subsubsection"> <a name="t_aggregate">Aggregate Types</a> </div> + +<div class="doc_text"> + +<p>Aggregate Types are a subset of derived types that can contain multiple + member types. <a href="#t_array">Arrays</a>, + <a href="#t_struct">structs</a>, <a href="#t_vector">vectors</a> and + <a href="#t_union">unions</a> are aggregate types.</p> + +</div> + </div> <!-- _______________________________________________________________________ --> @@ -1619,9 +1650,9 @@ Classifications</a> </div> <h5>Overview:</h5> <p>The function type can be thought of as a function signature. It consists of a return type and a list of formal parameter types. The return type of a - function type is a scalar type, a void type, or a struct type. If the return - type is a struct type then all struct elements must be of first class types, - and the struct must have at least one element.</p> + function type is a scalar type, a void type, a struct type, or a union + type. If the return type is a struct type then all struct elements must be + of first class types, and the struct must have at least one element.</p> <h5>Syntax:</h5> <pre> @@ -1744,6 +1775,53 @@ Classifications</a> </div> </div> <!-- _______________________________________________________________________ --> +<div class="doc_subsubsection"> <a name="t_union">Union Type</a> </div> + +<div class="doc_text"> + +<h5>Overview:</h5> +<p>A union type describes an object with size and alignment suitable for + an object of any one of a given set of types (also known as an "untagged" + union). It is similar in concept and usage to a + <a href="#t_struct">struct</a>, except that all members of the union + have an offset of zero. The elements of a union may be any type that has a + size. Unions must have at least one member - empty unions are not allowed. + </p> + +<p>The size of the union as a whole will be the size of its largest member, + and the alignment requirements of the union as a whole will be the largest + alignment requirement of any member.</p> + +<p>Unions members are accessed using '<tt><a href="#i_load">load</a></tt> and + '<tt><a href="#i_store">store</a></tt>' by getting a pointer to a field with + the '<tt><a href="#i_getelementptr">getelementptr</a></tt>' instruction. + Since all members are at offset zero, the getelementptr instruction does + not affect the address, only the type of the resulting pointer.</p> + +<h5>Syntax:</h5> +<pre> + union { <type list> } +</pre> + +<h5>Examples:</h5> +<table class="layout"> + <tr class="layout"> + <td class="left"><tt>union { i32, i32*, float }</tt></td> + <td class="left">A union of three types: an <tt>i32</tt>, a pointer to + an <tt>i32</tt>, and a <tt>float</tt>.</td> + </tr><tr class="layout"> + <td class="left"> + <tt>union { float, i32 (i32) * }</tt></td> + <td class="left">A union, where the first element is a <tt>float</tt> and the + second element is a <a href="#t_pointer">pointer</a> to a + <a href="#t_function">function</a> that takes an <tt>i32</tt>, returning + an <tt>i32</tt>.</td> + </tr> +</table> + +</div> + +<!-- _______________________________________________________________________ --> <div class="doc_subsubsection"> <a name="t_pointer">Pointer Type</a> </div> <div class="doc_text"> @@ -1981,6 +2059,14 @@ Classifications</a> </div> the number and types of elements must match those specified by the type.</dd> + <dt><b>Union constants</b></dt> + <dd>Union constants are represented with notation similar to a structure with + a single element - that is, a single typed element surrounded + by braces (<tt>{}</tt>)). For example: "<tt>{ i32 4 }</tt>". The + <a href="#t_union">union type</a> can be initialized with a single-element + struct as long as the type of the struct element matches the type of + one of the union members.</dd> + <dt><b>Array constants</b></dt> <dd>Array constants are represented with notation similar to array type definitions (a comma separated list of elements, surrounded by square @@ -1999,7 +2085,8 @@ Classifications</a> </div> <dt><b>Zero initialization</b></dt> <dd>The string '<tt>zeroinitializer</tt>' can be used to zero initialize a - value to zero of <em>any</em> type, including scalar and aggregate types. + value to zero of <em>any</em> type, including scalar and + <a href="#t_aggregate">aggregate</a> types. This is often used to avoid having to print large zero initializers (e.g. for large arrays) and is always exactly equivalent to using explicit zero initializers.</dd> @@ -3835,7 +3922,8 @@ Instruction</a> </div> <div class="doc_text"> -<p>LLVM supports several instructions for working with aggregate values.</p> +<p>LLVM supports several instructions for working with + <a href="#t_aggregate">aggregate</a> values.</p> </div> @@ -3852,14 +3940,14 @@ Instruction</a> </div> </pre> <h5>Overview:</h5> -<p>The '<tt>extractvalue</tt>' instruction extracts the value of a struct field - or array element from an aggregate value.</p> +<p>The '<tt>extractvalue</tt>' instruction extracts the value of a member field + from an <a href="#t_aggregate">aggregate</a> value.</p> <h5>Arguments:</h5> <p>The first operand of an '<tt>extractvalue</tt>' instruction is a value - of <a href="#t_struct">struct</a> or <a href="#t_array">array</a> type. The - operands are constant indices to specify which value to extract in a similar - manner as indices in a + of <a href="#t_struct">struct</a>, <a href="#t_union">union</a> or + <a href="#t_array">array</a> type. The operands are constant indices to + specify which value to extract in a similar manner as indices in a '<tt><a href="#i_getelementptr">getelementptr</a></tt>' instruction.</p> <h5>Semantics:</h5> @@ -3886,16 +3974,15 @@ Instruction</a> </div> </pre> <h5>Overview:</h5> -<p>The '<tt>insertvalue</tt>' instruction inserts a value into a struct field or - array element in an aggregate.</p> - +<p>The '<tt>insertvalue</tt>' instruction inserts a value into a member field + in an <a href="#t_aggregate">aggregate</a> value.</p> <h5>Arguments:</h5> <p>The first operand of an '<tt>insertvalue</tt>' instruction is a value - of <a href="#t_struct">struct</a> or <a href="#t_array">array</a> type. The - second operand is a first-class value to insert. The following operands are - constant indices indicating the position at which to insert the value in a - similar manner as indices in a + of <a href="#t_struct">struct</a>, <a href="#t_union">union</a> or + <a href="#t_array">array</a> type. The second operand is a first-class + value to insert. The following operands are constant indices indicating + the position at which to insert the value in a similar manner as indices in a '<tt><a href="#i_getelementptr">getelementptr</a></tt>' instruction. The value to insert must have the same type as the value identified by the indices.</p> @@ -4097,8 +4184,8 @@ Instruction</a> </div> <h5>Overview:</h5> <p>The '<tt>getelementptr</tt>' instruction is used to get the address of a - subelement of an aggregate data structure. It performs address calculation - only and does not access memory.</p> + subelement of an <a href="#t_aggregate">aggregate</a> data structure. + It performs address calculation only and does not access memory.</p> <h5>Arguments:</h5> <p>The first argument is always a pointer, and forms the basis of the @@ -4108,15 +4195,15 @@ Instruction</a> </div> indexes the pointer value given as the first argument, the second index indexes a value of the type pointed to (not necessarily the value directly pointed to, since the first index can be non-zero), etc. The first type - indexed into must be a pointer value, subsequent types can be arrays, vectors - and structs. Note that subsequent types being indexed into can never be - pointers, since that would require loading the pointer before continuing - calculation.</p> + indexed into must be a pointer value, subsequent types can be arrays, + vectors, structs and unions. Note that subsequent types being indexed into + can never be pointers, since that would require loading the pointer before + continuing calculation.</p> <p>The type of each index argument depends on the type it is indexing into. - When indexing into a (optionally packed) structure, only <tt>i32</tt> integer - <b>constants</b> are allowed. When indexing into an array, pointer or - vector, integers of any width are allowed, and they are not required to be + When indexing into a (optionally packed) structure or union, only <tt>i32</tt> + integer <b>constants</b> are allowed. When indexing into an array, pointer + or vector, integers of any width are allowed, and they are not required to be constant.</p> <p>For example, let's consider a C code fragment and how it gets compiled to @@ -7345,7 +7432,7 @@ LLVM</a>.</p> <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2010-01-15 22:50:19 +0100 (Fri, 15 Jan 2010) $ + Last modified: $Date: 2010-02-12 21:49:41 +0100 (Fri, 12 Feb 2010) $ </address> </body> diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index 80a5db030a99..df4366ab786e 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -150,6 +150,7 @@ with another <tt>Value</tt></a> </li> <li><a href="#shutdown">Ending execution with <tt>llvm_shutdown()</tt></a></li> <li><a href="#managedstatic">Lazy initialization with <tt>ManagedStatic</tt></a></li> <li><a href="#llvmcontext">Achieving Isolation with <tt>LLVMContext</tt></a></li> + <li><a href="#jitthreading">Threads and the JIT</a></li> </ul> </li> @@ -2386,9 +2387,9 @@ failure of the initialization. Failure typically indicates that your copy of LLVM was built without multithreading support, typically because GCC atomic intrinsics were not found in your system compiler. In this case, the LLVM API will not be safe for concurrent calls. However, it <em>will</em> be safe for -hosting threaded applications in the JIT, though care must be taken to ensure -that side exits and the like do not accidentally result in concurrent LLVM API -calls. +hosting threaded applications in the JIT, though <a href="#jitthreading">care +must be taken</a> to ensure that side exits and the like do not accidentally +result in concurrent LLVM API calls. </p> </div> @@ -2485,6 +2486,34 @@ isolation is not a concern. </p> </div> +<!-- ======================================================================= --> +<div class="doc_subsection"> + <a name="jitthreading">Threads and the JIT</a> +</div> + +<div class="doc_text"> +<p> +LLVM's "eager" JIT compiler is safe to use in threaded programs. Multiple +threads can call <tt>ExecutionEngine::getPointerToFunction()</tt> or +<tt>ExecutionEngine::runFunction()</tt> concurrently, and multiple threads can +run code output by the JIT concurrently. The user must still ensure that only +one thread accesses IR in a given <tt>LLVMContext</tt> while another thread +might be modifying it. One way to do that is to always hold the JIT lock while +accessing IR outside the JIT (the JIT <em>modifies</em> the IR by adding +<tt>CallbackVH</tt>s). Another way is to only +call <tt>getPointerToFunction()</tt> from the <tt>LLVMContext</tt>'s thread. +</p> + +<p>When the JIT is configured to compile lazily (using +<tt>ExecutionEngine::DisableLazyCompilation(false)</tt>), there is currently a +<a href="http://llvm.org/bugs/show_bug.cgi?id=5184">race condition</a> in +updating call sites after a function is lazily-jitted. It's still possible to +use the lazy JIT in a threaded program if you ensure that only one thread at a +time can call any particular lazy stub and that the JIT lock guards any IR +access, but we suggest using only the eager JIT in threaded programs. +</p> +</div> + <!-- *********************************************************************** --> <div class="doc_section"> <a name="advanced">Advanced Topics</a> @@ -2970,9 +2999,9 @@ the <tt>lib/VMCore</tt> directory.</p> <div class="doc_text"> <ul> - <li><tt>bool isInteger() const</tt>: Returns true for any integer type.</li> + <li><tt>bool isIntegerTy() const</tt>: Returns true for any integer type.</li> - <li><tt>bool isFloatingPoint()</tt>: Return true if this is one of the two + <li><tt>bool isFloatingPointTy()</tt>: Return true if this is one of the five floating point types.</li> <li><tt>bool isAbstract()</tt>: Return true if the type is abstract (contains @@ -3892,7 +3921,7 @@ arguments. An argument has a pointer to the parent Function.</p> <a href="mailto:dhurjati@cs.uiuc.edu">Dinakar Dhurjati</a> and <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2010-01-05 19:24:00 +0100 (Tue, 05 Jan 2010) $ + Last modified: $Date: 2010-02-15 17:12:20 +0100 (Mon, 15 Feb 2010) $ </address> </body> diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html index 03a3545ebdad..21f508240e6f 100644 --- a/docs/ReleaseNotes.html +++ b/docs/ReleaseNotes.html @@ -4,17 +4,17 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" href="llvm.css" type="text/css"> - <title>LLVM 2.6 Release Notes</title> + <title>LLVM 2.7 Release Notes</title> </head> <body> -<div class="doc_title">LLVM 2.6 Release Notes</div> +<div class="doc_title">LLVM 2.7 Release Notes</div> <ol> <li><a href="#intro">Introduction</a></li> <li><a href="#subproj">Sub-project Status Update</a></li> - <li><a href="#externalproj">External Projects Using LLVM 2.6</a></li> - <li><a href="#whatsnew">What's New in LLVM 2.6?</a></li> + <li><a href="#externalproj">External Projects Using LLVM 2.7</a></li> + <li><a href="#whatsnew">What's New in LLVM 2.7?</a></li> <li><a href="GettingStarted.html">Installation Instructions</a></li> <li><a href="#portability">Portability and Supported Platforms</a></li> <li><a href="#knownproblems">Known Problems</a></li> @@ -25,6 +25,12 @@ <p>Written by the <a href="http://llvm.org">LLVM Team</a></p> </div> +<h1 style="color:red">These are in-progress notes for the upcoming LLVM 2.7 +release.<br> +You may prefer the +<a href="http://llvm.org/releases/2.6/docs/ReleaseNotes.html">LLVM 2.6 +Release Notes</a>.</h1> + <!-- *********************************************************************** --> <div class="doc_section"> <a name="intro">Introduction</a> @@ -34,7 +40,7 @@ <div class="doc_text"> <p>This document contains the release notes for the LLVM Compiler -Infrastructure, release 2.6. Here we describe the status of LLVM, including +Infrastructure, release 2.7. Here we describe the status of LLVM, including major improvements from the previous release and significant known problems. All LLVM releases may be downloaded from the <a href="http://llvm.org/releases/">LLVM releases web site</a>.</p> @@ -63,7 +69,7 @@ Almost dead code. --> -<!-- Unfinished features in 2.6: +<!-- Features that need text if they're finished for 2.7: gcc plugin. strong phi elim variable debug info for optimized code @@ -94,7 +100,7 @@ Almost dead code. <div class="doc_text"> <p> -The LLVM 2.6 distribution currently consists of code from the core LLVM +The LLVM 2.7 distribution currently consists of code from the core LLVM repository (which roughly includes the LLVM optimizers, code generators and supporting tools), the Clang repository and the llvm-gcc repository. In addition to this code, the LLVM Project includes other sub-projects that are in @@ -111,31 +117,12 @@ development. Here we include updates on these subprojects. <div class="doc_text"> -<p>The <a href="http://clang.llvm.org/">Clang project</a> is an effort to build -a set of new 'LLVM native' front-end technologies for the C family of languages. -LLVM 2.6 is the first release to officially include Clang, and it provides a -production quality C and Objective-C compiler. If you are interested in <a -href="http://clang.llvm.org/performance.html">fast compiles</a> and -<a href="http://clang.llvm.org/diagnostics.html">good diagnostics</a>, we -encourage you to try it out. Clang currently compiles typical Objective-C code -3x faster than GCC and compiles C code about 30% faster than GCC at -O0 -g -(which is when the most pressure is on the frontend).</p> - -<p>In addition to supporting these languages, C++ support is also <a -href="http://clang.llvm.org/cxx_status.html">well under way</a>, and mainline -Clang is able to parse the libstdc++ 4.2 headers and even codegen simple apps. -If you are interested in Clang C++ support or any other Clang feature, we -strongly encourage you to get involved on the <a -href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">Clang front-end mailing -list</a>.</p> +<p>The <a href="http://clang.llvm.org/">Clang project</a> is ...</p> -<p>In the LLVM 2.6 time-frame, the Clang team has made many improvements:</p> +<p>In the LLVM 2.7 time-frame, the Clang team has made many improvements:</p> <ul> -<li>C and Objective-C support are now considered production quality.</li> -<li>AuroraUX, FreeBSD and OpenBSD are now supported.</li> -<li>Most of Objective-C 2.0 is now supported with the GNU runtime.</li> -<li>Many many bugs are fixed and lots of features have been added.</li> +<li>...</li> </ul> </div> @@ -146,24 +133,13 @@ list</a>.</p> <div class="doc_text"> -<p>Previously announced in the 2.4 and 2.5 LLVM releases, the Clang project also +<p>Previously announced in the 2.4, 2.5, and 2.6 LLVM releases, the Clang project also includes an early stage static source code analysis tool for <a href="http://clang.llvm.org/StaticAnalysis.html">automatically finding bugs</a> in C and Objective-C programs. The tool performs checks to find bugs that occur on a specific path within a program.</p> -<p>In the LLVM 2.6 time-frame, the analyzer core has undergone several important -improvements and cleanups and now includes a new <em>Checker</em> interface that -is intended to eventually serve as a basis for domain-specific checks. Further, -in addition to generating HTML files for reporting analysis results, the -analyzer can now also emit bug reports in a structured XML format that is -intended to be easily readable by other programs.</p> - -<p>The set of checks performed by the static analyzer continues to expand, and -future plans for the tool include full source-level inter-procedural analysis -and deeper checks such as buffer overrun detection. There are many opportunities -to extend and enhance the static analyzer, and anyone interested in working on -this project is encouraged to get involved!</p> +<p>In the LLVM 2.7 time-frame, the analyzer core has ...</p> </div> @@ -180,20 +156,13 @@ implementation of the CLI) using LLVM for static and just-in-time compilation.</p> <p> -VMKit version 0.26 builds with LLVM 2.6 and you can find it on its +VMKit version ?? builds with LLVM 2.7 and you can find it on its <a href="http://vmkit.llvm.org/releases/">web page</a>. The release includes bug fixes, cleanup and new features. The major changes are:</p> <ul> -<li>A new llcj tool to generate shared libraries or executables of Java - files.</li> -<li>Cooperative garbage collection. </li> -<li>Fast subtype checking (paper from Click et al [JGI'02]). </li> -<li>Implementation of a two-word header for Java objects instead of the original - three-word header. </li> -<li>Better Java specification-compliance: division by zero checks, stack - overflow checks, finalization and references support. </li> +<li>...</li> </ul> </div> @@ -249,22 +218,7 @@ KLEE.</p> The goal of <a href="http://dragonegg.llvm.org/">DragonEgg</a> is to make gcc-4.5 act like llvm-gcc without requiring any gcc modifications whatsoever. <a href="http://dragonegg.llvm.org/">DragonEgg</a> is a shared library (dragonegg.so) -that is loaded by gcc at runtime. It uses the new gcc plugin architecture to -disable the GCC optimizers and code generators, and schedule the LLVM optimizers -and code generators (or direct output of LLVM IR) instead. Currently only Linux -and Darwin are supported, and only on x86-32 and x86-64. It should be easy to -add additional unix-like architectures and other processor families. In theory -it should be possible to use <a href="http://dragonegg.llvm.org/">DragonEgg</a> -with any language supported by gcc, however only C and Fortran work well for the -moment. Ada and C++ work to some extent, while Java, Obj-C and Obj-C++ are so -far entirely untested. Since gcc-4.5 has not yet been released, neither has -<a href="http://dragonegg.llvm.org/">DragonEgg</a>. To build -<a href="http://dragonegg.llvm.org/">DragonEgg</a> you will need to check out the -development versions of <a href="http://gcc.gnu.org/svn.html/"> gcc</a>, -<a href="http://llvm.org/docs/GettingStarted.html#checkout">llvm</a> and -<a href="http://dragonegg.llvm.org/">DragonEgg</a> from their respective -subversion repositories, and follow the instructions in the -<a href="http://dragonegg.llvm.org/">DragonEgg</a> README. +that is loaded by gcc at runtime. It ... </p> </div> @@ -277,29 +231,7 @@ subversion repositories, and follow the instructions in the <div class="doc_text"> <p> -The LLVM Machine Code (MC) Toolkit project is a (very early) effort to build -better tools for dealing with machine code, object file formats, etc. The idea -is to be able to generate most of the target specific details of assemblers and -disassemblers from existing LLVM target .td files (with suitable enhancements), -and to build infrastructure for reading and writing common object file formats. -One of the first deliverables is to build a full assembler and integrate it into -the compiler, which is predicted to substantially reduce compile time in some -scenarios. -</p> - -<p>In the LLVM 2.6 timeframe, the MC framework has grown to the point where it -can reliably parse and pretty print (with some encoding information) a -darwin/x86 .s file successfully, and has the very early phases of a Mach-O -assembler in progress. Beyond the MC framework itself, major refactoring of the -LLVM code generator has started. The idea is to make the code generator reason -about the code it is producing in a much more semantic way, rather than a -textual way. For example, the code generator now uses MCSection objects to -represent section assignments, instead of text strings that print to .section -directives.</p> - -<p>MC is an early and ongoing project that will hopefully continue to lead to -many improvements in the code generator and build infrastructure useful for many -other situations. +The LLVM Machine Code (MC) Toolkit project is ... </p> </div> @@ -307,7 +239,7 @@ other situations. <!-- *********************************************************************** --> <div class="doc_section"> - <a name="externalproj">External Open Source Projects Using LLVM 2.6</a> + <a name="externalproj">External Open Source Projects Using LLVM 2.7</a> </div> <!-- *********************************************************************** --> @@ -315,7 +247,7 @@ other situations. <p>An exciting aspect of LLVM is that it is used as an enabling technology for a lot of other language and tools projects. This section lists some of the - projects that have already been updated to work with LLVM 2.6.</p> + projects that have already been updated to work with LLVM 2.7.</p> </div> @@ -376,8 +308,8 @@ built-in list and matrix support (including list and matrix comprehensions) and an easy-to-use C interface. The interpreter uses LLVM as a backend to JIT-compile Pure programs to fast native code.</p> -<p>Pure versions 0.31 and later have been tested and are known to work with -LLVM 2.6 (and continue to work with older LLVM releases >= 2.3 as well). +<p>Pure versions ??? and later have been tested and are known to work with +LLVM 2.7 (and continue to work with older LLVM releases >= 2.3 as well). </p> </div> @@ -460,7 +392,7 @@ code. <!-- *********************************************************************** --> <div class="doc_section"> - <a name="whatsnew">What's New in LLVM 2.6?</a> + <a name="whatsnew">What's New in LLVM 2.7?</a> </div> <!-- *********************************************************************** --> @@ -480,28 +412,10 @@ in this section. <div class="doc_text"> -<p>LLVM 2.6 includes several major new capabilities:</p> +<p>LLVM 2.7 includes several major new capabilities:</p> <ul> -<li>New <a href="#compiler-rt">compiler-rt</a>, <A href="#klee">KLEE</a> - and <a href="#mc">machine code toolkit</a> sub-projects.</li> -<li>Debug information now includes line numbers when optimizations are enabled. - This allows statistical sampling tools like OProfile and Shark to map - samples back to source lines.</li> -<li>LLVM now includes new experimental backends to support the MSP430, SystemZ - and BlackFin architectures.</li> -<li>LLVM supports a new <a href="GoldPlugin.html">Gold Linker Plugin</a> which - enables support for <a href="LinkTimeOptimization.html">transparent - link-time optimization</a> on ELF targets when used with the Gold binutils - linker.</li> -<li>LLVM now supports doing optimization and code generation on multiple - threads. Please see the <a href="ProgrammersManual.html#threading">LLVM - Programmer's Manual</a> for more information.</li> -<li>LLVM now has experimental support for <a - href="http://nondot.org/~sabre/LLVMNotes/EmbeddedMetadata.txt">embedded - metadata</a> in LLVM IR, though the implementation is not guaranteed to be - final and the .bc file format may change in future releases. Debug info - does not yet use this format in LLVM 2.6.</li> +<li>...</li> </ul> </div> @@ -516,50 +430,7 @@ in this section. expose new optimization opportunities:</p> <ul> -<li>The <a href="LangRef.html#i_add">add</a>, <a - href="LangRef.html#i_sub">sub</a> and <a href="LangRef.html#i_mul">mul</a> - instructions have been split into integer and floating point versions (like - divide and remainder), introducing new <a - href="LangRef.html#i_fadd">fadd</a>, <a href="LangRef.html#i_fsub">fsub</a>, - and <a href="LangRef.html#i_fmul">fmul</a> instructions.</li> -<li>The <a href="LangRef.html#i_add">add</a>, <a - href="LangRef.html#i_sub">sub</a> and <a href="LangRef.html#i_mul">mul</a> - instructions now support optional "nsw" and "nuw" bits which indicate that - the operation is guaranteed to not overflow (in the signed or - unsigned case, respectively). This gives the optimizer more information and - can be used for things like C signed integer values, which are undefined on - overflow.</li> -<li>The <a href="LangRef.html#i_sdiv">sdiv</a> instruction now supports an - optional "exact" flag which indicates that the result of the division is - guaranteed to have a remainder of zero. This is useful for optimizing pointer - subtraction in C.</li> -<li>The <a href="LangRef.html#i_getelementptr">getelementptr</a> instruction now - supports arbitrary integer index values for array/pointer indices. This - allows for better code generation on 16-bit pointer targets like PIC16.</li> -<li>The <a href="LangRef.html#i_getelementptr">getelementptr</a> instruction now - supports an "inbounds" optimization hint that tells the optimizer that the - pointer is guaranteed to be within its allocated object.</li> -<li>LLVM now support a series of new linkage types for global values which allow - for better optimization and new capabilities: - <ul> - <li><a href="LangRef.html#linkage_linkonce">linkonce_odr</a> and - <a href="LangRef.html#linkage_weak">weak_odr</a> have the same linkage - semantics as the non-"odr" linkage types. The difference is that these - linkage types indicate that all definitions of the specified function - are guaranteed to have the same semantics. This allows inlining - templates functions in C++ but not inlining weak functions in C, - which previously both got the same linkage type.</li> - <li><a href="LangRef.html#linkage_available_externally">available_externally - </a> is a new linkage type that gives the optimizer visibility into the - definition of a function (allowing inlining and side effect analysis) - but that does not cause code to be generated. This allows better - optimization of "GNU inline" functions, extern templates, etc.</li> - <li><a href="LangRef.html#linkage_linker_private">linker_private</a> is a - new linkage type (which is only useful on Mac OS X) that is used for - some metadata generation and other obscure things.</li> - </ul></li> -<li>Finally, target-specific intrinsics can now return multiple values, which - is useful for modeling target operations with multiple results.</li> +<li>...</li> </ul> </div> @@ -576,23 +447,7 @@ release includes a few major enhancements and additions to the optimizers:</p> <ul> -<li>The <a href="Passes.html#scalarrepl">Scalar Replacement of Aggregates</a> - pass has many improvements that allow it to better promote vector unions, - variables which are memset, and much more strange code that can happen to - do bitfield accesses to register operations. An interesting change is that - it now produces "unusual" integer sizes (like i1704) in some cases and lets - other optimizers clean things up.</li> -<li>The <a href="Passes.html#loop-reduce">Loop Strength Reduction</a> pass now - promotes small integer induction variables to 64-bit on 64-bit targets, - which provides a major performance boost for much numerical code. It also - promotes shorts to int on 32-bit hosts, etc. LSR now also analyzes pointer - expressions (e.g. getelementptrs), as well as integers.</li> -<li>The <a href="Passes.html#gvn">GVN</a> pass now eliminates partial - redundancies of loads in simple cases.</li> -<li>The <a href="Passes.html#inline">Inliner</a> now reuses stack space when - inlining similar arrays from multiple callees into one caller.</li> -<li>LLVM includes a new experimental Static Single Information (SSI) - construction pass.</li> +<li>...</li> </ul> @@ -607,17 +462,15 @@ release includes a few major enhancements and additions to the optimizers:</p> <div class="doc_text"> <ul> -<li>LLVM has a new "EngineBuilder" class which makes it more obvious how to - set up and configure an ExecutionEngine (a JIT or interpreter).</li> -<li>The JIT now supports generating more than 16M of code.</li> -<li>When configured with <tt>--with-oprofile</tt>, the JIT can now inform - OProfile about JIT'd code, allowing OProfile to get line number and function - name information for JIT'd functions.</li> -<li>When "libffi" is available, the LLVM interpreter now uses it, which supports - calling almost arbitrary external (natively compiled) functions.</li> -<li>Clients of the JIT can now register a 'JITEventListener' object to receive - callbacks when the JIT emits or frees machine code. The OProfile support - uses this mechanism.</li> +<li>The JIT now <a +href="http://llvm.org/viewvc/llvm-project?view=rev&revision=85295">defaults +to compiling eagerly</a> to avoid a race condition in the lazy JIT. +Clients that still want the lazy JIT can switch it on by calling +<tt>ExecutionEngine::DisableLazyCompilation(false)</tt>.</li> +<li>It is now possible to create more than one JIT instance in the same process. +These JITs can generate machine code in parallel, +although <a href="http://llvm.org/docs/ProgrammersManual.html#jitthreading">you +still have to obey the other threading restrictions</a>.</li> </ul> </div> @@ -635,54 +488,7 @@ it run faster:</p> <ul> -<li>The <tt>llc -asm-verbose</tt> option (exposed from llvm-gcc as <tt>-dA</tt> - and clang as <tt>-fverbose-asm</tt> or <tt>-dA</tt>) now adds a lot of - useful information in comments to - the generated .s file. This information includes location information (if - built with <tt>-g</tt>) and loop nest information.</li> -<li>The code generator now supports a new MachineVerifier pass which is useful - for finding bugs in targets and codegen passes.</li> -<li>The Machine LICM is now enabled by default. It hoists instructions out of - loops (such as constant pool loads, loads from read-only stubs, vector - constant synthesization code, etc.) and is currently configured to only do - so when the hoisted operation can be rematerialized.</li> -<li>The Machine Sinking pass is now enabled by default. This pass moves - side-effect free operations down the CFG so that they are executed on fewer - paths through a function.</li> -<li>The code generator now performs "stack slot coloring" of register spills, - which allows spill slots to be reused. This leads to smaller stack frames - in cases where there are lots of register spills.</li> -<li>The register allocator has many improvements to take better advantage of - commutable operations, various spiller peephole optimizations, and can now - coalesce cross-register-class copies.</li> -<li>Tblgen now supports multiclass inheritance and a number of new string and - list operations like <tt>!(subst)</tt>, <tt>!(foreach)</tt>, <tt>!car</tt>, - <tt>!cdr</tt>, <tt>!null</tt>, <tt>!if</tt>, <tt>!cast</tt>. - These make the .td files more expressive and allow more aggressive factoring - of duplication across instruction patterns.</li> -<li>Target-specific intrinsics can now be added without having to hack VMCore to - add them. This makes it easier to maintain out-of-tree targets.</li> -<li>The instruction selector is better at propagating information about values - (such as whether they are sign/zero extended etc.) across basic block - boundaries.</li> -<li>The SelectionDAG datastructure has new nodes for representing buildvector - and <a href="http://llvm.org/PR2957">vector shuffle</a> operations. This - makes operations and pattern matching more efficient and easier to get - right.</li> -<li>The Prolog/Epilog Insertion Pass now has experimental support for performing - the "shrink wrapping" optimization, which moves spills and reloads around in - the CFG to avoid doing saves on paths that don't need them.</li> -<li>LLVM includes new experimental support for writing ELF .o files directly - from the compiler. It works well for many simple C testcases, but doesn't - support exception handling, debug info, inline assembly, etc.</li> -<li>Targets can now specify register allocation hints through - <tt>MachineRegisterInfo::setRegAllocationHint</tt>. A regalloc hint consists - of hint type and physical register number. A hint type of zero specifies a - register allocation preference. Other hint type values are target specific - which are resolved by <tt>TargetRegisterInfo::ResolveRegAllocHint</tt>. An - example is the ARM target which uses register hints to request that the - register allocator provide an even / odd register pair to two virtual - registers.</li> +<li>...</li> </ul> </div> @@ -697,31 +503,7 @@ it run faster:</p> <ul> -<li>SSE 4.2 builtins are now supported.</li> -<li>GCC-compatible soft float modes are now supported, which are typically used - by OS kernels.</li> -<li>X86-64 now models implicit zero extensions better, which allows the code - generator to remove a lot of redundant zexts. It also models the 8-bit "H" - registers as subregs, which allows them to be used in some tricky - situations.</li> -<li>X86-64 now supports the "local exec" and "initial exec" thread local storage - model.</li> -<li>The vector forms of the <a href="LangRef.html#i_icmp">icmp</a> and <a - href="LangRef.html#i_fcmp">fcmp</a> instructions now select to efficient - SSE operations.</li> -<li>Support for the win64 calling conventions have improved. The primary - missing feature is support for varargs function definitions. It seems to - work well for many win64 JIT purposes.</li> -<li>The X86 backend has preliminary support for <a - href="CodeGenerator.html#x86_memory">mapping address spaces to segment - register references</a>. This allows you to write GS or FS relative memory - accesses directly in LLVM IR for cases where you know exactly what you're - doing (such as in an OS kernel). There are some known problems with this - support, but it works in simple cases.</li> -<li>The X86 code generator has been refactored to move all global variable - reference logic to one place - (<tt>X86Subtarget::ClassifyGlobalReference</tt>) which - makes it easier to reason about.</li> +<li>...</li> </ul> @@ -737,11 +519,7 @@ it run faster:</p> </p> <ul> -<li>Support for floating-point, indirect function calls, and - passing/returning aggregate types to functions. -<li>The code generator is able to generate debug info into output COFF files. -<li>Support for placing an object into a specific section or at a specific - address in memory.</li> +<li>...</li> </ul> <p>Things not yet supported:</p> @@ -764,22 +542,9 @@ it run faster:</p> <ul> -<li>Preliminary support for processors, such as the Cortex-A8 and Cortex-A9, -that implement version v7-A of the ARM architecture. The ARM backend now -supports both the Thumb2 and Advanced SIMD (Neon) instruction sets.</li> - -<li>The AAPCS-VFP "hard float" calling conventions are also supported with the -<tt>-float-abi=hard</tt> flag.</li> - -<li>The ARM calling convention code is now tblgen generated instead of resorting - to C++ code.</li> +<li>...</li> </ul> -<p>These features are still somewhat experimental -and subject to change. The Neon intrinsics, in particular, may change in future -releases of LLVM. ARMv7 support has progressed a lot on top of tree since 2.6 -branched.</p> - </div> @@ -793,11 +558,7 @@ branched.</p> </p> <ul> -<li>Mips now supports O32 Calling Convention.</li> -<li>Many improvements to the 32-bit PowerPC SVR4 ABI (used on powerpc-linux) - support, lots of bugs fixed.</li> -<li>Added support for the 64-bit PowerPC SVR4 ABI (used on powerpc64-linux). - Needs more testing.</li> +<li>...</li> </ul> </div> @@ -814,40 +575,7 @@ branched.</p> </p> <ul> -<li>New <a href="http://llvm.org/doxygen/PrettyStackTrace_8h-source.html"> - <tt>PrettyStackTrace</tt> class</a> allows crashes of llvm tools (and applications - that integrate them) to provide more detailed indication of what the - compiler was doing at the time of the crash (e.g. running a pass). - At the top level for each LLVM tool, it includes the command line arguments. - </li> -<li>New <a href="http://llvm.org/doxygen/StringRef_8h-source.html">StringRef</a> - and <a href="http://llvm.org/doxygen/Twine_8h-source.html">Twine</a> classes - make operations on character ranges and - string concatenation to be more efficient. <tt>StringRef</tt> is just a <tt>const - char*</tt> with a length, <tt>Twine</tt> is a light-weight rope.</li> -<li>LLVM has new <tt>WeakVH</tt>, <tt>AssertingVH</tt> and <tt>CallbackVH</tt> - classes, which make it easier to write LLVM IR transformations. <tt>WeakVH</tt> - is automatically drops to null when the referenced <tt>Value</tt> is deleted, - and is updated across a <tt>replaceAllUsesWith</tt> operation. - <tt>AssertingVH</tt> aborts the program if the - referenced value is destroyed while it is being referenced. <tt>CallbackVH</tt> - is a customizable class for handling value references. See <a - href="http://llvm.org/doxygen/ValueHandle_8h-source.html">ValueHandle.h</a> - for more information.</li> -<li>The new '<a href="http://llvm.org/doxygen/Triple_8h-source.html">Triple - </a>' class centralizes a lot of logic that reasons about target - triples.</li> -<li>The new '<a href="http://llvm.org/doxygen/ErrorHandling_8h-source.html"> - llvm_report_error()</a>' set of APIs allows tools to embed the LLVM - optimizer and backend and recover from previously unrecoverable errors.</li> -<li>LLVM has new abstractions for <a - href="http://llvm.org/doxygen/Atomic_8h-source.html">atomic operations</a> - and <a href="http://llvm.org/doxygen/RWMutex_8h-source.html">reader/writer - locks</a>.</li> -<li>LLVM has new <a href="http://llvm.org/doxygen/SourceMgr_8h-source.html"> - <tt>SourceMgr</tt> and <tt>SMLoc</tt> classes</a> which implement caret - diagnostics and basic include stack processing for simple parsers. It is - used by tablegen, llvm-mc, the .ll parser and FileCheck.</li> +<li>...</li> </ul> @@ -862,32 +590,7 @@ branched.</p> <p>Other miscellaneous features include:</p> <ul> -<li>LLVM now includes a new internal '<a - href="http://llvm.org/cmds/FileCheck.html">FileCheck</a>' tool which allows - writing much more accurate regression tests that run faster. Please see the - <a href="TestingGuide.html#FileCheck">FileCheck section of the Testing - Guide</a> for more information.</li> -<li>LLVM profile information support has been significantly improved to produce -correct use counts, and has support for edge profiling with reduced runtime -overhead. Combined, the generated profile information is both more correct and -imposes about half as much overhead (2.6. from 12% to 6% overhead on SPEC -CPU2000).</li> -<li>The C bindings (in the llvm/include/llvm-c directory) include many newly - supported APIs.</li> -<li>LLVM 2.6 includes a brand new experimental LLVM bindings to the Ada2005 - programming language.</li> - -<li>The LLVMC driver has several new features: - <ul> - <li>Dynamic plugins now work on Windows.</li> - <li>New option property: init. Makes possible to provide default values for - options defined in plugins (interface to <tt>cl::init</tt>).</li> - <li>New example: Skeleton, shows how to create a standalone LLVMC-based - driver.</li> - <li>New example: mcc16, a driver for the PIC16 toolchain.</li> - </ul> -</li> - +<li>...</li> </ul> </div> @@ -901,24 +604,15 @@ CPU2000).</li> <div class="doc_text"> <p>If you're already an LLVM user or developer with out-of-tree changes based -on LLVM 2.5, this section lists some "gotchas" that you may run into upgrading +on LLVM 2.6, this section lists some "gotchas" that you may run into upgrading from the previous release.</p> <ul> -<li>The Itanium (IA64) backend has been removed. It was not actively supported - and had bitrotted.</li> -<li>The BigBlock register allocator has been removed, it had also bitrotted.</li> -<li>The C Backend (<tt>-march=c</tt>) is no longer considered part of the LLVM release -criteria. We still want it to work, but no one is maintaining it and it lacks -support for arbitrary precision integers and other important IR features.</li> - -<li>All LLVM tools now default to overwriting their output file, behaving more - like standard unix tools. Previously, this only happened with the '<tt>-f</tt>' - option.</li> -<li>LLVM build now builds all libraries as .a files instead of some - libraries as relinked .o files. This requires some APIs like - InitializeAllTargets.h. - </li> +<li>The LLVM interpreter now defaults to <em>not</em> using <tt>libffi</tt> even +if you have it installed. This makes it more likely that an LLVM built on one +system will work when copied to a similar system. To use <tt>libffi</tt>, +configure with <tt>--enable-libffi</tt>. +</li> </ul> @@ -926,82 +620,30 @@ support for arbitrary precision integers and other important IR features.</li> API changes are:</p> <ul> -<li>All uses of <tt>hash_set</tt> and <tt>hash_map</tt> have been removed from - the LLVM tree and the wrapper headers have been removed.</li> -<li>The llvm/Streams.h and <tt>DOUT</tt> member of Debug.h have been removed. The - <tt>llvm::Ostream</tt> class has been completely removed and replaced with - uses of <tt>raw_ostream</tt>.</li> -<li>LLVM's global uniquing tables for <tt>Type</tt>s and <tt>Constant</tt>s have - been privatized into members of an <tt>LLVMContext</tt>. A number of APIs - now take an <tt>LLVMContext</tt> as a parameter. To smooth the transition - for clients that will only ever use a single context, the new - <tt>getGlobalContext()</tt> API can be used to access a default global - context which can be passed in any and all cases where a context is - required. -<li>The <tt>getABITypeSize</tt> methods are now called <tt>getAllocSize</tt>.</li> -<li>The <tt>Add</tt>, <tt>Sub</tt> and <tt>Mul</tt> operators are no longer - overloaded for floating-point types. Floating-point addition, subtraction - and multiplication are now represented with new operators <tt>FAdd</tt>, - <tt>FSub</tt> and <tt>FMul</tt>. In the <tt>IRBuilder</tt> API, - <tt>CreateAdd</tt>, <tt>CreateSub</tt>, <tt>CreateMul</tt> and - <tt>CreateNeg</tt> should only be used for integer arithmetic now; - <tt>CreateFAdd</tt>, <tt>CreateFSub</tt>, <tt>CreateFMul</tt> and - <tt>CreateFNeg</tt> should now be used for floating-point arithmetic.</li> -<li>The <tt>DynamicLibrary</tt> class can no longer be constructed, its functionality has - moved to static member functions.</li> -<li><tt>raw_fd_ostream</tt>'s constructor for opening a given filename now - takes an extra <tt>Force</tt> argument. If <tt>Force</tt> is set to - <tt>false</tt>, an error will be reported if a file with the given name - already exists. If <tt>Force</tt> is set to <tt>true</tt>, the file will - be silently truncated (which is the behavior before this flag was - added).</li> -<li><tt>SCEVHandle</tt> no longer exists, because reference counting is no - longer done for <tt>SCEV*</tt> objects, instead <tt>const SCEV*</tt> - should be used.</li> +<li><tt>ModuleProvider</tt> has been <a +href="http://llvm.org/viewvc/llvm-project?view=rev&revision=94686">removed</a> +and its methods moved to <tt>Module</tt> and <tt>GlobalValue</tt>. +Most clients can remove uses of <tt>ExistingModuleProvider</tt>, +replace <tt>getBitcodeModuleProvider</tt> with +<tt>getLazyBitcodeModule</tt>, and pass their <tt>Module</tt> to +functions that used to accept <tt>ModuleProvider</tt>. Clients who +wrote their own <tt>ModuleProvider</tt>s will need to derive from +<tt>GVMaterializer</tt> instead and use +<tt>Module::setMaterializer</tt> to attach it to a +<tt>Module</tt>.</li> -<li>Many APIs, notably <tt>llvm::Value</tt>, now use the <tt>StringRef</tt> -and <tt>Twine</tt> classes instead of passing <tt>const char*</tt> -or <tt>std::string</tt>, as described in -the <a href="ProgrammersManual.html#string_apis">Programmer's Manual</a>. Most -clients should be unaffected by this transition, unless they are used to -<tt>Value::getName()</tt> returning a string. Here are some tips on updating to -2.6: - <ul> - <li><tt>getNameStr()</tt> is still available, and matches the old - behavior. Replacing <tt>getName()</tt> calls with this is an safe option, - although more efficient alternatives are now possible.</li> +<li><tt>GhostLinkage</tt> has given up the ghost. +<tt>GlobalValue</tt>s that have not yet been read from their backing +storage have the same linkage they will have after being read in. +Clients must replace calls to +<tt>GlobalValue::hasNotBeenReadFromBitcode</tt> with +<tt>GlobalValue::isMaterializable</tt>.</li> - <li>If you were just relying on <tt>getName()</tt> being able to be sent to - a <tt>std::ostream</tt>, consider migrating - to <tt>llvm::raw_ostream</tt>.</li> - - <li>If you were using <tt>getName().c_str()</tt> to get a <tt>const - char*</tt> pointer to the name, you can use <tt>getName().data()</tt>. - Note that this string (as before), may not be the entire name if the - name contains embedded null characters.</li> +<li>FIXME: Debug info has been totally redone. Add pointers to new APIs. Substantial caveats about compatibility of .ll and .bc files.</li> - <li>If you were using <tt>operator +</tt> on the result of <tt>getName()</tt> and - treating the result as an <tt>std::string</tt>, you can either - use <tt>Twine::str</tt> to get the result as an <tt>std::string</tt>, or - could move to a <tt>Twine</tt> based design.</li> +<li>The <tt>llvm/Support/DataTypes.h</tt> header has moved +to <tt>llvm/System/DataTypes.h</tt>.</li> - <li><tt>isName()</tt> should be replaced with comparison - against <tt>getName()</tt> (this is now efficient). - </ul> -</li> - -<li>The registration interfaces for backend Targets has changed (what was -previously <tt>TargetMachineRegistry</tt>). For backend authors, see the <a -href="WritingAnLLVMBackend.html#TargetRegistration">Writing An LLVM Backend</a> -guide. For clients, the notable API changes are: - <ul> - <li><tt>TargetMachineRegistry</tt> has been renamed - to <tt>TargetRegistry</tt>.</li> - - <li>Clients should move to using the <tt>TargetRegistry::lookupTarget()</tt> - function to find targets.</li> - </ul> -</li> </ul> </div> @@ -1055,8 +697,8 @@ there isn't already one.</p> <li>The llvm-gcc bootstrap will fail with some versions of binutils (e.g. 2.15) with a message of "<tt><a href="http://llvm.org/PR5004">Error: can not do 8 byte pc-relative relocation</a></tt>" when building C++ code. We intend to - fix this on mainline, but a workaround for 2.6 is to upgrade to binutils - 2.17 or later.</li> + fix this on mainline, but a workaround is to upgrade to binutils 2.17 or + later.</li> <li>LLVM will not correctly compile on Solaris and/or OpenSolaris using the stock GCC 3.x.x series 'out the box', @@ -1350,7 +992,7 @@ lists</a>.</p> src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a> <a href="http://llvm.org/">LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2010-01-16 22:25:13 +0100 (Sat, 16 Jan 2010) $ + Last modified: $Date: 2010-02-14 02:47:19 +0100 (Sun, 14 Feb 2010) $ </address> </body> diff --git a/docs/WritingAnLLVMBackend.html b/docs/WritingAnLLVMBackend.html index 5a951853c0ae..75353cf5321a 100644 --- a/docs/WritingAnLLVMBackend.html +++ b/docs/WritingAnLLVMBackend.html @@ -354,8 +354,6 @@ public: // Pass Pipeline Configuration virtual bool addInstSelector(PassManagerBase &PM, bool Fast); virtual bool addPreEmitPass(PassManagerBase &PM, bool Fast); - virtual bool addAssemblyEmitter(PassManagerBase &PM, bool Fast, - std::ostream &Out); }; } // end namespace llvm @@ -2152,12 +2150,6 @@ in <tt>XXXGenAsmWriter.inc</tt> contains an implementation of the <li><tt>printImplicitDef</tt></li> <li><tt>printInlineAsm</tt></li> - -<li><tt>printLabel</tt></li> - -<li><tt>printPICJumpTableEntry</tt></li> - -<li><tt>printPICJumpTableSetLabel</tt></li> </ul> <p> @@ -2563,7 +2555,7 @@ with assembler. <a href="http://www.woo.com">Mason Woo</a> and <a href="http://misha.brukman.net">Misha Brukman</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a> <br> - Last modified: $Date: 2009-09-13 00:57:37 +0200 (Sun, 13 Sep 2009) $ + Last modified: $Date: 2010-02-02 19:44:12 +0100 (Tue, 02 Feb 2010) $ </address> </body> diff --git a/docs/index.html b/docs/index.html index 36ed0e2d9f86..1ada7de6dac8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,12 +2,16 @@ "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> - <title>Documentation for the LLVM System</title> + <title>Documentation for the LLVM System at SVN head</title> <link rel="stylesheet" href="llvm.css" type="text/css"> </head> <body> -<div class="doc_title">Documentation for the LLVM System</div> +<div class="doc_title">Documentation for the LLVM System at SVN head</div> + +<p class="doc_warning">If you are using a released version of LLVM, +see <a href="http://llvm.org/releases/">the download page</a> to find +your documentation.</p> <div class="doc_text"> <table class="layout" width="95%"><tr class="layout"><td class="left"> @@ -281,7 +285,7 @@ times each day, making it a high volume list.</li> src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a> <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2009-09-21 04:34:59 +0200 (Mon, 21 Sep 2009) $ + Last modified: $Date: 2010-02-03 19:49:55 +0100 (Wed, 03 Feb 2010) $ </address> </body></html> diff --git a/docs/tutorial/LangImpl1.html b/docs/tutorial/LangImpl1.html index 5e1786cb00be..9f4737d39f84 100644 --- a/docs/tutorial/LangImpl1.html +++ b/docs/tutorial/LangImpl1.html @@ -342,7 +342,7 @@ so that you can use the lexer and parser together. <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2010-02-03 18:27:31 +0100 (Wed, 03 Feb 2010) $ </address> </body> </html> diff --git a/docs/tutorial/LangImpl2.html b/docs/tutorial/LangImpl2.html index 5bcd0dd2c7ff..f06db16e67fd 100644 --- a/docs/tutorial/LangImpl2.html +++ b/docs/tutorial/LangImpl2.html @@ -1227,7 +1227,7 @@ int main() { <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2010-02-03 18:27:31 +0100 (Wed, 03 Feb 2010) $ </address> </body> </html> diff --git a/docs/tutorial/LangImpl3.html b/docs/tutorial/LangImpl3.html index e3d2117c4e68..a628145dc3cc 100644 --- a/docs/tutorial/LangImpl3.html +++ b/docs/tutorial/LangImpl3.html @@ -1263,7 +1263,7 @@ int main() { <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2009-07-21 11:05:13 -0700 (Tue, 21 Jul 2009) $ + Last modified: $Date: 2010-02-03 18:27:31 +0100 (Wed, 03 Feb 2010) $ </address> </body> </html> diff --git a/docs/tutorial/LangImpl4.html b/docs/tutorial/LangImpl4.html index 728d518a473b..85e48c5f89e3 100644 --- a/docs/tutorial/LangImpl4.html +++ b/docs/tutorial/LangImpl4.html @@ -171,10 +171,7 @@ add a set of optimizations to run. The code looks like this:</p> <div class="doc_code"> <pre> - ExistingModuleProvider *OurModuleProvider = - new ExistingModuleProvider(TheModule); - - FunctionPassManager OurFPM(OurModuleProvider); + FunctionPassManager OurFPM(TheModule); // Set up the optimizer pipeline. Start with registering info about how the // target lays out data structures. @@ -198,19 +195,13 @@ add a set of optimizations to run. The code looks like this:</p> </pre> </div> -<p>This code defines two objects, an <tt>ExistingModuleProvider</tt> and a -<tt>FunctionPassManager</tt>. The former is basically a wrapper around our -<tt>Module</tt> that the PassManager requires. It provides certain flexibility -that we're not going to take advantage of here, so I won't dive into any details -about it.</p> - -<p>The meat of the matter here, is the definition of "<tt>OurFPM</tt>". It -requires a pointer to the <tt>Module</tt> (through the <tt>ModuleProvider</tt>) -to construct itself. Once it is set up, we use a series of "add" calls to add -a bunch of LLVM passes. The first pass is basically boilerplate, it adds a pass -so that later optimizations know how the data structures in the program are -laid out. The "<tt>TheExecutionEngine</tt>" variable is related to the JIT, -which we will get to in the next section.</p> +<p>This code defines a <tt>FunctionPassManager</tt>, "<tt>OurFPM</tt>". It +requires a pointer to the <tt>Module</tt> to construct itself. Once it is set +up, we use a series of "add" calls to add a bunch of LLVM passes. The first +pass is basically boilerplate, it adds a pass so that later optimizations know +how the data structures in the program are laid out. The +"<tt>TheExecutionEngine</tt>" variable is related to the JIT, which we will get +to in the next section.</p> <p>In this case, we choose to add 4 optimization passes. The passes we chose here are a pretty standard set of "cleanup" optimizations that are useful for @@ -302,8 +293,8 @@ by adding a global variable and a call in <tt>main</tt>:</p> ... int main() { .. - <b>// Create the JIT. This takes ownership of the module and module provider. - TheExecutionEngine = EngineBuilder(OurModuleProvider).create();</b> + <b>// Create the JIT. This takes ownership of the module. + TheExecutionEngine = EngineBuilder(TheModule).create();</b> .. } </pre> @@ -494,7 +485,7 @@ LLVM JIT and optimizer. To build this example, use: <div class="doc_code"> <pre> # Compile - g++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit interpreter native` -O3 -o toy + g++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy # Run ./toy </pre> @@ -511,11 +502,9 @@ at runtime.</p> <pre> #include "llvm/DerivedTypes.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" -#include "llvm/ExecutionEngine/Interpreter.h" #include "llvm/ExecutionEngine/JIT.h" #include "llvm/LLVMContext.h" #include "llvm/Module.h" -#include "llvm/ModuleProvider.h" #include "llvm/PassManager.h" #include "llvm/Analysis/Verifier.h" #include "llvm/Target/TargetData.h" @@ -1084,13 +1073,15 @@ int main() { // Make the module, which holds all the code. TheModule = new Module("my cool jit", Context); - ExistingModuleProvider *OurModuleProvider = - new ExistingModuleProvider(TheModule); - - // Create the JIT. This takes ownership of the module and module provider. - TheExecutionEngine = EngineBuilder(OurModuleProvider).create(); + // Create the JIT. This takes ownership of the module. + std::string ErrStr; + TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); + if (!TheExecutionEngine) { + fprintf(stderr, "Could not create ExecutionEngine: %s\n", ErrStr.c_str()); + exit(1); + } - FunctionPassManager OurFPM(OurModuleProvider); + FunctionPassManager OurFPM(TheModule); // Set up the optimizer pipeline. Start with registering info about how the // target lays out data structures. @@ -1135,7 +1126,7 @@ int main() { <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2010-02-11 20:15:20 +0100 (Thu, 11 Feb 2010) $ </address> </body> </html> diff --git a/docs/tutorial/LangImpl5.html b/docs/tutorial/LangImpl5.html index f93b59be0dca..f80f3f3f055d 100644 --- a/docs/tutorial/LangImpl5.html +++ b/docs/tutorial/LangImpl5.html @@ -902,11 +902,9 @@ if/then/else and for expressions.. To build this example, use: <pre> #include "llvm/DerivedTypes.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" -#include "llvm/ExecutionEngine/Interpreter.h" #include "llvm/ExecutionEngine/JIT.h" #include "llvm/LLVMContext.h" #include "llvm/Module.h" -#include "llvm/ModuleProvider.h" #include "llvm/PassManager.h" #include "llvm/Analysis/Verifier.h" #include "llvm/Target/TargetData.h" @@ -1720,13 +1718,15 @@ int main() { // Make the module, which holds all the code. TheModule = new Module("my cool jit", Context); - ExistingModuleProvider *OurModuleProvider = - new ExistingModuleProvider(TheModule); - - // Create the JIT. This takes ownership of the module and module provider. - TheExecutionEngine = EngineBuilder(OurModuleProvider).create(); + // Create the JIT. This takes ownership of the module. + std::string ErrStr; + TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); + if (!TheExecutionEngine) { + fprintf(stderr, "Could not create ExecutionEngine: %s\n", ErrStr.c_str()); + exit(1); + } - FunctionPassManager OurFPM(OurModuleProvider); + FunctionPassManager OurFPM(TheModule); // Set up the optimizer pipeline. Start with registering info about how the // target lays out data structures. @@ -1771,7 +1771,7 @@ int main() { <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2010-02-11 20:15:20 +0100 (Thu, 11 Feb 2010) $ </address> </body> </html> diff --git a/docs/tutorial/LangImpl6.html b/docs/tutorial/LangImpl6.html index f113e96651e9..f70bc501fe5c 100644 --- a/docs/tutorial/LangImpl6.html +++ b/docs/tutorial/LangImpl6.html @@ -821,11 +821,9 @@ if/then/else and for expressions.. To build this example, use: <pre> #include "llvm/DerivedTypes.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" -#include "llvm/ExecutionEngine/Interpreter.h" #include "llvm/ExecutionEngine/JIT.h" #include "llvm/LLVMContext.h" #include "llvm/Module.h" -#include "llvm/ModuleProvider.h" #include "llvm/PassManager.h" #include "llvm/Analysis/Verifier.h" #include "llvm/Target/TargetData.h" @@ -1757,13 +1755,15 @@ int main() { // Make the module, which holds all the code. TheModule = new Module("my cool jit", Context); - ExistingModuleProvider *OurModuleProvider = - new ExistingModuleProvider(TheModule); - - // Create the JIT. This takes ownership of the module and module provider. - TheExecutionEngine = EngineBuilder(OurModuleProvider).create(); + // Create the JIT. This takes ownership of the module. + std::string ErrStr; + TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); + if (!TheExecutionEngine) { + fprintf(stderr, "Could not create ExecutionEngine: %s\n", ErrStr.c_str()); + exit(1); + } - FunctionPassManager OurFPM(OurModuleProvider); + FunctionPassManager OurFPM(TheModule); // Set up the optimizer pipeline. Start with registering info about how the // target lays out data structures. @@ -1808,7 +1808,7 @@ int main() { <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2010-02-11 20:15:20 +0100 (Thu, 11 Feb 2010) $ </address> </body> </html> diff --git a/docs/tutorial/LangImpl7.html b/docs/tutorial/LangImpl7.html index ec07fa88d4b1..1a779baf9942 100644 --- a/docs/tutorial/LangImpl7.html +++ b/docs/tutorial/LangImpl7.html @@ -1004,11 +1004,9 @@ variables and var/in support. To build this example, use: <pre> #include "llvm/DerivedTypes.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" -#include "llvm/ExecutionEngine/Interpreter.h" #include "llvm/ExecutionEngine/JIT.h" #include "llvm/LLVMContext.h" #include "llvm/Module.h" -#include "llvm/ModuleProvider.h" #include "llvm/PassManager.h" #include "llvm/Analysis/Verifier.h" #include "llvm/Target/TargetData.h" @@ -2105,13 +2103,15 @@ int main() { // Make the module, which holds all the code. TheModule = new Module("my cool jit", Context); - ExistingModuleProvider *OurModuleProvider = - new ExistingModuleProvider(TheModule); - - // Create the JIT. This takes ownership of the module and module provider. - TheExecutionEngine = EngineBuilder(OurModuleProvider).create(); + // Create the JIT. This takes ownership of the module. + std::string ErrStr; + TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); + if (!TheExecutionEngine) { + fprintf(stderr, "Could not create ExecutionEngine: %s\n", ErrStr.c_str()); + exit(1); + } - FunctionPassManager OurFPM(OurModuleProvider); + FunctionPassManager OurFPM(TheModule); // Set up the optimizer pipeline. Start with registering info about how the // target lays out data structures. @@ -2158,7 +2158,7 @@ int main() { <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2010-02-11 20:15:20 +0100 (Thu, 11 Feb 2010) $ </address> </body> </html> diff --git a/docs/tutorial/LangImpl8.html b/docs/tutorial/LangImpl8.html index 855b8f3692bf..5effd70458d2 100644 --- a/docs/tutorial/LangImpl8.html +++ b/docs/tutorial/LangImpl8.html @@ -359,7 +359,7 @@ Passing Style</a> and the use of tail calls (which LLVM also supports).</p> <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2010-02-03 18:27:31 +0100 (Wed, 03 Feb 2010) $ </address> </body> </html> diff --git a/docs/tutorial/OCamlLangImpl1.html b/docs/tutorial/OCamlLangImpl1.html index 3c0fd8b1c690..f3345aaca6bb 100644 --- a/docs/tutorial/OCamlLangImpl1.html +++ b/docs/tutorial/OCamlLangImpl1.html @@ -359,7 +359,7 @@ include a driver so that you can use the lexer and parser together. <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="mailto:idadesub@users.sourceforge.net">Erick Tryzelaar</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2010-02-03 18:27:31 +0100 (Wed, 03 Feb 2010) $ </address> </body> </html> diff --git a/docs/tutorial/OCamlLangImpl2.html b/docs/tutorial/OCamlLangImpl2.html index 7d60aa6f9fdf..a59e829de61c 100644 --- a/docs/tutorial/OCamlLangImpl2.html +++ b/docs/tutorial/OCamlLangImpl2.html @@ -1039,7 +1039,7 @@ main () <a href="mailto:sabre@nondot.org">Chris Lattner</a> <a href="mailto:erickt@users.sourceforge.net">Erick Tryzelaar</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2010-02-03 18:27:31 +0100 (Wed, 03 Feb 2010) $ </address> </body> </html> diff --git a/docs/tutorial/OCamlLangImpl3.html b/docs/tutorial/OCamlLangImpl3.html index a59887522ee5..b3351477ac3d 100644 --- a/docs/tutorial/OCamlLangImpl3.html +++ b/docs/tutorial/OCamlLangImpl3.html @@ -1085,7 +1085,7 @@ main () <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="mailto:idadesub@users.sourceforge.net">Erick Tryzelaar</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2010-02-03 18:27:31 +0100 (Wed, 03 Feb 2010) $ </address> </body> </html> diff --git a/docs/tutorial/OCamlLangImpl4.html b/docs/tutorial/OCamlLangImpl4.html index 543e12fe25b2..451ab11261fd 100644 --- a/docs/tutorial/OCamlLangImpl4.html +++ b/docs/tutorial/OCamlLangImpl4.html @@ -1032,7 +1032,7 @@ extern double putchard(double X) { <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="mailto:idadesub@users.sourceforge.net">Erick Tryzelaar</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2010-02-03 18:27:31 +0100 (Wed, 03 Feb 2010) $ </address> </body> </html> diff --git a/docs/tutorial/OCamlLangImpl5.html b/docs/tutorial/OCamlLangImpl5.html index f19e900c00bd..ae075ec259b0 100644 --- a/docs/tutorial/OCamlLangImpl5.html +++ b/docs/tutorial/OCamlLangImpl5.html @@ -1563,7 +1563,7 @@ operators</a> <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="mailto:idadesub@users.sourceforge.net">Erick Tryzelaar</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2010-02-03 18:27:31 +0100 (Wed, 03 Feb 2010) $ </address> </body> </html> diff --git a/docs/tutorial/OCamlLangImpl6.html b/docs/tutorial/OCamlLangImpl6.html index 2edb22edf632..e0503c0880c7 100644 --- a/docs/tutorial/OCamlLangImpl6.html +++ b/docs/tutorial/OCamlLangImpl6.html @@ -1568,7 +1568,7 @@ SSA construction</a> <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="mailto:idadesub@users.sourceforge.net">Erick Tryzelaar</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2010-02-03 18:27:31 +0100 (Wed, 03 Feb 2010) $ </address> </body> </html> diff --git a/docs/tutorial/OCamlLangImpl7.html b/docs/tutorial/OCamlLangImpl7.html index 07768214b9a5..ed1a558e3ae0 100644 --- a/docs/tutorial/OCamlLangImpl7.html +++ b/docs/tutorial/OCamlLangImpl7.html @@ -1901,7 +1901,7 @@ extern double printd(double X) { <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> <a href="mailto:idadesub@users.sourceforge.net">Erick Tryzelaar</a><br> - Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $ + Last modified: $Date: 2010-02-03 18:27:31 +0100 (Wed, 03 Feb 2010) $ </address> </body> </html> |
