blob: 59e78646300a345cd96bebb67a449f2803b792dc [file] [log] [blame]
Reid Spencerab926de2006-03-23 06:45:42 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3<html>
4<head>
5 <title>How To Release LLVM To The Public</title>
6 <link rel="stylesheet" href="llvm.css" type="text/css">
7</head>
8<body>
9
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +000010<h1>How To Release LLVM To The Public</h1>
Reid Spencerab926de2006-03-23 06:45:42 +000011<ol>
12 <li><a href="#introduction">Introduction</a></li>
Tanya Lattner7fb16162009-08-18 22:33:28 +000013 <li><a href="#criteria">Qualification Criteria</a></li>
Tanya Lattner586eb8e2007-09-28 22:50:54 +000014 <li><a href="#introduction">Release Timeline</a></li>
Misha Brukman3df07812006-04-10 21:43:05 +000015 <li><a href="#process">Release Process</a></li>
Reid Spencerab926de2006-03-23 06:45:42 +000016</ol>
17<div class="doc_author">
Tanya Lattner7fb16162009-08-18 22:33:28 +000018 <p>Written by <a href="mailto:tonic@nondot.org">Tanya Lattner</a>,
19 <a href="mailto:rspencer@x10sys.com">Reid Spencer</a>,
Bill Wendlingb3294fa2011-02-28 01:10:44 +000020 <a href="mailto:criswell@cs.uiuc.edu">John Criswell</a>, &amp;
21 <a href="mailto:wendling@apple.com">Bill Wendling</a>
Tanya Lattner7fb16162009-08-18 22:33:28 +000022 </p>
Reid Spencerab926de2006-03-23 06:45:42 +000023</div>
24
25<!-- *********************************************************************** -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +000026<h2><a name="introduction">Introduction</a></h2>
Reid Spencerab926de2006-03-23 06:45:42 +000027<!-- *********************************************************************** -->
28
29<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +000030
31<p>This document contains information about successfully releasing LLVM &mdash;
32 including subprojects: e.g., <tt>llvm-gcc</tt> and <tt>clang</tt> &mdash; to
33 the public. It is the Release Manager's responsibility to ensure that a high
34 quality build of LLVM is released.</p>
35
Reid Spencerab926de2006-03-23 06:45:42 +000036</div>
37
38<!-- *********************************************************************** -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +000039<h2><a name="process">Release Timeline</a></h2>
Tanya Lattner586eb8e2007-09-28 22:50:54 +000040<!-- *********************************************************************** -->
41<div class="doc_text">
Tanya Lattner586eb8e2007-09-28 22:50:54 +000042
Bill Wendlingb3294fa2011-02-28 01:10:44 +000043<p>LLVM is released on a time based schedule &mdash; roughly every 6 months. We
44 do not normally have dot releases because of the nature of LLVM's incremental
45 development philosophy. That said, the only thing preventing dot releases for
46 critical bug fixes from happening is a lack of resources &mdash; testers,
47 machines, time, etc. And, because of the high quality we desire for LLVM
48 releases, we cannot allow for a truncated form of release qualification.</p>
49
50<p>The release process is roughly as follows:</p>
51
52<ul>
53 <li><p>Set code freeze and branch creation date for 6 months after last code
54 freeze date. Announce release schedule to the LLVM community and update
55 the website.</p></li>
56
57 <li><p>Create release branch and begin release process.</p></li>
58
59 <li><p>Send out release candidate sources for first round of testing. Testing
60 lasts 7-10 days. During the first round of testing, any regressions found
61 should be fixed. Patches are merged from mainline into the release
62 branch. Also, all features need to be completed during this time. Any
63 features not completed at the end of the first round of testing will be
64 removed or disabled for the release.</p></li>
65
66 <li><p>Generate and send out the second release candidate sources. Only
67 <em>critial</em> bugs found during this testing phase will be fixed. Any
68 bugs introduced by merged patches will be fixed. If so a third round of
69 testing is needed.</p></li>
70
71 <li><p>The release notes are updated.</p></li>
72
73 <li><p>Finally, release!</p></li>
74</ul>
75
76</div>
Tanya Lattner586eb8e2007-09-28 22:50:54 +000077
78<!-- *********************************************************************** -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +000079<h2><a name="process">Release Process</a></h2>
Reid Spencerab926de2006-03-23 06:45:42 +000080<!-- *********************************************************************** -->
81
Reid Spencerab926de2006-03-23 06:45:42 +000082<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +000083
84<ol>
NAKAMURA Takumi6bd36d52011-04-09 09:51:57 +000085 <li><a href="#release-admin">Release Administrative Tasks</a>
Reid Spencerab926de2006-03-23 06:45:42 +000086 <ol>
Tanya Lattner586eb8e2007-09-28 22:50:54 +000087 <li><a href="#branch">Create Release Branch</a></li>
Tanya Lattner7fb16162009-08-18 22:33:28 +000088 <li><a href="#verchanges">Update Version Numbers</a></li>
Bill Wendlingb3294fa2011-02-28 01:10:44 +000089 </ol>
NAKAMURA Takumi6bd36d52011-04-09 09:51:57 +000090 </li>
91 <li><a href="#release-build">Building the Release</a>
Bill Wendlingb3294fa2011-02-28 01:10:44 +000092 <ol>
Tanya Lattner586eb8e2007-09-28 22:50:54 +000093 <li><a href="#dist">Build the LLVM Source Distributions</a></li>
Misha Brukman3df07812006-04-10 21:43:05 +000094 <li><a href="#build">Build LLVM</a></li>
Tanya Lattner7fb16162009-08-18 22:33:28 +000095 <li><a href="#llvmgccbin">Build the LLVM-GCC Binary Distribution</a></li>
96 <li><a href="#clangbin">Build the Clang Binary Distribution</a></li>
97 <li><a href="#target-build">Target Specific Build Details</a></li>
Bill Wendlingb3294fa2011-02-28 01:10:44 +000098 </ol>
NAKAMURA Takumi6bd36d52011-04-09 09:51:57 +000099 </li>
100 <li><a href="#release-qualify">Release Qualification Criteria</a>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000101 <ol>
Tanya Lattner7fb16162009-08-18 22:33:28 +0000102 <li><a href="#llvm-qualify">Qualify LLVM</a></li>
103 <li><a href="#llvmgcc-qualify">Qualify LLVM-GCC</a></li>
104 <li><a href="#clang-qualify">Qualify Clang</a></li>
105 <li><a href="#targets">Specific Target Qualification Details</a></li>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000106 </ol>
NAKAMURA Takumi6bd36d52011-04-09 09:51:57 +0000107 </li>
Tanya Lattner7fb16162009-08-18 22:33:28 +0000108
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000109 <li><a href="#commTest">Community Testing</a></li>
110 <li><a href="#release-patch">Release Patch Rules</a></li>
NAKAMURA Takumi6bd36d52011-04-09 09:51:57 +0000111 <li><a href="#release-final">Release final tasks</a>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000112 <ol>
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000113 <li><a href="#updocs">Update Documentation</a></li>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000114 <li><a href="#tag">Tag the LLVM Final Release</a></li>
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000115 <li><a href="#updemo">Update the LLVM Demo Page</a></li>
Tanya Lattnerb3b1dab2006-08-10 00:23:05 +0000116 <li><a href="#webupdates">Update the LLVM Website</a></li>
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000117 <li><a href="#announce">Announce the Release</a></li>
Reid Spencerab926de2006-03-23 06:45:42 +0000118 </ol>
NAKAMURA Takumi6bd36d52011-04-09 09:51:57 +0000119 </li>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000120</ol>
121
Reid Spencerab926de2006-03-23 06:45:42 +0000122</div>
123
124<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000125<h3><a name="release-admin">Release Administrative Tasks</a></h3>
Tanya Lattner7fb16162009-08-18 22:33:28 +0000126
127<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000128
129<p>This section describes a few administrative tasks that need to be done for
130 the release process to begin. Specifically, it involves:</p>
131
132<ul>
133 <li>Creating the release branch,</li>
134 <li>Setting version numbers, and</li>
135 <li>Tagging release candidates for the release team to begin testing</li>
136</ul>
137
Tanya Lattner7fb16162009-08-18 22:33:28 +0000138</div>
139
140<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000141<h4><a name="branch">Create Release Branch</a></h4>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000142
John Criswell4b8dfb92006-04-11 20:24:28 +0000143<div class="doc_text">
John Criswell4b8dfb92006-04-11 20:24:28 +0000144
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000145<p>Branch the Subversion trunk using the following procedure:</p>
John Criswell4b8dfb92006-04-11 20:24:28 +0000146
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000147<ol>
148 <li><p>Remind developers that the release branching is imminent and to refrain
149 from committing patches that might break the build. E.g., new features,
150 large patches for works in progress, an overhaul of the type system, an
151 exciting new TableGen feature, etc.</p></li>
152
153 <li><p>Verify that the current Subversion trunk is in decent shape by
154 examining nightly tester and buildbot results.</p></li>
155
156 <li><p>Create the release branch for <tt>llvm</tt>, <tt>llvm-gcc-4.2</tt>,
157 <tt>clang</tt>, and the <tt>test-suite</tt> from the last known good
158 revision. The branch's name is <tt>release_XY</tt>, where <tt>X</tt> is
159 the major and <tt>Y</tt> the minor release numbers. The branches should be
160 created using the following commands:</p>
161
Bill Wendling922169c2007-07-23 04:41:42 +0000162<div class="doc_code">
163<pre>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000164$ svn copy https://llvm.org/svn/llvm-project/llvm/trunk \
165 https://llvm.org/svn/llvm-project/llvm/branches/release_<i>XY</i>
166
167$ svn copy https://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk \
168 https://llvm.org/svn/llvm-project/llvm-gcc-4.2/branches/release_<i>XY</i>
169
170$ svn copy https://llvm.org/svn/llvm-project/test-suite/trunk \
171 https://llvm.org/svn/llvm-project/test-suite/branches/release_<i>XY</i>
172
173$ svn copy https://llvm.org/svn/llvm-project/cfe/trunk \
174 https://llvm.org/svn/llvm-project/cfe/branches/release_<i>XY</i>
Bill Wendling922169c2007-07-23 04:41:42 +0000175</pre>
Bill Wendling803a6392007-07-23 04:44:02 +0000176</div></li>
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000177
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000178 <li><p>Advise developers that they may now check their patches into the
179 Subversion tree again.</p></li>
180
181 <li><p>The Release Manager should switch to the release branch, because all
182 changes to the release will now be done in the branch. The easiest way to
183 do this is to grab a working copy using the following commands:</p>
184
185<div class="doc_code">
186<pre>
187$ svn co https://llvm.org/svn/llvm-project/llvm/branches/release_<i>XY</i> llvm-<i>X.Y</i>
188
189$ svn co https://llvm.org/svn/llvm-project/llvm-gcc-4.2/branches/release_<i>XY</i> llvm-gcc-4.2-<i>X.Y</i>
190
191$ svn co https://llvm.org/svn/llvm-project/test-suite/branches/release_<i>XY</i> test-suite-<i>X.Y</i>
192
193$ svn co https://llvm.org/svn/llvm-project/cfe/branches/release_<i>XY</i> clang-<i>X.Y</i>
194</pre>
195</div></li>
196</ol>
197
Reid Spencerab926de2006-03-23 06:45:42 +0000198</div>
199
200<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000201<h4><a name="verchanges">Update LLVM Version</a></h4>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000202
Tanya Lattnerb3b1dab2006-08-10 00:23:05 +0000203<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000204
205<p>After creating the LLVM release branch, update the release branches'
206 <tt>autoconf</tt> and <tt>configure.ac</tt> versions from '<tt>X.Ysvn</tt>'
207 to '<tt>X.Y</tt>'. Update it on mainline as well to be the next version
208 ('<tt>X.Y+1svn</tt>'). Regenerate the configure scripts for both
209 <tt>llvm</tt> and the <tt>test-suite</tt>.</p>
210
211<p>In addition, the version numbers of all the Bugzilla components must be
212 updated for the next release.</p>
213
Reid Spencerab926de2006-03-23 06:45:42 +0000214</div>
215
216<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000217<h4><a name="dist">Build the LLVM Release Candidates</a></h4>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000218
Reid Spencerab926de2006-03-23 06:45:42 +0000219<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000220
221<p>Create release candidates for <tt>llvm</tt>, <tt>llvm-gcc</tt>,
222 <tt>clang</tt>, and the LLVM <tt>test-suite</tt> by tagging the branch with
223 the respective release candidate number. For instance, to create <b>Release
224 Candidate 1</b> you would issue the following commands:</p>
Reid Spencerab926de2006-03-23 06:45:42 +0000225
Bill Wendling922169c2007-07-23 04:41:42 +0000226<div class="doc_code">
227<pre>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000228$ svn mkdir https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_<i>XY</i>
229$ svn copy https://llvm.org/svn/llvm-project/llvm/branches/release_<i>XY</i> \
Bill Wendling47858852011-03-07 07:37:12 +0000230 https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_<i>XY</i>/rc1
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000231
232$ svn mkdir https://llvm.org/svn/llvm-project/llvm-gcc-4.2/tags/RELEASE_<i>XY</i>
233$ svn copy https://llvm.org/svn/llvm-project/llvm-gcc-4.2/branches/release_<i>XY</i> \
Bill Wendling47858852011-03-07 07:37:12 +0000234 https://llvm.org/svn/llvm-project/llvm-gcc-4.2/tags/RELEASE_<i>XY</i>/rc1
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000235
236$ svn mkdir https://llvm.org/svn/llvm-project/test-suite/tags/RELEASE_<i>XY</i>
237$ svn copy https://llvm.org/svn/llvm-project/test-suite/branches/release_<i>XY</i> \
Bill Wendling47858852011-03-07 07:37:12 +0000238 https://llvm.org/svn/llvm-project/test-suite/tags/RELEASE_<i>XY</i>/rc1
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000239
240$ svn mkdir https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_<i>XY</i>
241$ svn copy https://llvm.org/svn/llvm-project/cfe/branches/release_<i>XY</i> \
Bill Wendling47858852011-03-07 07:37:12 +0000242 https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_<i>XY</i>/rc1
Bill Wendling922169c2007-07-23 04:41:42 +0000243</pre>
244</div>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000245
246<p>Similarly, <b>Release Candidate 2</b> would be named <tt>RC2</tt> and so
247 on. This keeps a permanent copy of the release candidate around for people to
248 export and build as they wish. The final released sources will be tagged in
249 the <tt>RELEASE_<i>XY</i></tt> directory as <tt>Final</tt>
250 (c.f. <a href="#tag">Tag the LLVM Final Release</a>).</p>
251
252<p>The Release Manager may supply pre-packaged source tarballs for users. This
253 can be done with the following commands:</p>
254
255<div class="doc_code">
256<pre>
Bill Wendling47858852011-03-07 07:37:12 +0000257$ svn export https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_<i>XY</i>/rc1 llvm-<i>X.Y</i>rc1
258$ svn export https://llvm.org/svn/llvm-project/llvm-gcc-4.2/tags/RELEASE_<i>XY</i>/rc1 llvm-gcc4.2-<i>X.Y</i>rc1
259$ svn export https://llvm.org/svn/llvm-project/test-suite/tags/RELEASE_<i>XY</i>/rc1 llvm-test-<i>X.Y</i>rc1
260$ svn export https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_<i>XY</i>/rc1 clang-<i>X.Y</i>rc1
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000261
Bill Wendlingce2fccf2011-03-25 06:43:59 +0000262$ tar -cvf - llvm-<i>X.Y</i>rc1 | gzip &gt; llvm-<i>X.Y</i>rc1.src.tar.gz
263$ tar -cvf - llvm-test-<i>X.Y</i>rc1 | gzip &gt; llvm-test-<i>X.Y</i>rc1.src.tar.gz
264$ tar -cvf - llvm-gcc4.2-<i>X.Y</i>rc1 | gzip &gt; llvm-gcc-4.2-<i>X.Y</i>rc1.src.tar.gz
265$ tar -cvf - clang-<i>X.Y</i>rc1 | gzip &gt; clang-<i>X.Y</i>rc1.src.tar.gz
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000266</pre>
267</div>
268
Reid Spencer34ddd282006-08-16 00:54:50 +0000269</div>
Reid Spencerab926de2006-03-23 06:45:42 +0000270
Reid Spencer34ddd282006-08-16 00:54:50 +0000271<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000272<h3><a name="release-build">Building the Release</a></h3>
Tanya Lattner7fb16162009-08-18 22:33:28 +0000273
274<div class="doc_text">
Tanya Lattner82e57a62009-08-23 04:36:30 +0000275
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000276<p>The builds of <tt>llvm</tt>, <tt>llvm-gcc</tt>, and <tt>clang</tt>
277 <em>must</em> be free of errors and warnings in Debug, Release+Asserts, and
278 Release builds. If all builds are clean, then the release passes Build
279 Qualification.</p>
280
281<p>The <tt>make</tt> options for building the different modes:</p>
282
283<table>
284 <tr><th>Mode</th><th>Options</th></tr>
285 <tr align="left"><td>Debug</td><td><tt>ENABLE_OPTIMIZED=0</tt></td></tr>
286 <tr align="left"><td>Release+Asserts</td><td><tt>ENABLE_OPTIMIZED=1</tt></td></tr>
287 <tr align="left"><td>Release</td><td><tt>ENABLE_OPTIMIZED=1 DISABLE_ASSERTIONS=1</tt></td></tr>
288</table>
289
Tanya Lattner7fb16162009-08-18 22:33:28 +0000290</div>
291
292<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000293<h4><a name="build">Build LLVM</a></h4>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000294
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000295<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000296
297<p>Build <tt>Debug</tt>, <tt>Release+Asserts</tt>, and <tt>Release</tt> versions
298 of <tt>llvm</tt> on all supported platforms. Directions to build
299 <tt>llvm</tt> are
NAKAMURA Takumica46f5a2011-04-09 02:13:37 +0000300 <a href="GettingStarted.html#quickstart">here</a>.</p>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000301
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000302</div>
303
304<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000305<h4><a name="llvmgccbin">Build the LLVM GCC Binary Distribution</a></h4>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000306
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000307<div class="doc_text">
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000308
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000309<p>Creating the <tt>llvm-gcc</tt> binary distribution (Release/Optimized)
310 requires performing the following steps for each supported platform:</p>
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000311
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000312<ol>
313 <li><p>Build the <tt>llvm-gcc</tt> front-end by following the directions in
314 the <tt>README.LLVM</tt> file. The front-end must be compiled with C, C++,
315 Objective-C (Mac only), Objective-C++ (Mac only), and Fortran
316 support.</p></li>
317
318 <li><p>Boostrapping must be enabled.</p></li>
319
320 <li><p>Be sure to build with <tt>LLVM_VERSION_INFO=X.Y</tt>, where <tt>X</tt>
321 is the major and <tt>Y</tt> is the minor release numbers.</p></li>
322
323 <li><p>Copy the installation directory to a directory named for the specific
324 target. For example on Red Hat Enterprise Linux, the directory would be
325 named <tt>llvm-gcc4.2-2.6-x86-linux-RHEL4</tt>. Archive and compress the
326 new directory.</p></li>
327</ol>
328
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000329</div>
330
331<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000332<h4><a name="clangbin">Build Clang Binary Distribution</a></h4>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000333
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000334<div class="doc_text">
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000335
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000336<p>Creating the <tt>clang</tt> binary distribution
337 (Debug/Release+Asserts/Release) requires performing the following steps for
338 each supported platform:</p>
Tanya Lattner7fb16162009-08-18 22:33:28 +0000339
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000340<ol>
341 <li>Build clang according to the directions
342 <a href="http://clang.llvm.org/get_started.html">here</a>.</li>
343
344 <li>Build both a debug and release version of clang. The binary will be the
345 release build.</lI>
346
347 <li>Package <tt>clang</tt> (details to follow).</li>
348</ol>
349
Tanya Lattner7fb16162009-08-18 22:33:28 +0000350</div>
351
Tanya Lattner7fb16162009-08-18 22:33:28 +0000352<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000353<h4><a name="target-build">Target Specific Build Details</a></h4>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000354
Tanya Lattner7fb16162009-08-18 22:33:28 +0000355<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000356
357<p>The table below specifies which compilers are used for each Arch/OS
358 combination when qualifying the build of <tt>llvm</tt>, <tt>llvm-gcc</tt>,
359 and <tt>clang</tt>.</p>
360
361<table>
Tanya Lattnerda94af72009-08-19 23:07:37 +0000362 <tr><th>Architecture</th><th>OS</th><th>compiler</th></tr>
363 <tr><td>x86-32</td><td>Mac OS 10.5</td><td>gcc 4.0.1</td></tr>
364 <tr><td>x86-32</td><td>Linux</td><td>gcc 4.2.X, gcc 4.3.X</td></tr>
Tanya Lattner82e57a62009-08-23 04:36:30 +0000365 <tr><td>x86-32</td><td>FreeBSD</td><td>gcc 4.2.X</td></tr>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000366 <tr><td>x86-32</td><td>mingw</td><td>gcc 3.4.5</td></tr>
Tanya Lattnerda94af72009-08-19 23:07:37 +0000367 <tr><td>x86-64</td><td>Mac OS 10.5</td><td>gcc 4.0.1</td></tr>
368 <tr><td>x86-64</td><td>Linux</td><td>gcc 4.2.X, gcc 4.3.X</td></tr>
Tanya Lattner82e57a62009-08-23 04:36:30 +0000369 <tr><td>x86-64</td><td>FreeBSD</td><td>gcc 4.2.X</td></tr>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000370</table>
Tanya Lattnerda94af72009-08-19 23:07:37 +0000371
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000372</div>
373
Tanya Lattner7fb16162009-08-18 22:33:28 +0000374<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000375<h3><a name="release-qualify">Building the Release</a></h3>
Tanya Lattner7fb16162009-08-18 22:33:28 +0000376
377<div class="doc_text">
Tanya Lattner7fb16162009-08-18 22:33:28 +0000378
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000379<p>A release is qualified when it has no regressions from the previous release
380 (or baseline). Regressions are related to correctness first and performance
381 second. (We may tolerate some minor performance regressions if they are
382 deemed necessary for the general quality of the compiler.)</p>
383
384<p><b>Regressions are new failures in the set of tests that are used to qualify
385 each product and only include things on the list. Every release will have
386 some bugs in it. It is the reality of developing a complex piece of
387 software. We need a very concrete and definitive release criteria that
388 ensures we have monotonically improving quality on some metric. The metric we
389 use is described below. This doesn't mean that we don't care about other
390 criteria, but these are the criteria which we found to be most important and
391 which must be satisfied before a release can go out</b></p>
392
393</div>
Tanya Lattner7fb16162009-08-18 22:33:28 +0000394
395<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000396<h4><a name="llvm-qualify">Qualify LLVM</a></h4>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000397
Tanya Lattner7fb16162009-08-18 22:33:28 +0000398<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000399
400<p>LLVM is qualified when it has a clean test run without a front-end. And it
401 has no regressions when using either <tt>llvm-gcc</tt> or <tt>clang</tt> with
402 the <tt>test-suite</tt> from the previous release.</p>
403
Tanya Lattner7fb16162009-08-18 22:33:28 +0000404</div>
405
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000406<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000407<h4><a name="llvmgcc-qualify">Qualify LLVM-GCC</a></h4>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000408
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000409<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000410
411<p><tt>LLVM-GCC</tt> is qualified when front-end specific tests in the
412 <tt>llvm</tt> regression test suite all pass and there are no regressions in
413 the <tt>test-suite</tt>.</p>
414
415<p>We do not use the GCC DejaGNU test suite as release criteria.</p>
416
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000417</div>
418
419<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000420<h4><a name="clang-qualify">Qualify Clang</a></h4>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000421
Reid Spencer34ddd282006-08-16 00:54:50 +0000422<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000423
424<p><tt>Clang</tt> is qualified when front-end specific tests in the
425 <tt>llvm</tt> dejagnu test suite all pass, clang's own test suite passes
426 cleanly, and there are no regressions in the <tt>test-suite</tt>.</p>
427
Reid Spencerab926de2006-03-23 06:45:42 +0000428</div>
429
430<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000431<h4><a name="targets">Specific Target Qualification Details</a></h4>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000432
Tanya Lattner7fb16162009-08-18 22:33:28 +0000433<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000434
435<table>
436 <tr><th>Architecture</th><th>OS</th><th>llvm-gcc baseline</th><th>clang baseline</th><th>tests</th></tr>
Tanya Lattnere30614c2010-04-05 18:35:37 +0000437 <tr><td>x86-32</td><td>Linux</td><td>last release</td><td>last release</td><td>llvm dejagnu, clang tests, test-suite (including spec)</td></tr>
438 <tr><td>x86-32</td><td>FreeBSD</td><td>none</td><td>last release</td><td>llvm dejagnu, clang tests, test-suite</td></tr>
Tanya Lattnerda94af72009-08-19 23:07:37 +0000439 <tr><td>x86-32</td><td>mingw</td><td>last release</td><td>none</td><td>QT</td></tr>
Tanya Lattnere30614c2010-04-05 18:35:37 +0000440 <tr><td>x86-64</td><td>Mac OS 10.X</td><td>last release</td><td>last release</td><td>llvm dejagnu, clang tests, test-suite (including spec)</td></tr>
441 <tr><td>x86-64</td><td>Linux</td><td>last release</td><td>last release</td><td>llvm dejagnu, clang tests, test-suite (including spec)</td></tr>
442 <tr><td>x86-64</td><td>FreeBSD</td><td>none</td><td>last release</td><td>llvm dejagnu, clang tests, test-suite</td></tr>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000443</table>
444
Tanya Lattner7fb16162009-08-18 22:33:28 +0000445</div>
446
447<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000448<h3><a name="commTest">Community Testing</a></h3>
John Criswell4b8dfb92006-04-11 20:24:28 +0000449<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000450
451<p>Once all testing has been completed and appropriate bugs filed, the release
452 candidate tarballs are put on the website and the LLVM community is
453 notified. Ask that all LLVM developers test the release in 2 ways:</p>
454
455<ol>
456 <li>Download <tt>llvm-<i>X.Y</i></tt>, <tt>llvm-test-<i>X.Y</i></tt>, and the
457 appropriate <tt>llvm-gcc</tt> and/or <tt>clang</tt> binary. Build
458 LLVM. Run <tt>make check</tt> and the full LLVM test suite (<tt>make
459 TEST=nightly report</tt>).</li>
460
461 <li>Download <tt>llvm-<i>X.Y</i></tt>, <tt>llvm-test-<i>X.Y</i></tt>, and the
462 <tt>llvm-gcc</tt> and/or <tt>clang</tt> source. Compile everything. Run
463 <tt>make check</tt> and the full LLVM test suite (<tt>make TEST=nightly
464 report</tt>).</li>
465</ol>
466
467<p>Ask LLVM developers to submit the test suite report and <tt>make check</tt>
468 results to the list. Verify that there are no regressions from the previous
469 release. The results are not used to qualify a release, but to spot other
470 potential problems. For unsupported targets, verify that <tt>make check</tt>
471 is at least clean.</p>
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000472
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000473<p>During the first round of testing, all regressions must be fixed before the
474 second release candidate is tagged.</p>
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000475
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000476<p>If this is the second round of testing, the testing is only to ensure that
477 bug fixes previously merged in have not created new major problems. <i>This
478 is not the time to solve additional and unrelated bugs!</i> If no patches are
479 merged in, the release is determined to be ready and the release manager may
480 move onto the next stage.</p>
481
John Criswell4b8dfb92006-04-11 20:24:28 +0000482</div>
483
Tanya Lattner7fb16162009-08-18 22:33:28 +0000484<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000485<h3><a name="release-patch">Release Patch Rules</a></h3>
Tanya Lattner7fb16162009-08-18 22:33:28 +0000486
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000487<div class="doc_text">
488
489<p>Below are the rules regarding patching the release branch:</p>
490
491<ol>
492 <li><p>Patches applied to the release branch may only be applied by the
493 release manager.</p></li>
494
495 <li><p>During the first round of testing, patches that fix regressions or that
496 are small and relatively risk free (verified by the appropriate code
497 owner) are applied to the branch. Code owners are asked to be very
498 conservative in approving patches for the branch. We reserve the right to
499 reject any patch that does not fix a regression as previously
500 defined.</p></li>
501
502 <li><p>During the remaining rounds of testing, only patches that fix critical
503 regressions may be applied.</p></li>
504</ol>
505
506</div>
Tanya Lattnerb3b1dab2006-08-10 00:23:05 +0000507
508<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000509<h3><a name="release-final">Release Final Tasks</a></h3>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000510
Tanya Lattner7fb16162009-08-18 22:33:28 +0000511<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000512
513<p>The final stages of the release process involves tagging the "final" release
514 branch, updating documentation that refers to the release, and updating the
515 demo page.</p>
516
Tanya Lattner7fb16162009-08-18 22:33:28 +0000517</div>
518
519
520<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000521<h4><a name="updocs">Update Documentation</a></h4>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000522
Tanya Lattnerda94af72009-08-19 23:07:37 +0000523<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000524
525<p>Review the documentation and ensure that it is up to date. The "Release
526 Notes" must be updated to reflect new features, bug fixes, new known issues,
527 and changes in the list of supported platforms. The "Getting Started Guide"
528 should be updated to reflect the new release version number tag avaiable from
529 Subversion and changes in basic system requirements. Merge both changes from
530 mainline into the release branch.</p>
531
Tanya Lattnerda94af72009-08-19 23:07:37 +0000532</div>
533
534<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000535<h4><a name="tag">Tag the LLVM Final Release</a></h4>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000536
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000537<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000538
539<p>Tag the final release sources using the following procedure:</p>
540
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000541<div class="doc_code">
542<pre>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000543$ svn copy https://llvm.org/svn/llvm-project/llvm/branches/release_XY \
544 https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_<i>XY</i>/Final
545
546$ svn copy https://llvm.org/svn/llvm-project/llvm-gcc-4.2/branches/release_XY \
547 https://llvm.org/svn/llvm-project/llvm-gcc-4.2/tags/RELEASE_<i>XY</i>/Final
548
549$ svn copy https://llvm.org/svn/llvm-project/test-suite/branches/release_XY \
550 https://llvm.org/svn/llvm-project/test-suite/tags/RELEASE_<i>XY</i>/Final
551
552$ svn copy https://llvm.org/svn/llvm-project/cfe/branches/release_XY \
553 https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_<i>XY</i>/Final
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000554</pre>
555</div>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000556
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000557</div>
558
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000559<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000560<h3><a name="updemo">Update the LLVM Demo Page</a></h3>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000561
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000562<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000563
564<p>The LLVM demo page must be updated to use the new release. This consists of
565 using the new <tt>llvm-gcc</tt> binary and building LLVM.</p>
566
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000567</div>
568
569<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000570<h4><a name="webupdates">Update the LLVM Website</a></h4>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000571
Tanya Lattnerb3b1dab2006-08-10 00:23:05 +0000572<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000573
574<p>The website must be updated before the release announcement is sent out. Here
575 is what to do:</p>
576
577<ol>
578 <li>Check out the <tt>www</tt> module from Subversion.</li>
579
580 <li>Create a new subdirectory <tt>X.Y</tt> in the releases directory.</li>
581
582 <li>Commit the <tt>llvm</tt>, <tt>test-suite</tt>, <tt>llvm-gcc</tt> source,
583 <tt>clang source</tt>, <tt>clang binaries</tt>, and <tt>llvm-gcc</tt>
584 binaries in this new directory.</li>
585
586 <li>Copy and commit the <tt>llvm/docs</tt> and <tt>LICENSE.txt</tt> files
587 into this new directory. The docs should be built with
588 <tt>BUILD_FOR_WEBSITE=1</tt>.</li>
589
590 <li>Commit the <tt>index.html</tt> to the <tt>release/X.Y</tt> directory to
591 redirect (use from previous release.</li>
592
593 <li>Update the <tt>releases/download.html</tt> file with the new release.</li>
594
595 <li>Update the <tt>releases/index.html</tt> with the new release and link to
596 release documentation.</li>
597
598 <li>Finally, update the main page (<tt>index.html</tt> and sidebar) to point
599 to the new release and release announcement. Make sure this all gets
600 committed back into Subversion.</li>
601</ol>
602
Tanya Lattnerb3b1dab2006-08-10 00:23:05 +0000603</div>
604
Tanya Lattner586eb8e2007-09-28 22:50:54 +0000605<!-- ======================================================================= -->
NAKAMURA Takumifc8d9302011-04-18 23:59:50 +0000606<h4><a name="announce">Announce the Release</a></h4>
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000607
Reid Spencerab926de2006-03-23 06:45:42 +0000608<div class="doc_text">
Bill Wendlingb3294fa2011-02-28 01:10:44 +0000609
610<p>Have Chris send out the release announcement when everything is finished.</p>
611
Reid Spencerab926de2006-03-23 06:45:42 +0000612</div>
Reid Spencerab926de2006-03-23 06:45:42 +0000613
614<!-- *********************************************************************** -->
Reid Spencerab926de2006-03-23 06:45:42 +0000615<hr>
616<address>
617 <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
Misha Brukman86242e12008-12-11 17:34:48 +0000618 src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS"></a>
Reid Spencerab926de2006-03-23 06:45:42 +0000619 <a href="http://validator.w3.org/check/referer"><img
Misha Brukman21a63702008-12-11 18:23:24 +0000620 src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a>
NAKAMURA Takumica46f5a2011-04-09 02:13:37 +0000621 <a href="http://llvm.org/">The LLVM Compiler Infrastructure</a>
Misha Brukman21a63702008-12-11 18:23:24 +0000622 <br>
Reid Spencerab926de2006-03-23 06:45:42 +0000623 Last modified: $Date$
624</address>
625</body>
626</html>