Christopher Lamb
d3bac47ce6
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
6d12d7c0fe
Implement part of review feedback for address spaces.
...
llvm-svn: 44933
2007-12-12 08:44:39 +00:00
Christopher Lamb
99016c5793
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
fbd6134a51
Fix a typo spotted by Nick Lewycky.
...
llvm-svn: 44774
2007-12-10 03:30:21 +00:00
Gordon Henriksen
5d201e0bcc
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
3602011bec
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
d05a55f03f
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
2a8ef3f29a
Add support for vectors to int <-> float casts.
...
llvm-svn: 44204
2007-11-17 03:58:34 +00:00
Duncan Sands
91b3db2956
Tweak the descriptions of the new 'const' and 'pure' attributes.
...
llvm-svn: 44132
2007-11-14 21:14:02 +00:00
Anton Korobeynikov
6108a7b107
Document pure/const parameter attributes
...
llvm-svn: 44111
2007-11-14 10:30:13 +00:00
Dan Gohman
6255ce9f5d
Add support for vector remainder operations.
...
llvm-svn: 43744
2007-11-05 23:35:22 +00:00
Bill Wendling
8a53fc3a85
Put correct link in example
...
llvm-svn: 43216
2007-10-22 05:10:05 +00:00
Dan Gohman
17e4c10d4f
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
777d33e3b7
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
f38341e4a6
Fixing a typo. Found by Kevin André!
...
llvm-svn: 42956
2007-10-14 00:34:53 +00:00
Chris Lattner
a1c9e02298
Clarify that shifts that are too large are undefined.
...
llvm-svn: 42588
2007-10-03 21:01:14 +00:00
Chris Lattner
00a19fadfe
remove extraneous tag
...
llvm-svn: 42581
2007-10-03 17:34:29 +00:00
Chris Lattner
fc0f3994a0
remove misleading documentation: LLVM has no atomic support yet.
...
llvm-svn: 42580
2007-10-03 17:33:51 +00:00
Dale Johannesen
b2923ff810
Document new sqrt and powi handling.
...
llvm-svn: 42540
2007-10-02 17:47:38 +00:00
Bill Wendling
135ef8e763
Validation fixes
...
llvm-svn: 42225
2007-09-22 09:23:55 +00:00
Chris Lattner
ec22695366
fix bugs in the manual
...
llvm-svn: 42221
2007-09-22 03:17:52 +00:00
Tanya Lattner
376d3091d9
Correct names.
...
llvm-svn: 42219
2007-09-22 00:03:01 +00:00
Tanya Lattner
bc74d75cbd
Fix typo.
...
llvm-svn: 42217
2007-09-22 00:01:26 +00:00
Tanya Lattner
f413c665d6
One last fix to get name correct.
...
llvm-svn: 42216
2007-09-21 23:57:59 +00:00
Tanya Lattner
80f02ffa9f
Fix silly typo.
...
llvm-svn: 42215
2007-09-21 23:57:04 +00:00
Tanya Lattner
7d68980d81
Update annotation intrinsic with more details.
...
llvm-svn: 42214
2007-09-21 23:56:27 +00:00
Tanya Lattner
e8c1cb789d
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
cd2ae40679
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
c358890f73
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
7a9495d5e6
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
b31856afd4
Implement review feedback on trampoline documentation.
...
llvm-svn: 41304
2007-08-22 23:39:54 +00:00
Reid Spencer
c6ed1c46f4
Describe the global/local naming convention.
...
llvm-svn: 40890
2007-08-07 14:34:28 +00:00
Chandler Carruth
00e56b0e81
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
4d35935f55
fp2uint -> fptoui
...
llvm-svn: 40633
2007-07-31 14:40:14 +00:00
Duncan Sands
79f8131398
Forget to add 'nest' to the list of parameter
...
attributes.
llvm-svn: 40565
2007-07-27 19:57:41 +00:00
Duncan Sands
e8bb2c6d32
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
e5c617b3a0
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
63e429d8bf
Silly HTML
...
llvm-svn: 40117
2007-07-20 20:03:33 +00:00
Reid Spencer
491c2963bd
Fix validation errors.
...
llvm-svn: 40116
2007-07-20 19:59:11 +00:00
Chandler Carruth
33a4d149d6
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
44d34e9b61
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
e538b98446
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
4db194d120
remove obsolete note
...
llvm-svn: 39825
2007-07-13 20:08:19 +00:00
Chris Lattner
e19d21fc74
fix some bugs in the manual
...
llvm-svn: 39822
2007-07-13 20:01:46 +00:00
Gabor Greif
f8138f9cb9
first pass of nomenclature changes in .html files
...
llvm-svn: 37956
2007-07-06 22:07:22 +00:00
Tanya Lattner
e662c7928b
Update docs for llvm.var.annotation intrinsic.
...
llvm-svn: 37635
2007-06-18 23:42:37 +00:00
Tanya Lattner
203b1ae094
Add local var annotation intrinsic.
...
llvm-svn: 37603
2007-06-15 20:50:54 +00:00
Chris Lattner
8268a689b4
one final bugfix
...
llvm-svn: 37558
2007-06-12 17:01:15 +00:00
Chris Lattner
a1512abbed
modernize example
...
llvm-svn: 37557
2007-06-12 17:00:26 +00:00
Chris Lattner
5fa8565289
wording fix noticed by Ivan Novick
...
llvm-svn: 37519
2007-06-08 16:52:14 +00:00
Chris Lattner
da6de2a08d
update to match latest changes
...
llvm-svn: 37474
2007-06-06 18:28:13 +00:00
Zhou Sheng
09b12fef98
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
dc15e2779b
more fixes to C code.
...
llvm-svn: 37339
2007-05-29 15:43:56 +00:00
Bill Wendling
1b255037d2
Fixed some formatting.
...
llvm-svn: 37338
2007-05-29 09:42:13 +00:00
Bill Wendling
486876da86
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
4b6160d0da
remove contradiction owen noticed
...
llvm-svn: 37327
2007-05-24 19:13:27 +00:00
Reid Spencer
65e79ac699
Update for arbitrary precision integer types.
...
llvm-svn: 37109
2007-05-16 18:44:01 +00:00
Reid Spencer
03903c3181
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
0f0310012d
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
3d95e52ea2
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
cb2004f82c
Implement review feedback
...
llvm-svn: 36564
2007-04-29 18:02:48 +00:00
Jeff Cohen
daed13e4b8
Minor corrections.
...
llvm-svn: 36548
2007-04-29 01:07:00 +00:00
Anton Korobeynikov
45162c6dad
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
25dc9a61cb
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
1851854ac2
Undo erroneous corrections.
...
llvm-svn: 36340
2007-04-22 14:56:37 +00:00
Jeff Cohen
a2a64760f6
Minor corrections.
...
llvm-svn: 36325
2007-04-22 01:17:39 +00:00
Christopher Lamb
b56b6a7ad7
add support for alignment attributes on load/store instructions
...
llvm-svn: 36301
2007-04-21 08:16:25 +00:00
Lauro Ramos Venancio
000b6f4d9b
update documentation
...
llvm-svn: 35953
2007-04-12 20:34:36 +00:00
Reid Spencer
dc71bea48d
Fix extra argument in part_set examples. Thanks Zhiru.
...
llvm-svn: 35936
2007-04-12 01:03:03 +00:00
Reid Spencer
f55aa23d33
Fix validation errors.
...
llvm-svn: 35933
2007-04-11 23:49:50 +00:00
Reid Spencer
3452a4d41c
Missing end tag. Thanks, Nick.
...
llvm-svn: 35932
2007-04-11 23:46:06 +00:00
Reid Spencer
683fdc6faa
Put period inside the paragraph!
...
llvm-svn: 35930
2007-04-11 23:26:07 +00:00
Reid Spencer
ef691857bb
Document the part_set intrinsic.
...
llvm-svn: 35929
2007-04-11 23:23:49 +00:00
Reid Spencer
2c005107dc
Fix name of an intrinsic: bit.part_select -> part.select
...
llvm-svn: 35853
2007-04-10 02:51:31 +00:00
Reid Spencer
a4d5642bb8
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
cc3e39562f
Appease Chris' pedantic streak.
...
llvm-svn: 35647
2007-04-04 05:46:04 +00:00
Reid Spencer
d187b99ad9
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
50844453dd
bwsap -> bswap
...
llvm-svn: 35580
2007-04-02 02:25:19 +00:00
Reid Spencer
0df30afbef
Fix some bswap typos that Chris noticed.
...
llvm-svn: 35564
2007-04-02 00:19:52 +00:00
Reid Spencer
167c5f02ce
Preview documentation for additional intrinsic functions.
...
llvm-svn: 35558
2007-04-01 19:00:37 +00:00
Reid Spencer
205fd857c5
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
f9dad9ed2f
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
74da63de4f
Remove reference to checkpoint.
...
llvm-svn: 35507
2007-03-30 16:09:58 +00:00
Duncan Sands
05834dfd9e
Various hopefully correct easy fixes.
...
llvm-svn: 35506
2007-03-30 12:22:09 +00:00
Reid Spencer
d7ef916d2d
Undocument the implementation keyword
...
Docuemnt the checkpoint keyword
llvm-svn: 35413
2007-03-28 02:46:29 +00:00
Reid Spencer
7edbb3082f
Fix a link.
...
llvm-svn: 35306
2007-03-24 22:40:44 +00:00
Reid Spencer
88d0496d66
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
3fd4e45972
Add noreturn function attribute.
...
llvm-svn: 35262
2007-03-22 02:18:56 +00:00
Reid Spencer
3dd6681b9e
Preview nounwind function attribute.
...
llvm-svn: 35256
2007-03-22 02:02:11 +00:00
Anton Korobeynikov
61b9366c9f
More LangRef fixes. Corrected names of intrinsics.
...
llvm-svn: 35249
2007-03-22 00:02:17 +00:00
Anton Korobeynikov
cdfb4988d9
Fixed va_arg example. Reported by Roman Samoilov
...
llvm-svn: 35248
2007-03-21 23:58:04 +00:00
Jim Laskey
f19a75ee27
Add link to exception handling.
...
llvm-svn: 35102
2007-03-14 19:31:19 +00:00
Reid Spencer
52e307f820
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
80c836c443
For PR1195:
...
Packed -> Vector
llvm-svn: 34296
2007-02-15 03:07:05 +00:00
Reid Spencer
96661f106d
Put the Shift instructions in the right section.
...
llvm-svn: 33782
2007-02-02 13:57:07 +00:00
Reid Spencer
4736f2b02d
Preview of the shift instructions becoming Binary Operators.
...
llvm-svn: 33720
2007-01-31 21:39:12 +00:00
Anton Korobeynikov
c766384e4f
Grammar fix
...
llvm-svn: 33602
2007-01-28 15:27:21 +00:00
Anton Korobeynikov
3cb3ea516f
Document 'inreg' & 'sret'
...
llvm-svn: 33600
2007-01-28 14:30:45 +00:00
Anton Korobeynikov
6da3df75ec
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
e33c18f4d2
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