Re: [llvm-commits] CVS: llvm/docs/LangRef.html
Thanks for the cleanups Jeff, but... On Apr 21, 2007, at 6:17 PM, Jeff Cohen wrote: @@ -1400,12 +1396,12 @@ dtbttuitofp ( CST to TYPE )/tt/b/dt ddConvert an unsigned integer constant to the corresponding floating point constant. TYPE must be floating point. CST must be of integer type. If the - value won't fit in the floating point type, the results are undefined./dd + value won't fit in the floating point type, precision may be lost./dd dtbttsitofp ( CST to TYPE )/tt/b/dt ddConvert a signed integer constant to the corresponding floating point constant. TYPE must be floating point. CST must be of integer type. If the - value won't fit in the floating point type, the results are undefined./dd + value won't fit in the floating point type, precision may be lost./dd .. @@ -3073,7 +3069,7 @@ h5Semantics:/h5 pThe 'ttuitofp/tt' instruction interprets its operand as an unsigned integer quantity and converts it to the corresponding floating point value. If -the value cannot fit in the floating point value, the results are undefined./p +the value cannot fit in the floating point value, precision may be lost./p h5Example:/h5 @@ -3106,7 +3102,7 @@ h5Semantics:/h5 pThe 'ttsitofp/tt' instruction interprets its operand as a signed integer quantity and converts it to the corresponding floating point value. If -the value cannot fit in the floating point value, the results are undefined./p +the value cannot fit in the floating point value, precision may be lost./p No really, the results *are* undefined. Please revert these changes. FWIW, these are the same semantics as C. Thanks Jeff, -Chris ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm/docs/LangRef.html
Undo erroneous corrections. Thanks Jeff! -Chris ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm/docs/LangRef.html
On Apr 3, 2007, at 10:46 PM, Reid Spencer wrote: Changes in directory llvm/docs: LangRef.html updated: 1.225 - 1.226 --- Log message: Appease Chris' pedantic streak. Heh, it's just a streak? -Chris ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm/docs/LangRef.html
On Apr 3, 2007, at 7:42 PM, Reid Spencer wrote: Remove intrinsics that we will not be implementing. Fix the anchor names of intrinsics to all be int_ so as to distinguish them from the i_ prefix reserved for instructions. Hey Reid, Please make sure nothing else references these links outside Langref. -Chris ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm/docs/LangRef.html
On Apr 1, 2007, at 5:20 PM, Reid Spencer wrote: p -The 'ttllvm.bwsap/tt' family of intrinsics is used to byteswap integer +The 'ttllvm.bwsap/tt' family of intrinsics is used to byte swap integer values with an even number of bytes (positive multiple of 16 bits). These are Typo remains: llvm.bwsap -Chris ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm/docs/LangRef.html
Document 'inreg' 'sret' Nice. @@ -743,14 +730,15 @@ dtttsext/tt/dt ddThis indicates that the parameter should be sign extended just before a call to this function./dd +dtttinreg/tt/dt +ddThis indicates that the parameter should be placed in register (if +possible) during assembling function call. It's currently supported in x86 +backend only./dd Please say Support for this attribute is target-specific. instead of saying that only the x86 backend implements it. I'd prefer to keep 'current status' out of LangRef.html. +dtttsret/tt/dt +ddThis indicates, that the parameter is special hidden pointer to struct +to return. Grammar, I suggest: This indicates that the parameter specifies the address of a structure that is the return value of the function in the source program. Thanks Anton! -Chris Usually such parameter needs special handling during codegen./dd /dl - pThe current motivation for parameter attributes is to enable the sign and - zero extend information necessary for the C calling convention to be passed - from the front end to LLVM. The ttzext/tt and ttsext/tt attributes - are used by the code generator to perform the required extension. However, - parameter attributes are an orthogonal feature to calling conventions and - may be used for other purposes in the future./p /div !-- == = -- @@ -4519,7 +4507,7 @@ a href=mailto:[EMAIL PROTECTED]Chris Lattner/abr a href=http://llvm.org;The LLVM Compiler Infrastructure/abr - Last modified: $Date: 2007/01/23 12:35:46 $ + Last modified: $Date: 2007/01/28 14:30:45 $ /address /body /html ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm/docs/LangRef.html
Index: llvm/docs/LangRef.html diff -u llvm/docs/LangRef.html:1.174 llvm/docs/LangRef.html:1.175 --- llvm/docs/LangRef.html:1.174 Mon Nov 27 15:53:28 2006 +++ llvm/docs/LangRef.htmlSun Dec 3 10:53:48 2006 @@ -2491,9 +2491,9 @@ provided depend on the type of the first pointer argument. The 'ttgetelementptr/tt' instruction is used to index down through the type levels of a structure or to a specific index in an array. When indexing into a -structure, only ttuint/tt -integer constants are allowed. When indexing into an array or pointer, -ttint/tt and ttlong/tt and ttulong/tt indexes are allowed./p +structure, only ttuint/tt integer constants are allowed. When indexing +into an array or pointer, integers of any size are allowed, and will be sign +extended to 64-bit values./p I thought only 32- and 64-bit integers were allowed? pFor example, let's consider a C code fragment and how it gets compiled to LLVM:/p @@ -2534,9 +2534,10 @@ pThe index types specified for the 'ttgetelementptr/tt' instruction depend on the pointer type that is being indexed into. a href=#t_pointerPointer/a -and a href=#t_arrayarray/a types require ttint/tt, -ttulong/tt, or ttlong/tt values, and a href=#t_structstructure/a -types require ttuint/tt bconstants/b./p +and a href=#t_arrayarray/a types can use any +a href=#t_integerinteger/a type but the value will always be sign extended +to 64-bits. Likewise. Also, please add 'packed' to the list. Thanks, -Chris ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm/docs/LangRef.html
On Mon, 2006-12-04 at 10:29 -0800, Chris Lattner wrote: I thought only 32- and 64-bit integers were allowed? I thought we agreed on any size for sequential type indices. See PR950. I codified the rules after we agreed on them. Reid signature.asc Description: This is a digitally signed message part ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm/docs/LangRef.html
On Dec 4, 2006, at 10:40 AM, Reid Spencer wrote: On Mon, 2006-12-04 at 10:29 -0800, Chris Lattner wrote: I thought only 32- and 64-bit integers were allowed? I thought we agreed on any size for sequential type indices. See PR950. I codified the rules after we agreed on them. The bc format is currently more efficient due to this restriction. Are going to lose that? -Chris ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm/docs/LangRef.html
On Mon, 2006-12-04 at 10:45 -0800, Chris Lattner wrote: On Dec 4, 2006, at 10:40 AM, Reid Spencer wrote: On Mon, 2006-12-04 at 10:29 -0800, Chris Lattner wrote: I thought only 32- and 64-bit integers were allowed? I thought we agreed on any size for sequential type indices. See PR950. I codified the rules after we agreed on them. The bc format is currently more efficient due to this restriction. Are going to lose that? Ah, you're right, and it encodes in only 2 bits for the 4 combinations so I'll fix the documentation. Reid. -Chris signature.asc Description: This is a digitally signed message part ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits