<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - In LLVM IR documentation, wrong regexp is listed for identifies"
href="http://llvm.org/bugs/show_bug.cgi?id=22118">22118</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>In LLVM IR documentation, wrong regexp is listed for identifies
</td>
</tr>
<tr>
<th>Product</th>
<td>Documentation
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>General docs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tomas.brukner@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>In the LLVM IR documentation, in the Identifiers section
(<a href="http://llvm.org/docs/LangRef.html#identifiers">http://llvm.org/docs/LangRef.html#identifiers</a>), this regexp is listed as the
one matching name of identifier:
‘[%@][a-zA-Z$._][a-zA-Z$._0-9]*‘
However, in the parser
(<a href="https://github.com/llvm-mirror/llvm/blob/master/lib/AsmParser/LLLexer.cpp">https://github.com/llvm-mirror/llvm/blob/master/lib/AsmParser/LLLexer.cpp</a>),
following regexp is mentioned:
[-a-zA-Z$._][-a-zA-Z$._0-9]*
The difference is that hyphen is allowed in identifiers.
(For example "%thread-pre-split" is valid identifier - generated by Apple LLVM
version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) for vim.)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>