From eff29abe2df73f9ffd8c2960a8cb33aa206dba29 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 15 May 2005 19:39:26 +0000 Subject: [PATCH] ctlz = most signficant bits, cttz = least sig git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22061 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 77 ++++++++++++++++++++++++----------------------- 1 file changed, 40 insertions(+), 37 deletions(-) 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
  • @@ -3203,40 +3203,6 @@ The 'llvm.ctpop' intrinsic counts the 1's in a variable.

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

    -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. -

    - -
    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. -

    -
    -
    'llvm.ctlz' Intrinsic @@ -3267,12 +3233,49 @@ 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.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.cttz' Intrinsic +
    + +
    + +
    Syntax:
    +
    +  declare int %llvm.cttz(int <src>)
    +
    +
    + +
    Overview:
    + +

    +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. +

    + +
    Semantics:
    + +

    +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