Chris Lattner
dd7083452f
reapply Sanjiv's patch to genericize memcpy/memset/memmove to take an
...
arbitrary integer width for the count.
llvm-svn: 59823
2008-11-21 16:42:48 +00:00
Bill Wendling
4bce2bff88
Revert r59802. It was breaking the build of llvm-gcc:
...
g++ -m32 -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wmissing-format-attribute -fno-common -mdynamic-no-pic -DHAVE_CONFIG_H -Wno-unused -DTARGET_NAME=\"i386-apple-darwin9.5.0\" -I. -I. -I../../llvm-gcc.src/gcc -I../../llvm-gcc.src/gcc/. -I../../llvm-gcc.src/gcc/../include -I./../intl -I../../llvm-gcc.src/gcc/../libcpp/include -I../../llvm-gcc.src/gcc/../libdecnumber -I../libdecnumber -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.obj/include -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.src/include -DENABLE_LLVM -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.obj/../llvm.src/include -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I. -I. -I../../llvm-gcc.src/gcc -I../../llvm-gcc.src/gcc/. -I../../llvm-gcc.src/gcc/../include -I./../intl -I../../llvm-gcc.src/gcc/../libcpp/include -I../../llvm-gcc.src/gcc/../libdecnumber -I../libdecnumber -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.obj/include -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.src/include ../../llvm-gcc.src/gcc/llvm-types.cpp -o llvm-types.o
../../llvm-gcc.src/gcc/llvm-convert.cpp: In member function 'void TreeToLLVM::EmitMemCpy(llvm::Value*, llvm::Value*, llvm::Value*, unsigned int)':
../../llvm-gcc.src/gcc/llvm-convert.cpp:1496: error: 'memcpy_i32' is not a member of 'llvm::Intrinsic'
../../llvm-gcc.src/gcc/llvm-convert.cpp:1496: error: 'memcpy_i64' is not a member of 'llvm::Intrinsic'
../../llvm-gcc.src/gcc/llvm-convert.cpp: In member function 'void TreeToLLVM::EmitMemMove(llvm::Value*, llvm::Value*, llvm::Value*, unsigned int)':
../../llvm-gcc.src/gcc/llvm-convert.cpp:1512: error: 'memmove_i32' is not a member of 'llvm::Intrinsic'
../../llvm-gcc.src/gcc/llvm-convert.cpp:1512: error: 'memmove_i64' is not a member of 'llvm::Intrinsic'
../../llvm-gcc.src/gcc/llvm-convert.cpp: In member function 'void TreeToLLVM::EmitMemSet(llvm::Value*, llvm::Value*, llvm::Value*, unsigned int)':
../../llvm-gcc.src/gcc/llvm-convert.cpp:1528: error: 'memset_i32' is not a member of 'llvm::Intrinsic'
../../llvm-gcc.src/gcc/llvm-convert.cpp:1528: error: 'memset_i64' is not a member of 'llvm::Intrinsic'
make[3]: *** [llvm-convert.o] Error 1
make[3]: *** Waiting for unfinished jobs....
rm fsf-funding.pod gcov.pod gfdl.pod cpp.pod gpl.pod gcc.pod
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2
llvm-svn: 59809
2008-11-21 09:09:41 +00:00
Sanjiv Gupta
09a203765a
Make mem[cpy,move,set] intrinsics overloaded.
...
llvm-svn: 59802
2008-11-21 07:49:09 +00:00
Bill Wendling
1431331b47
- Move the stackprotector intrinsic to the general section.
...
- Rewrite the sentence to make it look as if English is my first language.
llvm-svn: 59592
2008-11-19 05:56:17 +00:00
Bill Wendling
f85850f89e
Documentation for the llvm.stackprotector intrinsic.
...
llvm-svn: 59557
2008-11-18 22:10:53 +00:00
Bill Wendling
a813017b41
Update docs for ssp and sspreq function attributes.
...
llvm-svn: 59203
2008-11-13 01:02:51 +00:00
Mon P Wang
25f0106fd9
Added support for the following definition of shufflevector
...
<result> = shufflevector <n x <ty>> <v1>, <n x <ty>> <v2>, <m x i32> <mask>
llvm-svn: 58964
2008-11-10 04:46:22 +00:00
Daniel Dunbar
0f8155ae4e
Prevent assert when using '"' in names (via hexadecimal).
...
Update LangRef to mention \xx quoting in names.
llvm-svn: 57538
2008-10-14 23:51:43 +00:00
Dan Gohman
ef9462f67c
Fix missing end tags and invalid HTML entity syntax.
...
llvm-svn: 57500
2008-10-14 16:51:45 +00:00
Dan Gohman
93bf60d4cb
Add a missing close-tag.
...
llvm-svn: 57497
2008-10-14 16:32:04 +00:00
Chris Lattner
0ae020952b
fix some crazily long lines.
...
llvm-svn: 57444
2008-10-13 16:55:18 +00:00
Matthijs Kooijman
0e2682781c
Improve the description on the getelementptr instruction. It should now better
...
define what the instruction does. This also makes it clear that getelementptr
can index into a vector type.
llvm-svn: 57440
2008-10-13 13:44:15 +00:00
Chris Lattner
6cbe8e99b3
fix typo
...
llvm-svn: 57287
2008-10-08 06:26:11 +00:00
Devang Patel
022562369f
Improve function definition, call and invoke instruction docs.
...
llvm-svn: 57253
2008-10-07 17:48:33 +00:00
Matthijs Kooijman
eefa7dfcd3
Add two forgotten </i>'s.
...
llvm-svn: 57239
2008-10-07 10:03:45 +00:00
Devang Patel
7e9b05ede5
Update function attributes docs.
...
llvm-svn: 57197
2008-10-06 18:50:38 +00:00
Duncan Sands
2a1d8bace1
Clarify the relationship between byval and readonly/
...
readnone. Make clearer that readnone functions do not
dereference pointer arguments. Do not use the highly
ambiguous "side-effects" in the readonly description
(since such functions can have control flow side-effects,
such as throwing an exception, or looping for ever).
llvm-svn: 57166
2008-10-06 08:14:18 +00:00
Chris Lattner
0625c28135
A word got optimized out, thanks to Duncan for pointing this out
...
llvm-svn: 57116
2008-10-05 17:14:59 +00:00
Dan Gohman
cc3132e5ed
Update the documentation for first-class aggregates changes,
...
and remove getresult and references thereto.
llvm-svn: 57064
2008-10-04 19:00:07 +00:00
Chris Lattner
d552826d6e
add a note about inline asm
...
llvm-svn: 57062
2008-10-04 18:36:02 +00:00
Chris Lattner
d2597d71d4
improve description of param/ret attrs
...
llvm-svn: 57061
2008-10-04 18:33:34 +00:00
Chris Lattner
fbf60a4f72
improve descriptions of function attrs
...
llvm-svn: 57060
2008-10-04 18:23:17 +00:00
Chris Lattner
cbc4d2a164
notes are gone.
...
llvm-svn: 57059
2008-10-04 18:10:21 +00:00
Devang Patel
e97439091f
Fix grammar.
...
llvm-svn: 56796
2008-09-29 18:34:44 +00:00
Devang Patel
6891a55e73
Fix sentence.
...
llvm-svn: 56794
2008-09-29 18:16:09 +00:00
Devang Patel
9eb525d4f9
Implement function notes as function attributes.
...
llvm-svn: 56716
2008-09-26 23:51:19 +00:00
Dale Johannesen
c50ada2f56
Accept 'inreg' attribute on x86 functions as
...
meaning sse_regparm (i.e. float/double values go
in XMM0 instead of ST0). Update documentation
to reflect reality.
llvm-svn: 56619
2008-09-25 20:47:45 +00:00
Duncan Sands
7e99a94c18
The "alias" keyword comes first.
...
llvm-svn: 56170
2008-09-12 20:48:21 +00:00
Dan Gohman
c579d978a3
Extend the vcmp/fcmp LLVM IR instructions to take vectors as arguments
...
and, if so, to return a vector of boolean as a result;
Extend the select LLVM IR instruction to allow you to specify a result
type which is a vector of boolean, in which case the result will be an
element-wise selection instead of choosing one vector or the other; and
Update LangRef.html to describe these changes.
This patch was contributed by Preston Gurd!
llvm-svn: 55969
2008-09-09 01:02:47 +00:00
Dan Gohman
c05dca95a2
Bitcasting two or from aggregate types is not permitted. Update
...
LangRef.html, and teach the verifier to check bitcast instructions.
llvm-svn: 55921
2008-09-08 16:45:59 +00:00
Bill Wendling
5703c6e8dd
Clean up CSS validator errors: 'Property align doesn't exist : center'
...
llvm-svn: 55885
2008-09-07 10:29:20 +00:00
Bill Wendling
b175fa49ed
Formatting changes. to make the information cleaner.
...
llvm-svn: 55884
2008-09-07 10:26:33 +00:00
Devang Patel
8af98cdf73
update.
...
llvm-svn: 55809
2008-09-04 23:10:26 +00:00
Devang Patel
caacdbab3d
Document function notes.
...
llvm-svn: 55808
2008-09-04 23:05:13 +00:00
Gabor Greif
0f75ad0a52
use the more precise 'op1' instead of 'var1' since the latter can be misunderstood to not encompass constants
...
llvm-svn: 54490
2008-08-07 21:46:00 +00:00
Bill Wendling
6e03f9a40b
It's "a static", not "an static"
...
llvm-svn: 54379
2008-08-05 22:29:16 +00:00
Chris Lattner
67c37d1127
Expand acronyms, suggested by Walter Pawley
...
llvm-svn: 54362
2008-08-05 18:29:16 +00:00
Chris Lattner
1ca5c64440
Capitalize LLVM, suggested by Walt Pawley
...
llvm-svn: 54360
2008-08-05 18:21:08 +00:00
Mon P Wang
2c839d4b1e
Added support for overloading intrinsics (atomics) based on pointers
...
to different address spaces. This alters the naming scheme for those
intrinsics, e.g., atomic.load.add.i32 => atomic.load.add.i32.p0i32
llvm-svn: 54195
2008-07-30 04:36:53 +00:00
Nate Begeman
fecbc8cff1
Add vector shifts to the IR, patch by Eli Friedman.
...
CodeGen & Clang work coming next.
llvm-svn: 54161
2008-07-29 15:49:41 +00:00
Duncan Sands
825bde45cc
Note that 'nest' only applies to pointers.
...
llvm-svn: 53226
2008-07-08 09:27:25 +00:00
Mon P Wang
6a490371c9
Added MemOperands to Atomic operations since Atomics touches memory.
...
Added abstract class MemSDNode for any Node that have an associated MemOperand
Changed atomic.lcs => atomic.cmp.swap, atomic.las => atomic.load.add, and
atomic.lss => atomic.load.sub
llvm-svn: 52706
2008-06-25 08:15:39 +00:00
Dan Gohman
88ce1a5b6b
Fix the syntax of insertvalue in the example.
...
llvm-svn: 52623
2008-06-23 15:26:37 +00:00
Chris Lattner
e4645615d3
integer types are not primitive, they are derived.
...
llvm-svn: 52551
2008-06-20 20:50:48 +00:00
Dan Gohman
08783a88a2
Fix a missing comma spotted by Bram Geron.
...
llvm-svn: 52467
2008-06-18 18:42:13 +00:00
Dan Gohman
1ecaf45cf1
IR, bitcode reader, bitcode writer, and asmparser changes to
...
insertvalue and extractvalue to use constant indices instead of
Value* indices. And begin updating LangRef.html.
There's definately more to come here, but I'm checking this
basic support in now to make it available to people who are
interested.
llvm-svn: 51806
2008-05-31 00:58:22 +00:00
Dale Johannesen
4188aadbb2
Document common linkage.
...
llvm-svn: 51517
2008-05-23 23:13:41 +00:00
Dan Gohman
da52d216e6
label is a first-class type.
...
llvm-svn: 51512
2008-05-23 22:50:26 +00:00
Dan Gohman
34d1c0d0f8
Update the description of first-class types to reflect that
...
structs and arrays are now first-class. And fix a sentance
fragment in the insertvalue description. Thanks to Chris
for pointing these out!
llvm-svn: 51506
2008-05-23 21:53:15 +00:00
Chris Lattner
b54c30fab3
Clarify that and/or/xor/sdiv etc all allow vectors.
...
llvm-svn: 51335
2008-05-20 20:48:21 +00:00
Arnold Schwaighofer
2c6b88816d
Add documentation for tail call optimization to CodeGenerator.html. Add a link
...
referring to it to LangRef.html.
llvm-svn: 51097
2008-05-14 09:17:12 +00:00
Dan Gohman
35a835cb60
s/indicies/indices/ and clarify the extractvalue and insertvalue are
...
working with struct field or array element values. Thanks Duncan!
llvm-svn: 51059
2008-05-13 18:16:06 +00:00
Dan Gohman
b9d6660998
Initial documentation for first-class aggregates changes.
...
llvm-svn: 51013
2008-05-12 23:51:09 +00:00
Dan Gohman
43ba067132
Fix a malformed %gt;
...
llvm-svn: 51011
2008-05-12 23:38:42 +00:00
Nate Begeman
d21957002a
Add two new instructions to the llvm IR, vicmp and vfcmp. see updated LangRef
...
for details. CodeGen support coming in a follow up patch
llvm-svn: 50985
2008-05-12 19:01:56 +00:00
Chris Lattner
851b77113f
Doc updates/edits, contributed by Terence Parr!
...
llvm-svn: 50205
2008-04-24 05:59:56 +00:00
Chris Lattner
da508ac5d8
fix description of 'ret' to be more correct with multiple return
...
values. Clarify that it is impossible to 'multiply return' a
struct with zero elements.
llvm-svn: 50131
2008-04-23 04:59:35 +00:00
Chris Lattner
1a640a6491
Allow undef as an operand to getresult.
...
llvm-svn: 50130
2008-04-23 04:06:52 +00:00
Chris Lattner
0f103e1304
free(null) -> noop
...
llvm-svn: 49972
2008-04-19 22:41:32 +00:00
Chris Lattner
fe8519c818
Some clarifications suggested by Jon Sargeant
...
llvm-svn: 49963
2008-04-19 21:01:16 +00:00
Chris Lattner
1f17cce2eb
more edits from Jon Sargeant
...
llvm-svn: 49065
2008-04-02 00:38:26 +00:00
Chris Lattner
81f929763c
add a dropped hunk from Jon Sargeant's patch.
...
llvm-svn: 49045
2008-04-01 18:47:32 +00:00
Chris Lattner
1429e6fb29
make langref more precise, wave 1, from Jon Sargeant
...
llvm-svn: 49044
2008-04-01 18:45:27 +00:00
Devang Patel
9c1f8b1d55
void type is also a valid function return type.
...
llvm-svn: 48740
2008-03-24 20:52:42 +00:00
Devang Patel
8dec6c27b8
Fix typo. Clarify underlying message.
...
llvm-svn: 48734
2008-03-24 18:10:52 +00:00
Devang Patel
e3dfc1cbf1
Update Function type documentation to clarify how multiple return values are supported.
...
llvm-svn: 48721
2008-03-24 05:35:41 +00:00
Anton Korobeynikov
25b2e8203a
Aliasing chains cleanups: update langref, add check into verifier
...
llvm-svn: 48685
2008-03-22 08:36:14 +00:00
Chris Lattner
fb7c88de77
clean up and fix the call section.
...
llvm-svn: 48651
2008-03-21 17:24:17 +00:00
Chris Lattner
141b613b32
cleanups for the getresult section.
...
llvm-svn: 48650
2008-03-21 17:20:51 +00:00
Duncan Sands
c572c1e487
Clarify the unwind attribute. Add assumption
...
about sret made by the optimizers.
llvm-svn: 48452
2008-03-17 12:17:41 +00:00
Nick Lewycky
084ab471fe
Commit works on regular functions too. Fix the syntax to allow @foo.
...
llvm-svn: 48414
2008-03-16 07:18:12 +00:00
Devang Patel
d0f476471d
fix grammer
...
llvm-svn: 48211
2008-03-11 05:51:59 +00:00
Devang Patel
d6cff517d6
Document multiple return values.
...
llvm-svn: 48173
2008-03-10 20:49:15 +00:00
Andrew Lenharth
95528943e9
Atomic op support. If any gcc test uses __sync builtins, it might start failing on archs that haven't implemented them yet
...
llvm-svn: 47430
2008-02-21 06:45:13 +00:00
Duncan Sands
fa4b673eac
Clarify that 'sret' only applies to pointers, and
...
only applies to the first parameter.
llvm-svn: 47256
2008-02-18 04:19:38 +00:00
Owen Anderson
6110128ed5
Make the definition of the noalias attribute clearer.
...
llvm-svn: 47255
2008-02-18 04:09:01 +00:00
Andrew Lenharth
9b254eed32
llvm.memory.barrier, and impl for x86 and alpha
...
llvm-svn: 47204
2008-02-16 01:24:58 +00:00
Gabor Greif
dd1fc981b5
explain that NumElements in alloca and malloc defaults to one
...
llvm-svn: 46912
2008-02-09 22:24:34 +00:00
Chris Lattner
00d7cb9942
llvm.sqrt(-0.0) is defined.
...
llvm-svn: 46500
2008-01-29 07:00:44 +00:00
Chris Lattner
2f2427e5aa
make handling of overflow and undefined results much more clear.
...
Patch by Eli Friedman, thanks!
llvm-svn: 46428
2008-01-28 00:36:27 +00:00
Anton Korobeynikov
06cbb65cb0
Add description of 'llvm.trap' intrinsic. Also, minor fixes in formatting.
...
llvm-svn: 46024
2008-01-15 22:31:34 +00:00
Chris Lattner
352ab9b4a2
clarify that byval is valid for any pointer argument.
...
llvm-svn: 45998
2008-01-15 04:34:22 +00:00
Chris Lattner
5cee13f1df
document the byval parameter attribute.
...
llvm-svn: 45855
2008-01-11 06:20:47 +00:00
Chris Lattner
2a1993fb2c
improve description of alignment, patch by Alain Frisch.
...
llvm-svn: 45662
2008-01-06 21:04:43 +00:00
Chris Lattner
ec56402557
Fix typo noticed by 'Danny' in PR1901
...
llvm-svn: 45661
2008-01-06 19:51:52 +00:00
Chris Lattner
43542b3a93
fix nesting issues.
...
llvm-svn: 45566
2008-01-04 04:34:14 +00:00
Chris Lattner
b8f816e90d
fix validation issues.
...
llvm-svn: 45565
2008-01-04 04:33:49 +00:00
Chris Lattner
7824d182da
improve the description of types, patch by Alain Frisch
...
llvm-svn: 45564
2008-01-04 04:32:38 +00:00
Chris Lattner
bea11173f5
update to llvm 2.0 syntax.
...
llvm-svn: 45355
2007-12-25 20:34:52 +00:00
Gordon Henriksen
fb56bde933
Noting and enforcing that GC intrinsics are valid only within a
...
function with GC.
This will catch the error when the inliner inlines a function with
GC into a caller with no GC.
llvm-svn: 45350
2007-12-25 02:31:26 +00:00
Chris Lattner
747359f973
fix more table abuses.
...
llvm-svn: 45187
2007-12-19 05:04:11 +00:00
Chris Lattner
9a2e3cb48d
avoid confusing terminology (what is a "word"?), fix scary markup, add section to TOC.
...
llvm-svn: 45150
2007-12-18 06:18:21 +00:00
Christopher Lamb
55c6d4f22f
Make it clear in the LangRef that allocation instructions only operated on the generic address space. Implement support in the verifier for ensuring this is true.
...
llvm-svn: 45080
2007-12-17 01:00:21 +00:00
Christopher Lamb
25f5076612
Implement part of review feedback for address spaces.
...
llvm-svn: 44933
2007-12-12 08:44:39 +00:00
Christopher Lamb
308121c757
Add information on address space qualifiers for pointer types and global
...
declarations to the LangRef.
llvm-svn: 44860
2007-12-11 09:31:00 +00:00
Gordon Henriksen
dc5cafb74e
Fix a typo spotted by Nick Lewycky.
...
llvm-svn: 44774
2007-12-10 03:30:21 +00:00
Gordon Henriksen
71183b6739
Adding a collector name attribute to Function in the IR. These
...
methods are new to Function:
bool hasCollector() const;
const std::string &getCollector() const;
void setCollector(const std::string &);
void clearCollector();
The assembly representation is as such:
define void @f() gc "shadow-stack" { ...
The implementation uses an on-the-side table to map Functions to
collector names, such that there is no overhead. A StringPool is
further used to unique collector names, which are extremely
likely to be unique per process.
llvm-svn: 44769
2007-12-10 03:18:06 +00:00
Duncan Sands
ad0ea2d430
Fix PR1146: parameter attributes are longer part of
...
the function type, instead they belong to functions
and function calls. This is an updated and slightly
corrected version of Reid Spencer's original patch.
The only known problem is that auto-upgrading of
bitcode files doesn't seem to work properly (see
test/Bitcode/AutoUpgradeIntrinsics.ll). Hopefully
a bitcode guru (who might that be? :) ) will fix it.
llvm-svn: 44359
2007-11-27 13:23:08 +00:00
Duncan Sands
a89a113a20
Rename the 'const' parameter attribute to 'readnone',
...
and the 'pure' parameter attribute to 'readonly'.
Names suggested by DannyB.
llvm-svn: 44273
2007-11-22 20:23:04 +00:00
Nate Begeman
d4d45c268c
Add support for vectors to int <-> float casts.
...
llvm-svn: 44204
2007-11-17 03:58:34 +00:00
Duncan Sands
730a32643f
Tweak the descriptions of the new 'const' and 'pure' attributes.
...
llvm-svn: 44132
2007-11-14 21:14:02 +00:00
Anton Korobeynikov
46f4446bba
Document pure/const parameter attributes
...
llvm-svn: 44111
2007-11-14 10:30:13 +00:00
Dan Gohman
08143e397d
Add support for vector remainder operations.
...
llvm-svn: 43744
2007-11-05 23:35:22 +00:00
Bill Wendling
8830ffed4c
Put correct link in example
...
llvm-svn: 43216
2007-10-22 05:10:05 +00:00
Dan Gohman
d0806a0508
Don't mention -enable-unsafe-fp-math in LangRef.html, as that option is
...
assumed to globally mutate the spec.
llvm-svn: 43078
2007-10-17 18:05:13 +00:00
Dan Gohman
b6324c1243
Document the new llvm.sin, llvm.cos, and llvm.pow intrinsics. Feedback
...
is welcome!
llvm-svn: 43007
2007-10-15 20:30:11 +00:00
Gordon Henriksen
a699c4dc65
Fixing a typo. Found by Kevin André!
...
llvm-svn: 42956
2007-10-14 00:34:53 +00:00
Chris Lattner
f0e5011d21
Clarify that shifts that are too large are undefined.
...
llvm-svn: 42588
2007-10-03 21:01:14 +00:00
Chris Lattner
87a3dbe743
remove extraneous tag
...
llvm-svn: 42581
2007-10-03 17:34:29 +00:00
Chris Lattner
6a6fb7f7b7
remove misleading documentation: LLVM has no atomic support yet.
...
llvm-svn: 42580
2007-10-03 17:33:51 +00:00
Dale Johannesen
dd89d2758e
Document new sqrt and powi handling.
...
llvm-svn: 42540
2007-10-02 17:47:38 +00:00
Bill Wendling
252570f0ad
Validation fixes
...
llvm-svn: 42225
2007-09-22 09:23:55 +00:00
Chris Lattner
5b95a171e2
fix bugs in the manual
...
llvm-svn: 42221
2007-09-22 03:17:52 +00:00
Tanya Lattner
cf3e26fff2
Correct names.
...
llvm-svn: 42219
2007-09-22 00:03:01 +00:00
Tanya Lattner
08abc81a44
Fix typo.
...
llvm-svn: 42217
2007-09-22 00:01:26 +00:00
Tanya Lattner
0186a65ac7
One last fix to get name correct.
...
llvm-svn: 42216
2007-09-21 23:57:59 +00:00
Tanya Lattner
afcdaf58d4
Fix silly typo.
...
llvm-svn: 42215
2007-09-21 23:57:04 +00:00
Tanya Lattner
23dbd57214
Update annotation intrinsic with more details.
...
llvm-svn: 42214
2007-09-21 23:56:27 +00:00
Tanya Lattner
293c037336
Adding support for __builtin_annotation with an intrinsic called llvm.annotation. This is similar to llvm.var.annotation but is applied to expressions.
...
llvm-svn: 42211
2007-09-21 22:59:12 +00:00
Chris Lattner
12477735f9
gcroot must take concrete types, not arbitrary types.
...
clean up intrinsic descriptions in langref a bit.
llvm-svn: 42194
2007-09-21 17:30:40 +00:00
Duncan Sands
86e0119822
Fold the adjust_trampoline intrinsic into
...
init_trampoline. There is now only one
trampoline intrinsic.
llvm-svn: 41841
2007-09-11 14:10:23 +00:00
Nick Lewycky
a9b13d5cc1
Fix description of the call instruction. There are two types, with one being
...
optional.
llvm-svn: 41785
2007-09-08 13:57:50 +00:00
Duncan Sands
f2bcd37083
Implement review feedback on trampoline documentation.
...
llvm-svn: 41304
2007-08-22 23:39:54 +00:00
Reid Spencer
b23b65f1ba
Describe the global/local naming convention.
...
llvm-svn: 40890
2007-08-07 14:34:28 +00:00
Chandler Carruth
7132e00de7
This is the patch to provide clean intrinsic function overloading support in LLVM. It cleans up the intrinsic definitions and generally smooths the process for more complicated intrinsic writing. It will be used by the upcoming atomic intrinsics as well as vector and float intrinsics in the future.
...
This also changes the syntax for llvm.bswap, llvm.part.set, llvm.part.select, and llvm.ct* intrinsics. They are automatically upgraded by both the LLVM ASM reader and the bitcode reader. The test cases have been updated, with special tests added to ensure the automatic upgrading is supported.
llvm-svn: 40807
2007-08-04 01:51:18 +00:00
Reid Spencer
753163d95f
fp2uint -> fptoui
...
llvm-svn: 40633
2007-07-31 14:40:14 +00:00
Duncan Sands
27e9159c00
Forget to add 'nest' to the list of parameter
...
attributes.
llvm-svn: 40565
2007-07-27 19:57:41 +00:00
Duncan Sands
644f917358
Support for trampolines, except for X86 codegen which is
...
still under discussion.
llvm-svn: 40549
2007-07-27 12:58:54 +00:00
Chandler Carruth
fd418435be
No longer referencing "shared memory" as this can confuse people. The memory is
...
clearly shared between processors if these instructions are being used, no
further specification of what type of memory is necessary.
llvm-svn: 40118
2007-07-20 20:14:52 +00:00
Reid Spencer
65a72e3775
Silly HTML
...
llvm-svn: 40117
2007-07-20 20:03:33 +00:00
Reid Spencer
5b2cb0f88c
Fix validation errors.
...
llvm-svn: 40116
2007-07-20 19:59:11 +00:00
Chandler Carruth
6a5f6bf685
This introduces the atomic operation intrinsics into the documentation. This is
...
a preview for the intrinsics that are going to be implemented over the next few
weeks.
llvm-svn: 40115
2007-07-20 19:34:37 +00:00
Reid Spencer
314e1cb7ee
For PR1553:
...
Change the keywords for the zext and sext parameter attributes to be
zeroext and signext so they don't conflict with the keywords for the
instructions of the same name. This gets around the ambiguity.
llvm-svn: 40069
2007-07-19 23:13:04 +00:00
Dan Gohman
33988db5d5
Fix the documentation for llvm.sqrt so that sqrt(0) has defined behavior,
...
which appears to be the intent.
llvm-svn: 39922
2007-07-16 14:37:41 +00:00
Chris Lattner
0946f04236
remove obsolete note
...
llvm-svn: 39825
2007-07-13 20:08:19 +00:00
Chris Lattner
0a2d099792
fix some bugs in the manual
...
llvm-svn: 39822
2007-07-13 20:01:46 +00:00
Gabor Greif
a54634adef
first pass of nomenclature changes in .html files
...
llvm-svn: 37956
2007-07-06 22:07:22 +00:00
Tanya Lattner
bed1d4d877
Update docs for llvm.var.annotation intrinsic.
...
llvm-svn: 37635
2007-06-18 23:42:37 +00:00
Tanya Lattner
cb1b96047d
Add local var annotation intrinsic.
...
llvm-svn: 37603
2007-06-15 20:50:54 +00:00
Chris Lattner
2150cde0e4
one final bugfix
...
llvm-svn: 37558
2007-06-12 17:01:15 +00:00
Chris Lattner
2b0bf4fc3b
modernize example
...
llvm-svn: 37557
2007-06-12 17:00:26 +00:00
Chris Lattner
a59fb10de8
wording fix noticed by Ivan Novick
...
llvm-svn: 37519
2007-06-08 16:52:14 +00:00
Chris Lattner
00538a1931
update to match latest changes
...
llvm-svn: 37474
2007-06-06 18:28:13 +00:00
Zhou Sheng
2444a9adeb
Commit first round work of PR1373. "noalias" is now fully supported in
...
VMCore, BitCode, and Assembly. Documentation and test case paramattrs.ll
updated also.
llvm-svn: 37432
2007-06-05 05:28:26 +00:00
Chris Lattner
a446f1b46b
more fixes to C code.
...
llvm-svn: 37339
2007-05-29 15:43:56 +00:00
Bill Wendling
2d8b9a8834
Fixed some formatting.
...
llvm-svn: 37338
2007-05-29 09:42:13 +00:00
Bill Wendling
3716c5df29
Fix for PR1452. Removed "define" keyword from the C code. Added "<div
...
class="doc_code">" to code examples.
llvm-svn: 37335
2007-05-29 09:04:49 +00:00
Chris Lattner
c87f3dff51
remove contradiction owen noticed
...
llvm-svn: 37327
2007-05-24 19:13:27 +00:00
Reid Spencer
138249b8ca
Update for arbitrary precision integer types.
...
llvm-svn: 37109
2007-05-16 18:44:01 +00:00
Reid Spencer
146281ce1a
The wrapping behavior of part_set is not desirable. Adjust the
...
documentation to describe the desired behavior.
llvm-svn: 37036
2007-05-14 16:50:20 +00:00
Reid Spencer
70845c05e4
Revise definition of part_select. The wrapping behavior is not useful so
...
in the reverse case the only difference is that the bits are returned in
reverse order.
llvm-svn: 37035
2007-05-14 16:14:57 +00:00
Anton Korobeynikov
39f3cffbe3
Implement protected visibility. This partly implements PR1363. Linker
...
should be taught to deal with protected symbols.
llvm-svn: 36565
2007-04-29 18:35:00 +00:00
Anton Korobeynikov
546ea7ea88
Implement review feedback
...
llvm-svn: 36564
2007-04-29 18:02:48 +00:00
Jeff Cohen
222a8a4311
Minor corrections.
...
llvm-svn: 36548
2007-04-29 01:07:00 +00:00
Anton Korobeynikov
b18f8f85e9
Implement review feedback. Aliasees can be either GlobalValue's or
...
bitcasts of them.
llvm-svn: 36537
2007-04-28 13:45:00 +00:00
Anton Korobeynikov
a97b694c82
Implement aliases. This fixes PR1017 and it's dependent bugs. CFE part
...
will follow.
llvm-svn: 36435
2007-04-25 14:27:10 +00:00
Jeff Cohen
beccb74eec
Undo erroneous corrections.
...
llvm-svn: 36340
2007-04-22 14:56:37 +00:00
Jeff Cohen
5819f185a7
Minor corrections.
...
llvm-svn: 36325
2007-04-22 01:17:39 +00:00
Christopher Lamb
bff50208c8
add support for alignment attributes on load/store instructions
...
llvm-svn: 36301
2007-04-21 08:16:25 +00:00
Lauro Ramos Venancio
c451ec635f
update documentation
...
llvm-svn: 35953
2007-04-12 20:34:36 +00:00
Reid Spencer
c70afc3818
Fix extra argument in part_set examples. Thanks Zhiru.
...
llvm-svn: 35936
2007-04-12 01:03:03 +00:00
Reid Spencer
7972c4758c
Fix validation errors.
...
llvm-svn: 35933
2007-04-11 23:49:50 +00:00
Reid Spencer
14194dc054
Missing end tag. Thanks, Nick.
...
llvm-svn: 35932
2007-04-11 23:46:06 +00:00
Reid Spencer
3b5856151b
Put period inside the paragraph!
...
llvm-svn: 35930
2007-04-11 23:26:07 +00:00
Reid Spencer
5bf54c868b
Document the part_set intrinsic.
...
llvm-svn: 35929
2007-04-11 23:23:49 +00:00
Reid Spencer
ea2945e8e2
Fix name of an intrinsic: bit.part_select -> part.select
...
llvm-svn: 35853
2007-04-10 02:51:31 +00:00
Reid Spencer
edf61160b1
Remove the part_set intrinsic. It won't get implemented as an intrinsic.
...
llvm-svn: 35667
2007-04-04 19:15:59 +00:00
Reid Spencer
91fd109d6b
Appease Chris' pedantic streak.
...
llvm-svn: 35647
2007-04-04 05:46:04 +00:00
Reid Spencer
96a5f02392
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.
llvm-svn: 35645
2007-04-04 02:42:35 +00:00
Reid Spencer
f361c4f4f8
bwsap -> bswap
...
llvm-svn: 35580
2007-04-02 02:25:19 +00:00
Reid Spencer
403a1c4517
Fix some bswap typos that Chris noticed.
...
llvm-svn: 35564
2007-04-02 00:19:52 +00:00
Reid Spencer
8bc7d957cf
Preview documentation for additional intrinsic functions.
...
llvm-svn: 35558
2007-04-01 19:00:37 +00:00
Reid Spencer
8a5799f558
For PR1297:
...
Preview documentation for the llvm.bit.concat intrinsic (yet to be
implemented).
llvm-svn: 35552
2007-04-01 08:27:01 +00:00
Reid Spencer
4eefaab3f6
For PR1297:
...
Document changes to bswap and bit counting intrinsics. bswap's name now
requires two types in the suffix per overloaded intrinsic naming rules.
The ctpop, cttz, and ctlz intrinsics were changed to always return i32.
llvm-svn: 35550
2007-04-01 08:04:23 +00:00
Duncan Sands
3bf01520eb
Remove reference to checkpoint.
...
llvm-svn: 35507
2007-03-30 16:09:58 +00:00
Duncan Sands
16f122e6ad
Various hopefully correct easy fixes.
...
llvm-svn: 35506
2007-03-30 12:22:09 +00:00
Reid Spencer
15316f9568
Undocument the implementation keyword
...
Docuemnt the checkpoint keyword
llvm-svn: 35413
2007-03-28 02:46:29 +00:00
Reid Spencer
db3b93bbb2
Fix a link.
...
llvm-svn: 35306
2007-03-24 22:40:44 +00:00
Reid Spencer
806ad6afb8
Correct the description of srem. remainder follows the dividend not the
...
divisor!
llvm-svn: 35303
2007-03-24 22:23:39 +00:00
Reid Spencer
9d1700e188
Add noreturn function attribute.
...
llvm-svn: 35262
2007-03-22 02:18:56 +00:00
Reid Spencer
05dbb9d002
Preview nounwind function attribute.
...
llvm-svn: 35256
2007-03-22 02:02:11 +00:00
Anton Korobeynikov
be9c93c79c
More LangRef fixes. Corrected names of intrinsics.
...
llvm-svn: 35249
2007-03-22 00:02:17 +00:00
Anton Korobeynikov
640bbe0a15
Fixed va_arg example. Reported by Roman Samoilov
...
llvm-svn: 35248
2007-03-21 23:58:04 +00:00
Jim Laskey
2211f496ff
Add link to exception handling.
...
llvm-svn: 35102
2007-03-14 19:31:19 +00:00
Reid Spencer
50c723ae72
Add a section on the target datalayout syntax and describe the defaults
...
and rules used by LLVM to construct the target's layout rules.
llvm-svn: 34433
2007-02-19 23:54:10 +00:00
Reid Spencer
404a3259f9
For PR1195:
...
Packed -> Vector
llvm-svn: 34296
2007-02-15 03:07:05 +00:00
Reid Spencer
2ab0193da1
Put the Shift instructions in the right section.
...
llvm-svn: 33782
2007-02-02 13:57:07 +00:00
Reid Spencer
04e259be5c
Preview of the shift instructions becoming Binary Operators.
...
llvm-svn: 33720
2007-01-31 21:39:12 +00:00
Anton Korobeynikov
e93c6e8dca
Grammar fix
...
llvm-svn: 33602
2007-01-28 15:27:21 +00:00
Anton Korobeynikov
e816685bd5
Document 'inreg' & 'sret'
...
llvm-svn: 33600
2007-01-28 14:30:45 +00:00
Anton Korobeynikov
c7f9f3df24
Updating documentation:
...
- Document visibility stuff
- Fix gcc' supported attributes list
- Document udis86 configure option
llvm-svn: 33462
2007-01-23 12:35:46 +00:00
Reid Spencer
2eadb5310d
For PR970:
...
Clean up handling of isFloatingPoint() and dealing with PackedType.
Patch by Gordon Henriksen!
llvm-svn: 33415
2007-01-21 00:29:26 +00:00
Reid Spencer
49c6e09c7c
icmp doesn't support comparison of packed types.
...
llvm-svn: 33357
2007-01-19 17:11:12 +00:00
Reid Spencer
e6a338d263
One more @ to remove.
...
llvm-svn: 33240
2007-01-15 18:28:34 +00:00
Reid Spencer
cf7ebf5cef
Update documentation for parameter attributes for the syntax change.
...
llvm-svn: 33238
2007-01-15 18:27:39 +00:00
Chris Lattner
c0f423a452
Terminology change: drop 'integral' completely. Now we just have integer,
...
which includes i1. Change the semantics of the various instructions to
support i1 where they didn't before: for example, it is now legal [though
not terribly useful, as it is the same as xor] to add two i1 values.
llvm-svn: 33217
2007-01-15 01:54:13 +00:00
Chris Lattner
e20b4707c6
clarify linkonce/weak linkage
...
llvm-svn: 33201
2007-01-14 06:51:48 +00:00
Reid Spencer
69240dfa72
Fix an incorrect conversion of int -> i32
...
llvm-svn: 33199
2007-01-14 06:29:54 +00:00
Chris Lattner
5760c5042c
add a global variable example
...
llvm-svn: 33190
2007-01-14 00:27:09 +00:00
Anton Korobeynikov
a0554d90e8
* PIC codegen for X86/Linux has been implemented
...
* PIC-aware internal structures in X86 Codegen have been refactored
* Visibility (default/weak) has been added
* Docs fixes (external weak linkage, visibility, formatting)
llvm-svn: 33136
2007-01-12 19:20:47 +00:00
Reid Spencer
07c9c68825
Fix a typo.
...
llvm-svn: 33118
2007-01-12 15:46:11 +00:00
Reid Spencer
36a1542bcb
Update for changes in the assembly syntax. bool is replaced with i1.
...
llvm-svn: 33106
2007-01-12 03:35:51 +00:00
Reid Spencer
e3db84c6c2
Explain that bitcast can only cast a pointer to another pointer.
...
llvm-svn: 33041
2007-01-09 20:08:58 +00:00
Chris Lattner
db0790c2fd
Fully specify the type of the llvm.va* intrinsics. This helps resolve
...
Pr1093
llvm-svn: 33009
2007-01-08 07:55:15 +00:00
Chris Lattner
65842fe4cd
llvm.isunordered is no longer alive.
...
llvm-svn: 32995
2007-01-07 08:53:26 +00:00
Reid Spencer
db94353bff
Add an example to the trunc instruction to clarify trunc to bool.
...
Example provided by Baptiste Lepilleur.
llvm-svn: 32931
2007-01-05 21:33:08 +00:00
Reid Spencer
92c671e77e
Correct the documentation for function declarations. They can have dllimport
...
or extern_weak linkage as well as "externally visible".
llvm-svn: 32887
2007-01-05 00:59:10 +00:00
Reid Spencer
3e628eb989
Clean up usage of "unsigned" and "signed" in the documentation to indicate
...
only that specific instructions regard their operands as signed and
unsigned not that the operands *are* signed or unsigned.
llvm-svn: 32874
2007-01-04 16:43:23 +00:00
Reid Spencer
784ef79b55
icmp and fcmp do not take packed type operands.
...
llvm-svn: 32864
2007-01-04 05:19:58 +00:00
Reid Spencer
72ba499004
Remove documentation of non-existent cextcc and csretextcc calling
...
conventions as these have been replaced with parameter attributes.
llvm-svn: 32797
2006-12-31 21:30:18 +00:00
Reid Spencer
655dcc6fce
One more try on the table formatting.
...
llvm-svn: 32793
2006-12-31 07:20:23 +00:00
Reid Spencer
58c08716af
Clean up some typos and formatting.
...
llvm-svn: 32792
2006-12-31 07:18:34 +00:00
Reid Spencer
b5ebf3d667
For PR950:
...
Update for signless integer types:
1. Replace [us]byte with i8
2. Replace [u]short with i16
3. Replace [u]int with i32
4. Replace [u]long with i64
5. Document the "define" keyword and use it in all examples.
6. Document parameter attributes and how they affect function types.
llvm-svn: 32791
2006-12-31 07:07:53 +00:00
Reid Spencer
c329a4e9cc
Preview of new calling conventions: cextcc and csretextcc to handle explicit
...
sign and zero extension in function calls.
llvm-svn: 32764
2006-12-28 16:55:55 +00:00
Andrew Lenharth
8df88e2cc9
Packed Structure Definitions (docs)
...
llvm-svn: 32357
2006-12-08 17:13:00 +00:00
Reid Spencer
02e0d1de90
Tie the ordered/unordered predicate descriptions to their meaning wrt
...
to QNAN values.
llvm-svn: 32272
2006-12-06 07:08:07 +00:00
Reid Spencer
cee005cbf2
We only support 32-bit or 64-bit sequential type indices for GEP. Document
...
it as so.
llvm-svn: 32197
2006-12-04 21:29:24 +00:00
Reid Spencer
9965ee72f5
Document the icmp and fcmp constant expressions.
...
llvm-svn: 32188
2006-12-04 19:23:19 +00:00
Reid Spencer
c031269ee3
Update for signless GEP semantics.
...
llvm-svn: 32159
2006-12-03 16:53:48 +00:00
Chris Lattner
5230e9175a
remove dead tag
...
llvm-svn: 31944
2006-11-27 21:53:28 +00:00
Reid Spencer
f69acf3e26
Corrections from review.
...
llvm-svn: 31865
2006-11-19 03:00:14 +00:00
Reid Spencer
e008326b86
Update a reference to the old setcc instruction.
...
llvm-svn: 31860
2006-11-18 21:55:45 +00:00
Reid Spencer
c828a0e3fe
For PR950:
...
Documentation preview of the upcoming icmp and fcmp instructions that
will replace the various setcc instructions.
llvm-svn: 31859
2006-11-18 21:50:54 +00:00
Reid Spencer
5b9506439a
Document new constant expr operators, rename bitconvert as bitcast.
...
llvm-svn: 31693
2006-11-11 23:08:07 +00:00
Reid Spencer
b7344ff025
Add a preview of two new conversion operators: ptrtoint and inttoptr. Update
...
the defintion of bitconvert correspondingly.
llvm-svn: 31688
2006-11-11 21:00:47 +00:00
Reid Spencer
51b07256a3
Post-review changes on conversion instructions.
...
llvm-svn: 31607
2006-11-09 23:03:26 +00:00
Reid Spencer
2e2740d46a
Fix runaway <tt> element and section ordering.
...
llvm-svn: 31606
2006-11-09 21:48:10 +00:00
Reid Spencer
8a82cc6304
Remove futurisms that won't be in our future.
...
llvm-svn: 31605
2006-11-09 21:42:14 +00:00
Reid Spencer
a89fb18c98
One more time for indentation.
...
llvm-svn: 31604
2006-11-09 21:18:01 +00:00
Reid Spencer
443460a318
Fix indentation problem starting at GEP.
...
llvm-svn: 31603
2006-11-09 21:15:49 +00:00
Reid Spencer
fdff938a7e
For PR950:
...
This patch converts the old SHR instruction into two instructions,
AShr (Arithmetic) and LShr (Logical). The Shr instructions now are not
dependent on the sign of their operands.
llvm-svn: 31542
2006-11-08 06:47:33 +00:00
Reid Spencer
97c5fa4607
Fix the section headings.
...
llvm-svn: 31532
2006-11-08 01:18:52 +00:00
Reid Spencer
59b6b7d9e4
For PR950:
...
Early commit of the documentation for new conversion instructions for
easier review.
llvm-svn: 31531
2006-11-08 01:11:31 +00:00
Reid Spencer
7eb55b395f
For PR950:
...
Replace the REM instruction with UREM, SREM and FREM.
llvm-svn: 31369
2006-11-02 01:53:59 +00:00
Reid Spencer
7e80b0b31e
For PR950:
...
Make necessary changes to support DIV -> [SUF]Div. This changes llvm to
have three division instructions: signed, unsigned, floating point. The
bytecode and assembler are bacwards compatible, however.
llvm-svn: 31195
2006-10-26 06:15:43 +00:00
Chris Lattner
c1fb4264f5
clarify
...
llvm-svn: 30966
2006-10-15 20:05:59 +00:00
Anton Korobeynikov
d61d39ec53
Adding dllimport, dllexport and external weak linkage types.
...
DLL* linkages got full (I hope) codegeneration support in C & both x86
assembler backends.
External weak linkage added for future use, we don't provide any
codegeneration, etc. support for it.
llvm-svn: 30374
2006-09-14 18:23:27 +00:00
Chris Lattner
33b73f9cfc
new powi intrinsic
...
llvm-svn: 30175
2006-09-08 06:34:02 +00:00
Chris Lattner
6ab6672cac
Add a link to the GEP faq.
...
llvm-svn: 29690
2006-08-15 00:45:58 +00:00
Chris Lattner
d2d29a088e
Decribe the "implementation" keyword.
...
llvm-svn: 28762
2006-06-13 03:05:47 +00:00
Chris Lattner
95ff1953f5
New calling convention I will be adding shortly.
...
llvm-svn: 28403
2006-05-19 21:15:36 +00:00
Chris Lattner
30b868d697
Update dox, patch by Vladimir Prus!
...
llvm-svn: 28306
2006-05-15 17:26:46 +00:00
Chris Lattner
6b7a00869a
Change token to match asmprinter output
...
llvm-svn: 28285
2006-05-14 18:23:06 +00:00
Chris Lattner
905bd17dc7
typo
...
llvm-svn: 27936
2006-04-21 21:37:40 +00:00
Tanya Lattner
b138bbe85b
Adding back vector instructions to keep in mainline.
...
llvm-svn: 27704
2006-04-14 19:24:33 +00:00
Tanya Lattner
8333c7d736
Removing unimplemented vector instructions from language referrence.
...
llvm-svn: 27703
2006-04-14 19:07:42 +00:00
Chris Lattner
ce83bff178
Move the vector instructions to their own subsection.
...
llvm-svn: 27545
2006-04-08 23:07:04 +00:00
Chris Lattner
9356489266
Wrap long lines, fix verification error
...
llvm-svn: 27531
2006-04-08 04:40:53 +00:00
Chris Lattner
24229d487a
use the right escapes
...
llvm-svn: 27530
2006-04-08 04:39:19 +00:00
Chris Lattner
016a0e50a5
Description for the new shufflevector instruction I'm adding.
...
llvm-svn: 27502
2006-04-08 00:13:41 +00:00
Chris Lattner
b40261ea2d
Fix a typo, thanks to Gabor Greif
...
llvm-svn: 27054
2006-03-24 07:16:10 +00:00
Robert Bocchino
2923bd009f
Fixed a typo in the vsetfp examples.
...
llvm-svn: 26768
2006-03-14 23:22:57 +00:00
Robert Bocchino
81e95ba849
Split the 'vset' instruction into two instructions, 'vsetint' and
...
'vsetfp', to reflect the fact that the semantics are different for
integer and fp values.
llvm-svn: 26767
2006-03-14 20:55:28 +00:00
Chris Lattner
f922807640
Update this to match the documentation in the GC doc and to match actual
...
practice.
llvm-svn: 26766
2006-03-14 20:02:51 +00:00
Reid Spencer
ca05854a71
Changes docs for llvm.cs.uiuc.edu -> llvm.org
...
llvm-svn: 26746
2006-03-14 05:39:39 +00:00
Chris Lattner
5316e5d6ff
Spec change: the size of a memset/memcpy/memmove is not required to be aligned
...
to the alignment argument.
llvm-svn: 26510
2006-03-04 00:02:10 +00:00
Chris Lattner
ad3c974a77
remove the read/write port/io intrinsics.
...
llvm-svn: 26479
2006-03-03 00:19:58 +00:00
Chris Lattner
0c8b259e5a
Update the llvm.memset/memcpy/memmove intrinsics to reflect the recent split
...
into types.
llvm-svn: 26477
2006-03-03 00:07:20 +00:00
Robert Bocchino
820bc75b8b
Added documentation for vset and vselect.
...
llvm-svn: 26264
2006-02-17 21:18:08 +00:00
Chris Lattner
98f013cb0f
document the syntax of inline asm
...
llvm-svn: 25624
2006-01-25 23:47:57 +00:00
Chris Lattner
a1280ad4d9
minor syntax change
...
llvm-svn: 25566
2006-01-24 00:37:20 +00:00
Chris Lattner
91c15c40a7
document module-level inline asm support.
...
llvm-svn: 25561
2006-01-23 23:23:47 +00:00
Chris Lattner
069b5bda5a
like bswap, the ct* intrinsics require unsigned operands
...
llvm-svn: 25373
2006-01-16 22:38:59 +00:00
Chris Lattner
b748c674a9
Consistency
...
llvm-svn: 25372
2006-01-16 22:34:14 +00:00
Reid Spencer
2a9012b17e
There is no llvm.bswap.i8, need at least 2 bytes to swap.
...
llvm-svn: 25367
2006-01-16 21:14:01 +00:00
Reid Spencer
b4f9a6f110
For PR411:
...
This patch is an incremental step towards supporting a flat symbol table.
It de-overloads the intrinsic functions by providing type-specific intrinsics
and arranging for automatically upgrading from the old overloaded name to
the new non-overloaded name. Specifically:
llvm.isunordered -> llvm.isunordered.f32, llvm.isunordered.f64
llvm.sqrt -> llvm.sqrt.f32, llvm.sqrt.f64
llvm.ctpop -> llvm.ctpop.i8, llvm.ctpop.i16, llvm.ctpop.i32, llvm.ctpop.i64
llvm.ctlz -> llvm.ctlz.i8, llvm.ctlz.i16, llvm.ctlz.i32, llvm.ctlz.i64
llvm.cttz -> llvm.cttz.i8, llvm.cttz.i16, llvm.cttz.i32, llvm.cttz.i64
New code should not use the overloaded intrinsic names. Warnings will be
emitted if they are used.
llvm-svn: 25366
2006-01-16 21:12:35 +00:00
Robert Bocchino
f72fdfe252
Added spec for insertelement operation.
...
llvm-svn: 25342
2006-01-15 20:48:27 +00:00
Nate Begeman
0f223bbce2
Make the bswap documentation more to sabre's liking!
...
llvm-svn: 25302
2006-01-13 23:26:38 +00:00
Chris Lattner
333374713d
fix some minor errors
...
llvm-svn: 25301
2006-01-13 23:26:01 +00:00
Nate Begeman
611ecc07b6
Add documentation for the upcoming bswap intrinsics!
...
llvm-svn: 25300
2006-01-13 23:02:51 +00:00
Chris Lattner
2f0f001dab
Add llvm.stacksave and llvm.stackrestore.
...
llvm-svn: 25264
2006-01-13 02:03:13 +00:00
Chris Lattner
b3d430e393
void* is not legal in LLVM.
...
llvm-svn: 25262
2006-01-13 01:20:27 +00:00
Robert Bocchino
7e97a6dc59
Expanded the documentation for constant expressions to cover select
...
and extractelement.
llvm-svn: 25183
2006-01-10 19:31:34 +00:00
Robert Bocchino
b5f210f3f2
Added the spec for the new "extractelement" instruction.
...
llvm-svn: 25113
2006-01-05 17:37:02 +00:00
Chris Lattner
e64d41def3
Fix some typos noticed by Gabor Greif!
...
llvm-svn: 24364
2005-11-15 06:07:55 +00:00
Chris Lattner
662c8726b8
document sections
...
llvm-svn: 24317
2005-11-12 00:45:07 +00:00
Andrew Lenharth
01aa56397d
continued readcyclecounter support
...
llvm-svn: 24300
2005-11-11 16:47:30 +00:00
Jeff Cohen
dc6bfeae26
Fix some typos.
...
llvm-svn: 24298
2005-11-11 02:15:27 +00:00
Chris Lattner
330ce692a2
Packed elements must be a power of two in size
...
llvm-svn: 24266
2005-11-10 01:44:22 +00:00
Chris Lattner
54611b4af1
document alignment on globals, functions, and allocation instructions.
...
llvm-svn: 24221
2005-11-06 08:02:57 +00:00
John Criswell
4c0cf7f205
Grammar and punctuation fixes.
...
llvm-svn: 23965
2005-10-24 16:17:18 +00:00
Chris Lattner
8a8f2e5a01
llvm.sqrt somehow escaped documentation.
...
llvm-svn: 22490
2005-07-21 01:29:16 +00:00
Chris Lattner
c0ad71edd4
add a note about variable length array
...
llvm-svn: 22278
2005-06-24 17:22:57 +00:00
Andrew Lenharth
5305ea5c86
SelectionDAG is very unhappy when the argument to an intrinsic is a struct
...
llvm-svn: 22272
2005-06-22 20:38:11 +00:00
Andrew Lenharth
5fb787c619
OK, after checking the backwards compatibility code on X86 and the new code
...
path on alpha, now has come the time for new vararg support. So, with out
further ado, I revert behavior back a couple of years!
Well, ok, I lied. A few more notes.
First, the Simple ISels cannot be expected to work any longer, but they
should still compile
Second, there are likely some bugs to track down once the nightly testers
start with this.
Third, the initial patch doesn't include sparcv9, but I'll do that today.
Forth, subsequent patches won't bother being long winded.
llvm-svn: 22251
2005-06-18 18:28:17 +00:00
John Criswell
88190562e6
Added a note about how the type can be omitted in call instructions.
...
Added a note about how getelementptr can be used to index into structures
or arrays.
Fixed some typos, spelling, etc.
llvm-svn: 22083
2005-05-16 16:17:45 +00:00
Chris Lattner
efa20fab2d
ctlz = most signficant bits, cttz = least sig
...
llvm-svn: 22061
2005-05-15 19:39:26 +00:00
John Criswell
4a3327eead
Minor fixup of typos.
...
llvm-svn: 21990
2005-05-13 22:25:59 +00:00
John Criswell
c932bef114
Correct a detail with the alloca instruction.
...
Functions do not exit with invoke; they exit with unwind.
llvm-svn: 21893
2005-05-12 16:55:34 +00:00
John Criswell
02fdc6fab4
Fixed some typos.
...
llvm-svn: 21891
2005-05-12 16:52:32 +00:00
Chris Lattner
90391c1899
don't duplicate information, particularly when it's out of date!
...
llvm-svn: 21852
2005-05-11 03:35:57 +00:00
Chris Lattner
573f64ecb5
fix bugs in my previous commit clarify the return type of the bit ops
...
llvm-svn: 21755
2005-05-07 01:46:40 +00:00
Chris Lattner
c792eb342c
add a couple of notes
...
llvm-svn: 21754
2005-05-06 23:08:23 +00:00
Chris Lattner
0132affa89
document calling convention extensions
...
llvm-svn: 21753
2005-05-06 22:57:40 +00:00
Chris Lattner
e23c139836
Add info on new 'tail' marker
...
llvm-svn: 21721
2005-05-06 05:47:36 +00:00
Andrew Lenharth
5be6f131e6
fixup argument
...
llvm-svn: 21680
2005-05-04 14:58:31 +00:00
Andrew Lenharth
1d463526b4
initial descriptions of count intrinsics
...
llvm-svn: 21677
2005-05-03 18:01:48 +00:00
Reid Spencer
d845d160f6
Mention that arguments to functions must be first class types.
...
llvm-svn: 21650
2005-05-01 22:22:57 +00:00
Reid Spencer
7821d06c24
Convert the remainder of the intrinsic function prototypes to "declare"
...
form from the "call" form.
llvm-svn: 21573
2005-04-26 20:50:44 +00:00
Reid Spencer
cf669d87d0
Use the declare syntax not the call syntax for intrinsic prototypes so
...
the uninitiated reader is not confused.
llvm-svn: 21572
2005-04-26 20:41:16 +00:00
Chris Lattner
37b6b097ff
document 'opaque' types
...
llvm-svn: 21535
2005-04-25 17:34:15 +00:00
Misha Brukman
36c6bc1bf4
Hyphenate the adjective `n-bit' when used to describe values and processors
...
llvm-svn: 21456
2005-04-22 18:02:52 +00:00
Andrew Lenharth
b442791124
First step in adding pcmarker intrinsic. Second step (soon) is adding backend support.
...
llvm-svn: 20900
2005-03-28 20:05:49 +00:00
Chris Lattner
455fc8c917
Various cleanups and clarifications, thanks to Gabor Greif for contributing this patch!
...
llvm-svn: 20514
2005-03-07 22:13:59 +00:00
Chris Lattner
d3e641c2ab
fix another typo
...
llvm-svn: 20512
2005-03-07 20:31:38 +00:00
Chris Lattner
2e6eb5f40d
fix typeo that Gabor Greif noticed!
...
llvm-svn: 20511
2005-03-07 20:30:51 +00:00
Chris Lattner
ff851073f6
cleanup my miswording
...
llvm-svn: 20381
2005-02-28 19:47:14 +00:00
Chris Lattner
c8a2c22f36
Document llvm.prefetch, patch contributed by Justin Wick!
...
llvm-svn: 20373
2005-02-28 19:24:19 +00:00
Chris Lattner
16fb0037c4
Fix a bug.
...
llvm-svn: 20242
2005-02-19 02:22:14 +00:00
Chris Lattner
5d5aede33b
Document the newly generalized model for constant globals.
...
llvm-svn: 20136
2005-02-12 19:30:21 +00:00
John Criswell
dfe6a86b0b
Merged in RELEASE_14 changes.
...
llvm-svn: 18763
2004-12-10 15:51:16 +00:00
Reid Spencer
641f5c9878
More grammaro's fixed.
...
llvm-svn: 18708
2004-12-09 18:13:12 +00:00
Reid Spencer
8f08d805d4
Clean up some grammaro's.
...
llvm-svn: 18705
2004-12-09 18:02:53 +00:00
Chris Lattner
74d3f82b6e
Fully document the LLVM constants. This should go into LLVM 1.4
...
llvm-svn: 18701
2004-12-09 17:30:23 +00:00
Chris Lattner
d79749a110
Reflow and clean up some of the HTML in the initial section, split linkage
...
types into its own section.
llvm-svn: 18697
2004-12-09 16:36:40 +00:00
Chris Lattner
6af02f3961
Move the "High Level Structure" to before "Type System"
...
llvm-svn: 18695
2004-12-09 16:11:40 +00:00
Reid Spencer
c3c4c4f843
Minor format tweask for tables.
...
llvm-svn: 17394
2004-11-01 08:19:36 +00:00
Chris Lattner
08b7d5b032
Document unreachable instruction
...
llvm-svn: 17033
2004-10-16 18:04:13 +00:00
Chris Lattner
6a4a0492f8
Patch contributed by Patrick Meredith:
...
added notes on the fact that the current implementation uses
sbyte* for va_list. Updated all occurances of valist to va_list (it was
inconsistant and find/replace is so easy ;-) ). Added <...> around all
occurances of va_list in the intrinsic functions to match the vaarg and
vanext instructions and to further show that va_list is a variable type.
llvm-svn: 16530
2004-09-27 21:51:25 +00:00
Reid Spencer
cb84e4351d
Provide some meta tags for this document.
...
llvm-svn: 16058
2004-08-26 20:44:00 +00:00
Misha Brukman
20f9a62596
Wrap long lines and try to fill the 80 chars per line so that we don't have too
...
many short lines.
llvm-svn: 15706
2004-08-12 20:16:08 +00:00
Chris Lattner
c8cb695f83
Add description of packed type support.
...
Patch contributed by Brad Jones!
llvm-svn: 15704
2004-08-12 19:12:28 +00:00
Brian Gaeke
317ef96a3a
Modernize example, so that you can paste it right into llvm-as
...
llvm-svn: 14583
2004-07-02 21:08:14 +00:00
John Criswell
726de6f9b0
Removed the interrupt_handler instrinsic section that I accidently added
...
in my previous commits. It's not implemented and is out of date.
llvm-svn: 14410
2004-06-25 16:42:50 +00:00
John Criswell
bcbb18c7a0
Grammar and punctuation fixes.
...
llvm-svn: 14409
2004-06-25 16:05:06 +00:00
John Criswell
40db33f642
Added missing quote.
...
llvm-svn: 14407
2004-06-25 15:16:57 +00:00
Chris Lattner
53e5e2accc
Fix some broken links
...
llvm-svn: 14306
2004-06-21 22:52:48 +00:00
Chris Lattner
f64f794cad
llvm.isnan is dead, long live llvm.isunordered!
...
llvm-svn: 14190
2004-06-15 21:50:46 +00:00
Alkis Evlogimenos
0fa392310a
Really add the docs this time :-)
...
llvm-svn: 14167
2004-06-13 01:16:15 +00:00
Alkis Evlogimenos
9d740629a0
Add the isunordered intrinsic.
...
llvm-svn: 14159
2004-06-12 19:19:14 +00:00
Chris Lattner
3b4f437526
Document the llvm.isnan intrinsic
...
llvm-svn: 14131
2004-06-11 02:28:03 +00:00
Chris Lattner
10ee9654c9
Fix some broken links
...
llvm-svn: 13997
2004-06-03 22:57:15 +00:00
Chris Lattner
757528b0b6
Describe the new garbage collector intrinsics
...
llvm-svn: 13672
2004-05-23 21:06:01 +00:00
John Criswell
7a57647f97
Corrected the descriptions of the llvm.writeport and llvm.writeio
...
intrinsics.
Modified llvm.readio and llvm.writeio to use pointers to memory instead
of integers. This should take care of problems such as different pointer
sizes, casting integers to pointers, weird architectural pointer types, etc.
Re-worded the description of llvm.readio and llvm.writeio so that it should
be more clear as to why they should be used over regular loads/stores for
I/O.
llvm-svn: 12867
2004-04-12 16:33:19 +00:00
John Criswell
a450122ebf
Added initial design for the llvm.readio and llvm.writeio intrinsics.
...
llvm-svn: 12864
2004-04-12 15:02:16 +00:00
John Criswell
417228d00a
Fixed some spelling.
...
llvm-svn: 12790
2004-04-09 16:48:45 +00:00
John Criswell
aa1c3c1f23
Modified the prototypes of the llvm.readport and llvm.writeport intrinsics
...
so that they do not specify specific integer sizes (as those are
constrained by the code generator, not the intrinsic itself).
Also put these intrinsics into their own "Operating System" section.
llvm-svn: 12789
2004-04-09 16:43:20 +00:00
John Criswell
508b93c569
Added the llvm.readport and llvm.writeport intrinsics.
...
llvm-svn: 12788
2004-04-09 15:23:37 +00:00
Chris Lattner
33fd702590
Update getelementptr instruction description
...
llvm-svn: 12654
2004-04-05 01:30:49 +00:00
John Criswell
eb55b52a58
Fixed grammar typo.
...
llvm-svn: 12343
2004-03-12 21:19:06 +00:00
Chris Lattner
b53c28d6ca
Cleanup the cast section, add the select instruction
...
llvm-svn: 12307
2004-03-12 05:50:16 +00:00
Chris Lattner
b16526108c
Remove the comment "Constants must always have an initial value.", which
...
is incorrect. Fix some formatting nastiness.
llvm-svn: 12223
2004-03-08 16:49:10 +00:00
Misha Brukman
c501f5530b
HTML 4.01 Strict compliance.
...
llvm-svn: 12050
2004-03-01 17:47:27 +00:00
John Criswell
a92e58610d
Fixed minor typos.
...
llvm-svn: 11800
2004-02-24 16:13:56 +00:00
Chris Lattner
cf96c6caa5
Wow, the description of the 'switch' instruction was out of date.
...
llvm-svn: 11790
2004-02-24 04:54:45 +00:00
Chris Lattner
34c47d967e
fix typeo
...
llvm-svn: 11446
2004-02-14 19:27:26 +00:00
Chris Lattner
3649c3aaf7
Document new intrinsics
...
llvm-svn: 11438
2004-02-14 04:08:35 +00:00
Chris Lattner
4c67c48c42
Be a bit more specific about what the alignment value means and the restrictions on it
...
llvm-svn: 11360
2004-02-12 21:18:15 +00:00
Chris Lattner
f30152e480
Add support for the llvm.memmove intrinsic.
...
Patch graciously contributed by Reid Spencer!
llvm-svn: 11354
2004-02-12 18:10:10 +00:00
Chris Lattner
fee11469bb
Document the llvm.memcpy intrinsic. Clean up some of the formatting of other
...
sections
llvm-svn: 11350
2004-02-12 17:01:32 +00:00
Chris Lattner
941515cf67
Add links to SLD from the LangRef.html doc
...
Clean up the SLD document a LOT
Fill in a lot of details in the SLD document
update the formats for the object descriptors
llvm-svn: 10698
2004-01-06 05:31:32 +00:00
John Criswell
a0d50d2ebc
Fixed a small grammatical error.
...
Explained that function return types cannot be aggregate types.
Explained that functions with the same name but different type signatures
are considered to be different functions.
llvm-svn: 10230
2003-11-25 21:45:46 +00:00
Chris Lattner
48b383b015
checkin reid's docpatch
...
llvm-svn: 10200
2003-11-25 01:02:51 +00:00
John Criswell
745d0a5414
Fixed another minor grammatical error.
...
llvm-svn: 10130
2003-11-21 17:42:22 +00:00
John Criswell
cc32e6e62a
Minor grammatical and punctuation corrections.
...
llvm-svn: 10126
2003-11-21 16:09:42 +00:00
Misha Brukman
7630785925
First pass at cleaning up LangRef.html: stylesheet-ification, consistent
...
formatting, more strict adherence to HTML 4.01, other misc. cleanups.
llvm-svn: 9799
2003-11-08 01:05:38 +00:00
Chris Lattner
30aad2a98e
Fix typo
...
llvm-svn: 9610
2003-10-30 04:35:26 +00:00
Chris Lattner
78293b7023
Clarify that all manipulatable values must be of first class type, and specifically
...
update the PHI node entry to mention this as well.
llvm-svn: 9606
2003-10-30 01:31:37 +00:00
John Criswell
f531f319d2
Merged in RELEASE_1.
...
llvm-svn: 9538
2003-10-27 18:18:16 +00:00
Chris Lattner
3daeff5ce8
Hrm, for some reason, my fingers like typing va_begin. Weird
...
llvm-svn: 9329
2003-10-21 15:43:55 +00:00
Chris Lattner
26ca62e853
Update for new varargs support
...
llvm-svn: 9218
2003-10-18 05:51:36 +00:00
Chris Lattner
e838773b63
Add documentation for weak variables
...
llvm-svn: 9001
2003-10-10 05:01:39 +00:00
Chris Lattner
12d456ccfc
Add info about volatile loads/stores
...
llvm-svn: 8403
2003-09-08 18:27:49 +00:00
Chris Lattner
9231e48de8
Final cleanups, document is good to go
...
llvm-svn: 8338
2003-09-03 04:20:13 +00:00
Chris Lattner
5ed6061b22
Add a WHOLE lot of updates clarifications and fixes. This is not done but getting closer. I changed the docs to reflect the goal of making unwind an instruction, not an intrinsic.
...
llvm-svn: 8337
2003-09-03 00:41:47 +00:00
Chris Lattner
b5b54d6393
hyphenation police visited here
...
llvm-svn: 8336
2003-09-02 23:38:41 +00:00
Chris Lattner
8a18a8c307
Document the llvm.unwind intrinsic.
...
Clarify the documentation for the invoke instruction
llvm-svn: 8196
2003-08-28 22:12:25 +00:00
Misha Brukman
7fdaab4f68
The word `separate' only has one `e'.
...
llvm-svn: 7173
2003-07-14 17:20:40 +00:00
Chris Lattner
33426d9168
Diversify examples
...
llvm-svn: 6778
2003-06-18 21:30:51 +00:00
Chris Lattner
b254d5d50e
fix incorrect anchor
...
llvm-svn: 6777
2003-06-18 21:28:11 +00:00
Chris Lattner
36f0f5e81a
va_start only takes on argument now.
...
llvm-svn: 6039
2003-05-08 15:55:44 +00:00
Chris Lattner
546ffbddb1
Update information about the switch instruction
...
llvm-svn: 6037
2003-05-08 05:08:48 +00:00
Chris Lattner
bd64b4ed8c
* Add information about LLVM intrinsics
...
* Add information about the va_arg instruction
* Add information about the llvm.va_* intrinsics
llvm-svn: 6036
2003-05-08 04:57:36 +00:00
Chris Lattner
588806f5af
getelementptr uses long instead of uint indexes
...
llvm-svn: 4993
2002-12-13 06:01:21 +00:00
Chris Lattner
4b24005a9b
Add a note about the switch instruction
...
llvm-svn: 4551
2002-11-05 00:21:03 +00:00
Misha Brukman
632df28deb
Fix spelling of `propagate'.
...
llvm-svn: 4423
2002-10-29 23:06:16 +00:00
Misha Brukman
cab9e249bd
Fixed grammar.
...
llvm-svn: 3805
2002-09-18 02:35:14 +00:00
Chris Lattner
d490909a1c
Add distinction between integer and integral types.
...
llvm-svn: 3570
2002-09-03 00:52:52 +00:00
Chris Lattner
eb5d8331e8
Add "written by" note
...
llvm-svn: 3543
2002-08-30 21:50:21 +00:00
Chris Lattner
429b522d79
Comment out broken link
...
llvm-svn: 3520
2002-08-29 18:33:48 +00:00
Chris Lattner
cc8061632c
Fix typeo noticed by Bryan
...
llvm-svn: 3388
2002-08-19 21:14:38 +00:00
Chris Lattner
d81cc45169
Add a note mentioning that bools promote to 0 or 1
...
llvm-svn: 3352
2002-08-15 19:36:05 +00:00
Chris Lattner
cd09f750bf
Remove information about dead 'not' instruction
...
llvm-svn: 3319
2002-08-14 17:55:59 +00:00
Chris Lattner
1330428256
Add a note that specifies that the whether or not sign extension is done by
...
a cast is determined by the source operand.
llvm-svn: 3304
2002-08-13 20:52:09 +00:00
Chris Lattner
55d3b0d266
Avoid calling LLVM "Strongly typed"
...
llvm-svn: 2785
2002-06-25 20:20:08 +00:00
Chris Lattner
daf228fe8b
Add borders to truth tables
...
llvm-svn: 2782
2002-06-25 18:06:50 +00:00
Chris Lattner
d8f8ede5eb
Minor tuning and fleshing out of the language reference.
...
llvm-svn: 2781
2002-06-25 18:03:17 +00:00
Chris Lattner
a8292f31c8
Finish up the updates to the language reference
...
llvm-svn: 2509
2002-05-06 22:08:29 +00:00
Chris Lattner
095735d42e
Updated documentation a _LOT_
...
llvm-svn: 2474
2002-05-06 03:03:22 +00:00
Chris Lattner
590645fb66
Update documentation a LOT, make it more accurate and match current model
...
better. Still more room for improvement.
llvm-svn: 2245
2002-04-14 06:13:44 +00:00
Chris Lattner
70de663266
Updated documentation for load, store & getelementptr
...
llvm-svn: 166
2001-07-09 00:26:23 +00:00
Chris Lattner
7399a10ad5
Update documentation to reflect:
...
* Changes in PHI node structure
* Intentions for load instruction to work with structures
llvm-svn: 22
2001-06-11 15:03:43 +00:00
Chris Lattner
2f7c963559
Initial revision
...
llvm-svn: 2
2001-06-06 20:29:01 +00:00