diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-05-19 00:25:01 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-05-19 00:25:01 +0000 |
commit | d01e263f39bcefd9d78fe7857a1f7dc3fcf17155 (patch) | |
tree | a30730df8e355db354c2c00cee9a82714580d2d7 /llvm/docs/tutorial/JITTutorial2.html | |
parent | acbcce41cb964f7ba04150f24cf062cb4fe45c7e (diff) | |
download | bcm5719-llvm-d01e263f39bcefd9d78fe7857a1f7dc3fcf17155.tar.gz bcm5719-llvm-d01e263f39bcefd9d78fe7857a1f7dc3fcf17155.zip |
Grammar fix.
llvm-svn: 51236
Diffstat (limited to 'llvm/docs/tutorial/JITTutorial2.html')
-rw-r--r-- | llvm/docs/tutorial/JITTutorial2.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/docs/tutorial/JITTutorial2.html b/llvm/docs/tutorial/JITTutorial2.html index 17ff78c2f0e..262457274d0 100644 --- a/llvm/docs/tutorial/JITTutorial2.html +++ b/llvm/docs/tutorial/JITTutorial2.html @@ -126,7 +126,15 @@ Module* makeLLVMModule() { </pre> </div> -<p><code>cond_false</code> is a more interesting block: we now know that <code>x != y</code>, so we must branch again to determine which of <code>x</code> and <code>y</code> is larger. This is achieved using the <code>ICmpULT</code> instruction, which stands for <em>integer comparison for unsigned less-than</em>. In LLVM, integer types do not carry sign; a 32-bit integer pseudo-register can interpreted as signed or unsigned without casting. Whether a signed or unsigned interpretation is desired is specified in the instruction. This is why several instructions in the LLVM IR, such as integer less-than, include a specifier for signed or unsigned.</p> +<p><code>cond_false</code> is a more interesting block: we now know that <code>x +!= y</code>, so we must branch again to determine which of <code>x</code> +and <code>y</code> is larger. This is achieved using the <code>ICmpULT</code> +instruction, which stands for <em>integer comparison for unsigned +less-than</em>. In LLVM, integer types do not carry sign; a 32-bit integer +pseudo-register can be interpreted as signed or unsigned without casting. +Whether a signed or unsigned interpretation is desired is specified in the +instruction. This is why several instructions in the LLVM IR, such as integer +less-than, include a specifier for signed or unsigned.</p> <p>Also note that we're again making use of LLVM's automatic name uniquing, this time at a register level. We've deliberately chosen to name every instruction "tmp" to illustrate that LLVM will give them all unique names without getting confused.</p> |