From: Eric Christopher Date: Tue, 1 Dec 2009 22:28:41 +0000 (+0000) Subject: Update per Bill's comments. Work in progress. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0e97e799d7e9ca7a3e34cba23a5f7dfd787d2ce2;p=oota-llvm.git Update per Bill's comments. Work in progress. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90271 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LangRef.html b/docs/LangRef.html index 5eeea6452e3..691e34171fc 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -7263,22 +7263,22 @@ LLVM.

Overview:

The llvm.objectsize intrinsic returns the constant number of bytes - from ptr to the end of the object ptr points to if it + from ptr to the end of the object ptr points to, if it can deduce this at compile time. If there are any side-effects in evaluating the argument or it cannot deduce which objects ptr points to at compile - time the intrinsic returns (size_t) -1 for type 0 - or 1 and (size_t) 0 for type 2 or 3.

+ time, the intrinsic returns i32/i64 -1 for type 0 + or 1 and i32/i64 0 for type 2 or 3.

Arguments:

The llvm.objectsize intrinsic takes two arguments. The first - argument is a pointer to the object ptr and an integer type. - type is an integer ranging from 0 to 3. The lsb corresponds to - a return value based on whole objects, the second bit whether or not we - return the maximum or minimum remaining bytes computed.

+ argument is a pointer to the object ptr. The second argument + is an integer type which ranges from 0 to 3. The first bit + corresponds to a return value based on whole objects, and the second bit + whether or not we return the maximum or minimum remaining bytes computed.

Semantics:

The llvm.objectsize intrinsic is lowered to either a constant - representing the size of the object concerned or (size_t) -1 if + representing the size of the object concerned or i32/i64 -1 if it cannot be determined at compile time.