| #
335d399a |
| 12-Aug-2011 |
Chris Lattner <[email protected]> |
switch to use the new api for structtypes.
llvm-svn: 137480
|
| #
75ec09c0 |
| 12-Aug-2011 |
Chad Rosier <[email protected]> |
Whitespace and formatting. No functional change intended.
llvm-svn: 137463
|
| #
59b66883 |
| 09-Aug-2011 |
Eli Friedman <[email protected]> |
Representation of 'atomic load' and 'atomic store' in IR.
llvm-svn: 137170
|
| #
f891bf8b |
| 31-Jul-2011 |
Bill Wendling <[email protected]> |
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 existin
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
show more ...
|
| #
ad088e67 |
| 30-Jul-2011 |
Bill Wendling <[email protected]> |
Revert r136253, r136263, r136269, r136313, r136325, r136326, r136329, r136338, r136339, r136341, r136369, r136387, r136392, r136396, r136429, r136430, r136444, r136445, r136446, r136253 pending revie
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
show more ...
|
| #
c9a551eb |
| 28-Jul-2011 |
Eli Friedman <[email protected]> |
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 ins
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
show more ...
|
| #
6c923bb8 |
| 27-Jul-2011 |
Bill Wendling <[email protected]> |
Merge the contents from exception-handling-rewrite to the mainline.
This adds the new instructions 'landingpad' and 'resume'.
llvm-svn: 136253
|
| #
fee02c6c |
| 25-Jul-2011 |
Eli Friedman <[email protected]> |
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 supp
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
show more ...
|
| #
229907cd |
| 18-Jul-2011 |
Chris Lattner <[email protected]> |
land David Blaikie's patch to de-constify Type, with a few tweaks.
llvm-svn: 135375
|
| #
b1ed91f3 |
| 09-Jul-2011 |
Chris Lattner <[email protected]> |
Land the long talked about "type system rewrite" patch. This patch brings numerous advantages to LLVM. One way to look at it is through diffstat: 109 files changed, 3005 insertions(+), 5906 deleti
Land the long talked about "type system rewrite" patch. This patch brings numerous advantages to LLVM. One way to look at it is through diffstat: 109 files changed, 3005 insertions(+), 5906 deletions(-)
Removing almost 3K lines of code is a good thing. Other advantages include:
1. Value::getType() is a simple load that can be CSE'd, not a mutating union-find operation. 2. Types a uniqued and never move once created, defining away PATypeHolder. 3. Structs can be "named" now, and their name is part of the identity that uniques them. This means that the compiler doesn't merge them structurally which makes the IR much less confusing. 4. Now that there is no way to get a cycle in a type graph without a named struct type, "upreferences" go away. 5. Type refinement is completely gone, which should make LTO much MUCH faster in some common cases with C++ code. 6. Types are now generally immutable, so we can use "Type *" instead "const Type *" everywhere.
Downsides of this patch are that it removes some functions from the C API, so people using those will have to upgrade to (not yet added) new API. "LLVM 3.0" is the right time to do this.
There are still some cleanups pending after this, this patch is large enough as-is.
llvm-svn: 134829
show more ...
|
| #
372ad64b |
| 20-Jun-2011 |
Jay Foad <[email protected]> |
Make better use of the PHINode API.
Change various bits of code to make better use of the existing PHINode API, to insulate them from forthcoming changes in how PHINodes store their operands.
llvm-
Make better use of the PHINode API.
Change various bits of code to make better use of the existing PHINode API, to insulate them from forthcoming changes in how PHINodes store their operands.
llvm-svn: 133434
show more ...
|
| #
c4407080 |
| 17-Jun-2011 |
Chris Lattner <[email protected]> |
Drop the "2" suffix on some enums.
llvm-svn: 133274
|
| #
bb95d5e9 |
| 17-Jun-2011 |
Chris Lattner <[email protected]> |
missed a file.
llvm-svn: 133270
|
| #
cffdcae2 |
| 14-Jun-2011 |
Evan Cheng <[email protected]> |
Update BitcodeWriter to match recent Triple changes. rdar://9603399
llvm-svn: 132959
|
| #
6a11b64c |
| 03-Jun-2011 |
Chad Rosier <[email protected]> |
Revert name change from r132533. Lower case naming was intended per style guidelines.
llvm-svn: 132555
|
| #
7ae2638d |
| 03-Jun-2011 |
Chad Rosier <[email protected]> |
Whitespace and other cleanup. Functionallity unchanged.
llvm-svn: 132533
|
| #
64c92844 |
| 06-May-2011 |
Nick Lewycky <[email protected]> |
It's valid to take the blockaddress of a different function, so remove this assert in the bitcode writer. No change needed because the ValueEnumerator holds a whole-module numbering anyhow. Fixes PR9
It's valid to take the blockaddress of a different function, so remove this assert in the bitcode writer. No change needed because the ValueEnumerator holds a whole-module numbering anyhow. Fixes PR9857!
llvm-svn: 131016
show more ...
|
| #
35a9c3cd |
| 10-Apr-2011 |
Bill Wendling <[email protected]> |
Revert r129235 pending a vetting of the EH rewrite. --- Reverse-merging r129235 into '.': D test/Feature/bb_attrs.ll U include/llvm/BasicBlock.h U include/llvm/Bitcode/LLVMBitCodes.h U li
Revert r129235 pending a vetting of the EH rewrite. --- Reverse-merging r129235 into '.': D test/Feature/bb_attrs.ll U include/llvm/BasicBlock.h U include/llvm/Bitcode/LLVMBitCodes.h U lib/VMCore/AsmWriter.cpp U lib/VMCore/BasicBlock.cpp U lib/AsmParser/LLParser.cpp U lib/AsmParser/LLLexer.cpp U lib/AsmParser/LLToken.h U lib/Bitcode/Reader/BitcodeReader.cpp U lib/Bitcode/Writer/BitcodeWriter.cpp
llvm-svn: 129259
show more ...
|
| #
3d5450d8 |
| 10-Apr-2011 |
Bill Wendling <[email protected]> |
Beginning of the Great Exception Handling Rewrite.
* Add a "landing pad" attribute to the BasicBlock. * Modify the bitcode reader and writer to handle said attribute.
Later: The verifier will ensur
Beginning of the Great Exception Handling Rewrite.
* Add a "landing pad" attribute to the BasicBlock. * Modify the bitcode reader and writer to handle said attribute.
Later: The verifier will ensure that the landing pad attribute is used in the appropriate manner. I.e., not applied to the entry block, and applied only to basic blocks that are branched to via a `dispatch' instruction.
(This is a work-in-progress.)
llvm-svn: 129235
show more ...
|
|
Revision tags: llvmorg-2.9.0 |
|
| #
337a1b29 |
| 06-Apr-2011 |
Rafael Espindola <[email protected]> |
Do a topological sort of the types before writing them out.
This takes the linking of libxul on linux from 6m54.931s to 5m39.840s.
llvm-svn: 129009
|
|
Revision tags: llvmorg-2.9.0-rc3, llvmorg-2.9.0-rc2, llvmorg-2.9.0-rc1 |
|
| #
35315d06 |
| 06-Feb-2011 |
Chris Lattner <[email protected]> |
enhance vmcore to know that udiv's can be exact, and add a trivial instcombine xform to exercise this.
Nothing forms exact udivs yet though. This is progress on PR8862
llvm-svn: 124992
|
| #
45e6c195 |
| 08-Jan-2011 |
Rafael Espindola <[email protected]> |
First step in fixing PR8927:
Add a unnamed_addr bit to global variables and functions. This will be used to indicate that the address is not significant and therefore the constant or function can be
First step in fixing PR8927:
Add a unnamed_addr bit to global variables and functions. This will be used to indicate that the address is not significant and therefore the constant or function can be merged with others.
If an optimization pass can show that an address is not used, it can set this.
Examples of things that can have this set by the FE are globals created to hold string literals and C++ constructors.
Adding unnamed_addr to a non-const global should have no effect unless an optimization can transform that global into a constant.
Aliases are not allowed to have unnamed_addr since I couldn't figure out any use for it.
llvm-svn: 123063
show more ...
|
| #
0de20af7 |
| 19-Dec-2010 |
Nick Lewycky <[email protected]> |
Add missing standard headers. Patch by Joerg Sonnenberger!
llvm-svn: 122193
|
| #
6f3a90b5 |
| 29-Nov-2010 |
Chris Lattner <[email protected]> |
Generalize the darwin wrapper hack to work with generic macho triples as well as darwin ones.
llvm-svn: 120346
|
| #
447762da |
| 29-Nov-2010 |
Michael J. Spencer <[email protected]> |
Merge System into Support.
llvm-svn: 120298
|