From: Bill Wendling Date: Mon, 19 May 2008 00:25:01 +0000 (+0000) Subject: Grammar fix. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=40da626d23ead8e3a773929bc914f8dfa8a9fe9d;p=oota-llvm.git Grammar fix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51236 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/tutorial/JITTutorial2.html b/docs/tutorial/JITTutorial2.html index 17ff78c2f0e..262457274d0 100644 --- a/docs/tutorial/JITTutorial2.html +++ b/docs/tutorial/JITTutorial2.html @@ -126,7 +126,15 @@ Module* makeLLVMModule() { -

cond_false is a more interesting block: we now know that x != y, so we must branch again to determine which of x and y is larger. This is achieved using the ICmpULT instruction, which stands for integer comparison for unsigned less-than. 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.

+

cond_false is a more interesting block: we now know that x +!= y, so we must branch again to determine which of x +and y is larger. This is achieved using the ICmpULT +instruction, which stands for integer comparison for unsigned +less-than. 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.

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.