From: Chris Lattner Date: Sun, 15 May 2005 19:39:26 +0000 (+0000) Subject: ctlz = most signficant bits, cttz = least sig X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eff29abe2df73f9ffd8c2960a8cb33aa206dba29;p=oota-llvm.git ctlz = most signficant bits, cttz = least sig git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22061 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LangRef.html b/docs/LangRef.html index 23911e2540f..24587349fd2 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -149,8 +149,8 @@
  • Bit counting Intrinsics
    1. 'llvm.ctpop' Intrinsic
    2. -
    3. 'llvm.cttz' Intrinsic
    4. 'llvm.ctlz' Intrinsic
    5. +
    6. 'llvm.cttz' Intrinsic
  • Debugger intrinsics
  • @@ -3205,74 +3205,77 @@ The 'llvm.ctpop' intrinsic counts the 1's in a variable.
    - 'llvm.cttz' Intrinsic + 'llvm.ctlz' Intrinsic
    Syntax:
    -  declare int %llvm.cttz(int <src>)
    +  declare int %llvm.ctlz(int <src>)
     
     
    Overview:

    -The 'llvm.cttz' intrinsic counts the number of trailing zeros. +The 'llvm.ctlz' intrinsic counts the number of leading zeros in a +variable.

    Arguments:

    The only argument is the value to be counted. The argument may be of any -integer type. The return type must match the argument type. +integer type. The return type must match the argument type.

    Semantics:

    -The 'llvm.cttz' intrinsic counts the trailing zeros in a variable. If -the src == 0 then the result is the size in bits of the type of src. +The 'llvm.ctlz' intrinsic counts the leading (most significant) zeros +in a variable. If the src == 0 then the result is the size in bits of the type +of src. For example, llvm.cttz(int 2) = 30.

    + +
    - 'llvm.ctlz' Intrinsic + 'llvm.cttz' Intrinsic
    Syntax:
    -  declare int %llvm.ctlz(int <src>)
    +  declare int %llvm.cttz(int <src>)
     
     
    Overview:

    -The 'llvm.ctlz' intrinsic counts the number of leading zeros in a -variable. +The 'llvm.cttz' intrinsic counts the number of trailing zeros.

    Arguments:

    The only argument is the value to be counted. The argument may be of any -integer type. The return type must match the argument type. +integer type. The return type must match the argument type.

    Semantics:

    -The 'llvm.ctlz' intrinsic counts the leading zeros in a variable. If -the src == 0 then the result is the size in bits of the type of src. +The 'llvm.cttz' intrinsic counts the trailing (least significant) zeros +in a variable. If the src == 0 then the result is the size in bits of the type +of src. For example, llvm.cttz(2) = 1.

    -
    Debugger Intrinsics