Gordon Henriksen [Wed, 12 Dec 2007 01:04:30 +0000 (01:04 +0000)]
Add (very basic) bindings for ModuleProvider.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44899
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 12 Dec 2007 00:51:06 +0000 (00:51 +0000)]
Bug fix. Only safe to perform extension uses optimization if the source of extension is also defined in the same BB as the extension.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44896
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Berlin [Wed, 12 Dec 2007 00:37:04 +0000 (00:37 +0000)]
Changes from Curtis Dunham implementing lazy cycle detection algorithm.
Changes from me implementing different way of representing points-to anything.
Changes from me that improve slightly on LCD.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44895
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 11 Dec 2007 23:36:57 +0000 (23:36 +0000)]
If deleting a reload instruction due to reuse (value is available in register R and reload is targeting R), make sure to invalidate the kill information of the last kill.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44894
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 11 Dec 2007 23:27:51 +0000 (23:27 +0000)]
Need to grow the indexed map. Added debug statements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44892
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 11 Dec 2007 22:22:22 +0000 (22:22 +0000)]
Simplify slightly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44881
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 11 Dec 2007 21:55:38 +0000 (21:55 +0000)]
Remove Trie::Edge class. Now edge labels are stored into nodes itself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44880
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 11 Dec 2007 20:12:11 +0000 (20:12 +0000)]
More progress on StrongPHIElimination. Now we actually USE the DomForest!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44877
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 11 Dec 2007 19:40:06 +0000 (19:40 +0000)]
Blark! How in the world did this work without this?!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44874
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 11 Dec 2007 19:17:04 +0000 (19:17 +0000)]
- Update the virtual reg to machine instruction map when hoisting.
- Fix subtle bug when creating initially creating this map.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44873
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 11 Dec 2007 18:45:11 +0000 (18:45 +0000)]
Checking for "zero operands" during the "CanHoistInst()" method isn't necessary
because those with side effects will be caught by other checks in here.
Also, simplify the check for a BB in a sub loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44871
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Tue, 11 Dec 2007 18:06:14 +0000 (18:06 +0000)]
Allow the JIT to encode MMX instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44869
91177308-0d34-0410-b5e6-
96231b3b80d8
Wojciech Matyjewicz [Tue, 11 Dec 2007 17:46:25 +0000 (17:46 +0000)]
Use correct member access operator.
(my test commit as well)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44868
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 11 Dec 2007 15:55:52 +0000 (15:55 +0000)]
Rename these tests to use the appropriate suffixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44867
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 11 Dec 2007 15:50:23 +0000 (15:50 +0000)]
Use not instead of ignore when an exit status is expected to always
be non-zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44866
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 11 Dec 2007 15:41:11 +0000 (15:41 +0000)]
Don't redirect stderr when it isn't needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44865
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 11 Dec 2007 12:20:47 +0000 (12:20 +0000)]
Fix compilation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44864
91177308-0d34-0410-b5e6-
96231b3b80d8
Christopher Lamb [Tue, 11 Dec 2007 09:32:07 +0000 (09:32 +0000)]
Update credits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44861
91177308-0d34-0410-b5e6-
96231b3b80d8
Christopher Lamb [Tue, 11 Dec 2007 09:31:00 +0000 (09:31 +0000)]
Add information on address space qualifiers for pointer types and global
declarations to the LangRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44860
91177308-0d34-0410-b5e6-
96231b3b80d8
Christopher Lamb [Tue, 11 Dec 2007 09:02:08 +0000 (09:02 +0000)]
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44859
91177308-0d34-0410-b5e6-
96231b3b80d8
Christopher Lamb [Tue, 11 Dec 2007 08:59:05 +0000 (08:59 +0000)]
Implement address space attribute for LLVM pointer types. Address spaces are
regions of memory that have a target specific relationship, as described in the
Embedded C Technical Report.
This also implements the 2007-12-11-AddressSpaces test,
which demonstrates how address space attributes can be used in LLVM IR.
In addition, this patch changes the bitcode signature for stores (in a backwards
compatible manner), such that the pointer type, rather than the pointee type, is
encoded. This permits type information in the pointer (e.g. address space) to be
preserved for stores.
LangRef updates are forthcoming.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44858
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Dec 2007 07:49:37 +0000 (07:49 +0000)]
Teach VMCore to constant fold shufflevectors with constant operands.
This allows us to compile:
#include <emmintrin.h>
typedef __m128i VSInt16;
typedef short vSInt16 __attribute__ ((__vector_size__ (16)));
VSInt16 t3() {
return (VSInt16)((vSInt16)_mm_set1_epi16(6518));
}
into:
_t3:
movaps LCPI1_0, %xmm0
ret
instead of:
_t3:
movl $6518, %eax
movd %eax, %xmm0
pextrw $0, %xmm0, %eax
xorps %xmm0, %xmm0
pinsrw $0, %eax, %xmm0
punpcklwd %xmm0, %xmm0
pshufd $0, %xmm0, %xmm0
ret
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44856
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Dec 2007 07:29:44 +0000 (07:29 +0000)]
Implement constant folding if vector<->vector bitcasts where the number
of source/dest elements changes. This implements
test/Transforms/InstCombine/bitcast-vector-fold.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44855
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 11 Dec 2007 06:53:58 +0000 (06:53 +0000)]
Don't have APInt.cpp depend upon DerivedTypes.h. This helps with splitting the
Support libraries separately into their own module.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44852
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 11 Dec 2007 06:53:44 +0000 (06:53 +0000)]
Add first and really dirty version of generic Trie structure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44851
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Dec 2007 06:07:39 +0000 (06:07 +0000)]
significantly simplify some code, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44850
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Dec 2007 05:55:02 +0000 (05:55 +0000)]
refactor some code, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44849
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 11 Dec 2007 02:09:15 +0000 (02:09 +0000)]
Switch over to MachineLoopInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44838
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 11 Dec 2007 02:08:35 +0000 (02:08 +0000)]
Pretty print shuffle mask operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44837
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 11 Dec 2007 01:46:18 +0000 (01:46 +0000)]
- Improved v8i16 shuffle lowering. It now uses pshuflw and pshufhw as much as
possible before resorting to pextrw and pinsrw.
- Better codegen for v4i32 shuffles masquerading as v8i16 or v16i8 shuffles.
- Improves (i16 extract_vector_element 0) codegen by recognizing
(i32 extract_vector_element 0) does not require a pextrw.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44836
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Tue, 11 Dec 2007 01:41:33 +0000 (01:41 +0000)]
x86 doesn't actually want to custom lower v3i32
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44835
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Tue, 11 Dec 2007 00:30:17 +0000 (00:30 +0000)]
CollectorMetadata and Collector are rejiggered to get along with
per-function collector model. Collector is now the factory for
CollectorMetadata, so the latter may be subclassed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44827
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Tue, 11 Dec 2007 00:29:16 +0000 (00:29 +0000)]
Project file maintenance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44826
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Dec 2007 00:28:59 +0000 (00:28 +0000)]
Move TargetData::hostIsLittleEndian out of line, which means we
don't have to #include config.h in it. #including config.h breaks
other projects that have their own autoconf stuff and try to #include
the llvm headers. One obscure example is llvm-gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44825
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Tue, 11 Dec 2007 00:20:48 +0000 (00:20 +0000)]
Adding Ocaml bindings for the bitreader as requested by Sarah
Thompson. Usage should be something like this:
open Llvm
open Llvm_bitreader
match read_bitcode_file fn with
| Bitreader_failure msg ->
prerr_endline msg
| Bitreader_success m ->
...;
dispose_module m
Compile with: ocamlc llvm.cma llvm_bitreader.cma
ocamlopt llvm.cmxa llvm_bitreader.cmxa
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44824
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Mon, 10 Dec 2007 23:10:20 +0000 (23:10 +0000)]
Hey, English is not my native language :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44820
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Mon, 10 Dec 2007 23:08:35 +0000 (23:08 +0000)]
Clarify the need of CFI() stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44819
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Mon, 10 Dec 2007 23:04:38 +0000 (23:04 +0000)]
Provide convenient way to disable CFI stuff for old/broken assemblers.
Use it for Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44818
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 22:53:04 +0000 (22:53 +0000)]
Fix PR1850 by removing an unsafe transformation from VMCore/ConstantFold.cpp.
Reimplement the xform in Analysis/ConstantFolding.cpp where we can use
targetdata to validate that it is safe. While I'm in there, fix some const
correctness issues and generalize the interface to the "operand folder".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44817
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 10 Dec 2007 22:28:35 +0000 (22:28 +0000)]
Added two bounds checks to the BitVector class to detect
out-of-bounds bit accesses. The checks are only performed
in a Debug build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44815
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 22:18:53 +0000 (22:18 +0000)]
split isBinaryOp into a static and member version.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44814
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Mon, 10 Dec 2007 20:26:29 +0000 (20:26 +0000)]
Fix some wording.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44810
91177308-0d34-0410-b5e6-
96231b3b80d8
Chuck Rose III [Mon, 10 Dec 2007 19:31:09 +0000 (19:31 +0000)]
Add StringPool + new CodeGen files to win32 build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44805
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 19:10:18 +0000 (19:10 +0000)]
Disable cfi directives for now, darwin does't support them.
These should probably be something like:
CFI(".cfi_def_cfa_offset 16\n")
where CFI is defined to a noop on darwin and other platforms
that don't support those directives.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44803
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 10 Dec 2007 19:09:40 +0000 (19:09 +0000)]
Make PruneEH update the nounwind/noreturn attributes
on functions as it calculates them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44802
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 10 Dec 2007 17:43:13 +0000 (17:43 +0000)]
Fix PR1836: in the interpreter, read and write apints
using the minimum possible number of bytes. For little
endian targets run on little endian machines, apints are
stored in memory from LSB to MSB as before. For big endian
targets on big endian machines they are stored from MSB to
LSB which wasn't always the case before (if the target and
host endianness doesn't match values are stored according
to the host's endianness). Doing this requires knowing the
endianness of the host, which is determined when configuring -
thanks go to Anton for this. Only having access to little
endian machines I was unable to properly test the big endian
part, which is also the most complicated...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44796
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Mon, 10 Dec 2007 15:27:07 +0000 (15:27 +0000)]
And finally annotate X86-64 version of callback.
All bad stuff from SSE version is implicitely inherited :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44794
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Mon, 10 Dec 2007 15:13:55 +0000 (15:13 +0000)]
Provide annotation for SSE version of callback. It's even more
broken, because doesn't mark xmm regs properly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44793
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Mon, 10 Dec 2007 14:54:42 +0000 (14:54 +0000)]
Annotate JIT callback function with call frame infromation.
This will allow us (theoretically) to unwind through JITer.
The code wasn't verified, so I'm pretty sure offsets are wrong :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44792
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 10 Dec 2007 14:43:10 +0000 (14:43 +0000)]
It looks like this has been broken for some time -
get it to compile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44791
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 10 Dec 2007 08:07:09 +0000 (08:07 +0000)]
A little more progress on StrongPHIElimination, now that I have a better sense of
how the CodeGen machinery works.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44786
91177308-0d34-0410-b5e6-
96231b3b80d8
Christopher Lamb [Mon, 10 Dec 2007 07:24:06 +0000 (07:24 +0000)]
Improve branch folding by recgonizing that explict successor relationships impact the value of fall-through choices.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44785
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Mon, 10 Dec 2007 03:35:18 +0000 (03:35 +0000)]
Delete the CollectorNamePool if it should become empty.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44775
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Mon, 10 Dec 2007 03:30:21 +0000 (03:30 +0000)]
Fix a typo spotted by Nick Lewycky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44774
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Mon, 10 Dec 2007 03:18:06 +0000 (03:18 +0000)]
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44769
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Mon, 10 Dec 2007 02:14:30 +0000 (02:14 +0000)]
Reverting dtor devirtualization patch.
_sabre_: it has a major problem: by the time ~Value is run, all of the "parts" of the derived classes have been destroyed
_sabre_: the vtable lives to fight another day
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44760
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 01:51:38 +0000 (01:51 +0000)]
remove some dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44757
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 01:51:22 +0000 (01:51 +0000)]
fix some warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44756
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 01:48:29 +0000 (01:48 +0000)]
Fix a big problem in the recent dtor refactoring work, now it passes 2007-11-19-InlineAsm.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44755
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Sun, 9 Dec 2007 22:46:10 +0000 (22:46 +0000)]
Devirtualizing Value destructor (PR889). Patch by Pawel Kunio!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44747
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 9 Dec 2007 17:56:34 +0000 (17:56 +0000)]
Duncan points out that the subtraction is unneeded since hte code
knows the vector is not pow2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44740
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Sun, 9 Dec 2007 15:03:01 +0000 (15:03 +0000)]
Upgrading this test to 2.0 .ll syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44738
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 9 Dec 2007 07:35:13 +0000 (07:35 +0000)]
Fix PR1782, patch by Wojtek Matyjewicz!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44733
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Sun, 9 Dec 2007 01:12:08 +0000 (01:12 +0000)]
Fix a very silly typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44732
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 9 Dec 2007 00:27:38 +0000 (00:27 +0000)]
Fix accidental commit by Bill.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44729
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 9 Dec 2007 00:06:19 +0000 (00:06 +0000)]
Add support for splitting the operand of a return instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44728
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sat, 8 Dec 2007 23:58:46 +0000 (23:58 +0000)]
Reverting 44702. It wasn't correct to rename them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44727
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 23:58:27 +0000 (23:58 +0000)]
add many new cases to SplitResult. SplitResult now handles all the cases that LegalizeDAG does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44726
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 23:24:26 +0000 (23:24 +0000)]
Implement splitting support for store, allowing us to compile:
%f8 = type <8 x float>
define void @test_f8(%f8* %P, %f8* %Q, %f8* %S) {
%p = load %f8* %P ; <%f8> [#uses=1]
%q = load %f8* %Q ; <%f8> [#uses=1]
%R = add %f8 %p, %q ; <%f8> [#uses=1]
store %f8 %R, %f8* %S
ret void
}
into:
_test_f8:
movaps 16(%rdi), %xmm0
addps 16(%rsi), %xmm0
movaps (%rdi), %xmm1
addps (%rsi), %xmm1
movaps %xmm0, 16(%rdx)
movaps %xmm1, (%rdx)
ret
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44725
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 23:08:49 +0000 (23:08 +0000)]
implement vector splitting of load, undef, and binops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44724
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 22:40:18 +0000 (22:40 +0000)]
implement some methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44723
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 22:37:41 +0000 (22:37 +0000)]
add scaffolding for splitting of vectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44722
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Sat, 8 Dec 2007 22:29:19 +0000 (22:29 +0000)]
Project cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44721
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 22:17:33 +0000 (22:17 +0000)]
Remove dead file and directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44720
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 21:59:32 +0000 (21:59 +0000)]
reorganize header to separate into functional blocks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44719
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 20:30:28 +0000 (20:30 +0000)]
split scalarization out to its own file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44718
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 20:27:32 +0000 (20:27 +0000)]
Split expansion out into its own file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44717
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 20:24:38 +0000 (20:24 +0000)]
Split promotion support out to its own file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44716
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 20:17:13 +0000 (20:17 +0000)]
Rename LegalizeDAGTypes.cpp -> LegalizeTypes.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44715
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 20:16:06 +0000 (20:16 +0000)]
Split the class definition of DAGTypeLegalizer out into a header.
Leave it visibility hidden, but not in an anon namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44714
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Sat, 8 Dec 2007 20:10:40 +0000 (20:10 +0000)]
Incorporating review feedback from Reid.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44713
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 19:06:21 +0000 (19:06 +0000)]
remove dead #include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44711
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 19:03:30 +0000 (19:03 +0000)]
add #include
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44710
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 19:01:44 +0000 (19:01 +0000)]
eliminate dependency on Bitcode headers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44709
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 19:00:38 +0000 (19:00 +0000)]
remove dead #include, APInt.h already has the needed forward decls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44708
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 19:00:03 +0000 (19:00 +0000)]
proper #include order.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44707
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Sat, 8 Dec 2007 17:53:01 +0000 (17:53 +0000)]
Ignoring generated files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44706
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Sat, 8 Dec 2007 17:07:47 +0000 (17:07 +0000)]
Adding a StringPool data structure, which GC will use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44705
91177308-0d34-0410-b5e6-
96231b3b80d8
Gordon Henriksen [Sat, 8 Dec 2007 16:55:43 +0000 (16:55 +0000)]
Fix bug in constructing Ocaml option types in the bindings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44704
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 07:22:58 +0000 (07:22 +0000)]
aesthetic changes, no functionality change. Evan, it's not clear
what 'Available' is, please add a comment near it and rename it
if appropriate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44703
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sat, 8 Dec 2007 07:17:56 +0000 (07:17 +0000)]
Renaming:
isTriviallyReMaterializable -> hasNoSideEffects
isReallyTriviallyReMaterializable -> isTriviallyReMaterializable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44702
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 07:04:58 +0000 (07:04 +0000)]
Fix a significant code quality regression I introduced on PPC64 quite
a while ago. We now produce:
_foo:
mflr r0
std r0, 16(r1)
ld r2, 16(r1)
std r2, 0(r3)
ld r0, 16(r1)
mtlr r0
blr
instead of:
_foo:
mflr r0
std r0, 16(r1)
lis r0, 0
ori r0, r0, 16
ldx r2, r1, r0
std r2, 0(r3)
ld r0, 16(r1)
mtlr r0
blr
for:
void foo(void **X) {
*X = __builtin_return_address(0);
}
on ppc64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44701
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 06:59:59 +0000 (06:59 +0000)]
implement __builtin_return_addr(0) on ppc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44700
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 06:39:11 +0000 (06:39 +0000)]
refactor some code to avoid overloading the name 'usesLR' in
different places to mean different things. Document what the
one in PPCFunctionInfo means and when it is valid.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44699
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2007 04:37:52 +0000 (04:37 +0000)]
Implement correct isa<UnaryInstruction>, problem reported by "ST".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44697
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sat, 8 Dec 2007 01:47:01 +0000 (01:47 +0000)]
Incorporated comments from Evan and Chris:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-
20071203/056043.html
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-
20071203/056048.html
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44696
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Sat, 8 Dec 2007 01:37:09 +0000 (01:37 +0000)]
Fix several cache coherence bugs in MemDep/GVN that were found. Also add some (disabled) debugging code
to make such problems easier to diagnose in the future, written by Duncan Sands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44695
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 8 Dec 2007 01:01:07 +0000 (01:01 +0000)]
Doh
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44694
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 8 Dec 2007 01:00:31 +0000 (01:00 +0000)]
Fix a compilation warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44692
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 8 Dec 2007 01:00:21 +0000 (01:00 +0000)]
Fix a compilation warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44691
91177308-0d34-0410-b5e6-
96231b3b80d8