<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - Kaleidoscope-Ch4 is not working as expected and is missing documentation"
href="https://bugs.llvm.org/show_bug.cgi?id=52381">52381</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Kaleidoscope-Ch4 is not working as expected and is missing documentation
</td>
</tr>
<tr>
<th>Product</th>
<td>Documentation
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</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>yarl-baudig@mailoo.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>First, according to the tutorial, we should be able to do
ready> def foo(x) x + 1;
ready> foo(2);
Evaluated to 3.000000
ready> def foo(x) x + 2;
ready> foo(2);
Evaluated to 4.000000
but if I try this (I compiled llvm with examples):
sh-5.1$ ./Kaleidoscope-Ch4
ready> def foo(x) x + 1;
ready> Read function definition:define double @foo(double %x) {
entry:
%addtmp = fadd double %x, 1.000000e+00
ret double %addtmp
}
ready> def foo(x) x + 2;
ready> Read function definition:define double @foo(double %x) {
entry:
%addtmp = fadd double %x, 2.000000e+00
ret double %addtmp
}
Duplicate definition of symbol 'foo'
sh-5.1$
Second, this line
<a href="https://github.com/llvm/llvm-project/blob/052a2913f5ced0d266e946f1e697815df1d1fcc0/llvm/examples/Kaleidoscope/Chapter4/toy.cpp#L612">https://github.com/llvm/llvm-project/blob/052a2913f5ced0d266e946f1e697815df1d1fcc0/llvm/examples/Kaleidoscope/Chapter4/toy.cpp#L612</a>
in the full code listing is not present on its corresponding snippet and thus,
not explained.
Thank you!</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>