Eli Friedman
d8874dc1d6
Fix the getelementptr description so it is extremely clear that array indices passed to getelementptr are signed.
...
llvm-svn: 137538
2011-08-12 23:37:55 +00:00
Eli Friedman
02e737b08e
Move "atomic" and "volatile" designations on instructions after the opcode
...
of the instruction.
Note that this change affects the existing non-atomic load and store
instructions; the parser now accepts both forms, and the change is noted
in the release notes.
llvm-svn: 137527
2011-08-12 22:50:01 +00:00
Eli Friedman
c13f05c978
Some reorganization of atomic docs. Added explicit section for NonAtomic. Added example for illegal non-atomic operation.
...
llvm-svn: 137520
2011-08-12 21:50:54 +00:00
Bill Wendling
fae1475823
Initial commit of the 'landingpad' instruction.
...
This implements the 'landingpad' instruction. It's used to indicate that a basic
block is a landing pad. There are several restrictions on its use (see
LangRef.html for more detail). These restrictions allow the exception handling
code to gather the information it needs in a much more sane way.
This patch has the definition, implementation, C interface, parsing, and bitcode
support in it.
llvm-svn: 137501
2011-08-12 20:24:12 +00:00
Chris Lattner
30e697ebaf
apparently variable naming conventions never got added, document the
...
prevailing convention. Thanks to Dave Zarzycki for the patch.
llvm-svn: 137497
2011-08-12 19:49:16 +00:00
Chris Lattner
2c945b3d88
minor typo
...
llvm-svn: 137496
2011-08-12 19:48:19 +00:00
Chris Lattner
3253173c34
fix one reference that slipped through, thanks Eli
...
llvm-svn: 137488
2011-08-12 18:12:40 +00:00
Chris Lattner
190552d3e0
add new accessors to reflect new terminology in struct types.
...
llvm-svn: 137468
2011-08-12 17:31:02 +00:00
NAKAMURA Takumi
5dd4132ab8
docs/GettingStarted.html: [Git] Add instructions how to generate patchset with Git.
...
llvm-svn: 137444
2011-08-12 07:48:06 +00:00
NAKAMURA Takumi
d92a5fe2fb
docs/GettingStarted.html: [Git] Mention branch.master.rebase for the tracking branch.
...
Thanks to Jeff Yasskin to reword.
llvm-svn: 137443
2011-08-12 07:48:01 +00:00
NAKAMURA Takumi
d9b1c6ecd0
docs/GettingStarted.html: [Git] Split the subsubsection for committer's section.
...
llvm-svn: 137442
2011-08-12 07:47:55 +00:00
NAKAMURA Takumi
0300d88af5
docs: Update HTML markup(s).
...
llvm-svn: 137433
2011-08-12 06:17:17 +00:00
NAKAMURA Takumi
8e01926b24
docs/llvm.css: Introduce <blockquote><pre>. It may be used as blockquoted "doc_code".
...
llvm-svn: 137432
2011-08-12 06:17:11 +00:00
Eli Friedman
4826b7f13a
Misc atomic doc tweaks; reordering operations across Acquire/Release can be beneficial.
...
llvm-svn: 137425
2011-08-12 03:38:32 +00:00
Eli Friedman
c67b9d3879
Fix up this paragraph (including a nasty typo).
...
llvm-svn: 137408
2011-08-12 01:26:06 +00:00
Andrew Trick
7bab70a7a5
Clarify the definition of SequentiallyConsistent operations.
...
llvm-svn: 137403
2011-08-12 00:36:38 +00:00
Eli Friedman
1696033373
Fix mismatched tag.
...
llvm-svn: 137388
2011-08-11 23:48:52 +00:00
Eli Friedman
7b8cc7e938
Revision to Atomics guide, per Chris's comments.
...
llvm-svn: 137386
2011-08-11 23:44:25 +00:00
Justin Holewinski
6c6a7fd692
PTX: Add basic documentation to CodeGenerator.html
...
llvm-svn: 137315
2011-08-11 17:34:16 +00:00
Eli Friedman
224fe0d4cb
Changes per Jeffrey's comments.
...
llvm-svn: 137243
2011-08-10 20:17:43 +00:00
Eli Friedman
753625397b
Fix minor typo.
...
llvm-svn: 137177
2011-08-09 23:26:12 +00:00
Eli Friedman
59b66883ea
Representation of 'atomic load' and 'atomic store' in IR.
...
llvm-svn: 137170
2011-08-09 23:02:53 +00:00
Eli Friedman
84cd7927b9
First draft of the practical guide to atomics.
...
This is mostly descriptive of the intended state once atomic load and store have landed.
llvm-svn: 137145
2011-08-09 21:07:10 +00:00
Bill Wendling
49bfb12c46
Clean up the grammar for the landingpad instruction.
...
llvm-svn: 137042
2011-08-08 08:06:05 +00:00
Bill Wendling
a503fc0494
Fix typo found by John.
...
llvm-svn: 137040
2011-08-08 07:58:58 +00:00
Jay Foad
2755e07e1e
Reword.
...
llvm-svn: 136866
2011-08-04 10:43:43 +00:00
Bill Wendling
2d3138c112
Remove the LowerSetJmp pass. It wasn't used effectively by any of the targets.
...
This is some of my original LLVM code. *wipes tear*
llvm-svn: 136821
2011-08-03 22:18:20 +00:00
Bill Wendling
c5a136103b
Go back to the old definition. It's not clear that a 'resume' can be 'outlined' from the function with the landing pad for all platforms.
...
llvm-svn: 136799
2011-08-03 18:37:32 +00:00
Bill Wendling
0524b8d1f4
Explain how clauses are applied.
...
llvm-svn: 136790
2011-08-03 17:17:06 +00:00
Bill Wendling
bbcb7cde34
Add the documentation for the 'landingpad' instruction. Improve the 'invoke'
...
instruction's documentation to reference the landingpad and resume instructions.
llvm-svn: 136729
2011-08-02 21:52:38 +00:00
Chris Lattner
d3d65ab791
no need to count the terminators.
...
llvm-svn: 136718
2011-08-02 20:29:13 +00:00
Bill Wendling
6bc7caa334
Duncan's english is better than mine. :-)
...
llvm-svn: 136684
2011-08-02 06:39:13 +00:00
Bill Wendling
46ffaa95bd
Remove the LLVMBuildUnwind C API function.
...
The 'unwind' function is going away with the new EH rewrite. This is step 0 in
keeping front-ends from using it.
llvm-svn: 136683
2011-08-02 06:20:17 +00:00
John McCall
c26ea5a51a
I am the code owner for Clang's IR generation; this has been true
...
for awhile, but it's good to make this official.
Just to be clear, Doug and Ted "elected" me to this position.
Might as well add myself to the credits list while I'm at it.
llvm-svn: 136673
2011-08-02 01:38:19 +00:00
Eli Friedman
4bc9f3c174
Minor wording tweak for memory model.
...
llvm-svn: 136668
2011-08-02 01:15:34 +00:00
Roman Divacky
2fbb48ae20
Fix a typo.
...
llvm-svn: 136646
2011-08-01 20:38:27 +00:00
Bill Wendling
ae8b5ea838
Fix some validation errors.
...
llvm-svn: 136591
2011-07-31 06:47:33 +00:00
Bill Wendling
537603b35d
Fix some validation errors.
...
llvm-svn: 136590
2011-07-31 06:45:03 +00:00
Bill Wendling
f891bf8b30
Add the 'resume' instruction for the new EH rewrite.
...
This adds the 'resume' instruction class, IR parsing, and bitcode reading and
writing. The 'resume' instruction resumes propagation of an existing (in-flight)
exception whose unwinding was interrupted with a 'landingpad' instruction (to be
added later).
llvm-svn: 136589
2011-07-31 06:30:59 +00:00
Bill Wendling
ad088e6724
Revert r136253, r136263, r136269, r136313, r136325, r136326, r136329, r136338,
...
r136339, r136341, r136369, r136387, r136392, r136396, r136429, r136430, r136444,
r136445, r136446, r136253 pending review.
llvm-svn: 136556
2011-07-30 05:42:50 +00:00
Eli Friedman
c9a551ebed
LangRef and basic memory-representation/reading/writing for 'cmpxchg' and
...
'atomicrmw' instructions, which allow representing all the current atomic
rmw intrinsics.
The allowed operands for these instructions are heavily restricted at the
moment; we can probably loosen it a bit, but supporting general
first-class types (where it makes sense) might get a bit complicated,
given how SelectionDAG works.
As an initial cut, these operations do not support specifying an alignment,
but it would be possible to add if we think it's useful. Specifying an
alignment lower than the natural alignment would be essentially
impossible to support on anything other than x86, but specifying a greater
alignment would be possible. I can't think of any useful optimizations which
would use that information, but maybe someone else has ideas.
Optimizer/codegen support coming soon.
llvm-svn: 136404
2011-07-28 21:48:00 +00:00
Bill Wendling
6c923bb8d9
Merge the contents from exception-handling-rewrite to the mainline.
...
This adds the new instructions 'landingpad' and 'resume'.
llvm-svn: 136253
2011-07-27 20:18:04 +00:00
Devang Patel
ac0a1f6146
Update document listing DIVariable elements to reflect recent changes.
...
llvm-svn: 136228
2011-07-27 18:14:50 +00:00
Bill Wendling
f6a91cf41b
Fix a typo.
...
llvm-svn: 136133
2011-07-26 20:42:28 +00:00
Andrew Trick
e69a19569b
Updating stale documentation on regalloc modes.
...
llvm-svn: 136112
2011-07-26 18:31:49 +00:00
Bill Wendling
16b867416f
Clean up the HTML here a bit.
...
llvm-svn: 136074
2011-07-26 10:41:15 +00:00
Bill Wendling
dd7805a24d
Describe the reasoning for compact unwind in better terms. Thanks to Nick Kledzik for the description.
...
llvm-svn: 136064
2011-07-26 07:58:09 +00:00
Eli Friedman
fee02c6c13
Initial implementation of 'fence' instruction, the new C++0x-style replacement for llvm.memory.barrier.
...
This is just a LangRef entry and reading/writing/memory representation; optimizer+codegen support coming soon.
llvm-svn: 136009
2011-07-25 23:16:38 +00:00
Nick Lewycky
f6e3711674
80 columns.
...
llvm-svn: 135972
2011-07-25 21:13:23 +00:00
Bill Wendling
e2225058ac
Fix some typos.
...
llvm-svn: 135956
2011-07-25 20:25:03 +00:00