[llvm-commits] [llvm] r51942 - /llvm/trunk/docs/CodeGenerator.html
Matthijs Kooijman
matthijs at stdin.nl
Wed Jun 4 08:46:35 PDT 2008
Author: matthijs
Date: Wed Jun 4 10:46:35 2008
New Revision: 51942
URL: http://llvm.org/viewvc/llvm-project?rev=51942&view=rev
Log:
Fix example to be valid LLVM assembly.
Modified:
llvm/trunk/docs/CodeGenerator.html
Modified: llvm/trunk/docs/CodeGenerator.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CodeGenerator.html?rev=51942&r1=51941&r2=51942&view=diff
==============================================================================
--- llvm/trunk/docs/CodeGenerator.html (original)
+++ llvm/trunk/docs/CodeGenerator.html Wed Jun 4 10:46:35 2008
@@ -621,9 +621,9 @@
<div class="doc_code">
<pre>
-int %test(int %X, int %Y) {
- %Z = div int %X, %Y
- ret int %Z
+define i32 @test(i32 %X, i32 %Y) {
+ %Z = udiv i32 %X, %Y
+ ret i32 %Z
}
</pre>
</div>
More information about the llvm-commits
mailing list