Evan Cheng [Thu, 26 Apr 2007 01:14:14 +0000 (01:14 +0000)]
PR1348 test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36457
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 26 Apr 2007 01:09:28 +0000 (01:09 +0000)]
Fix for PR1348. If stack inc / dec amount is > 32-bits, issue a series of add / sub instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36456
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 26 Apr 2007 00:07:36 +0000 (00:07 +0000)]
New test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36455
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 25 Apr 2007 23:52:02 +0000 (23:52 +0000)]
Quiet a compiler warning about assignment in an if-then conditional.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36454
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 22:32:55 +0000 (22:32 +0000)]
&& no longer needed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36453
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Apr 2007 22:13:27 +0000 (22:13 +0000)]
Match MachineFunction::UsedPhysRegs changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36452
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Apr 2007 22:10:09 +0000 (22:10 +0000)]
Change UsedPhysRegs from array bool to BitVector to save some space. Setting / getting its states now go through MachineFunction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36451
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 25 Apr 2007 21:58:17 +0000 (21:58 +0000)]
Testcase for codegen bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36450
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Apr 2007 21:34:08 +0000 (21:34 +0000)]
Clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36449
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 25 Apr 2007 21:31:48 +0000 (21:31 +0000)]
Add SSSE3 as a feature of Core2. Add MMX registers to the list of registers
clobbered by a call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36448
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Apr 2007 19:34:00 +0000 (19:34 +0000)]
Data structure change to improve compile time (especially in debug mode).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36447
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 25 Apr 2007 18:41:11 +0000 (18:41 +0000)]
Mem2Reg does not need TargetData.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36446
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Apr 2007 18:33:21 +0000 (18:33 +0000)]
This was lefted out. Fixed sumarray-dbl.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36445
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 25 Apr 2007 18:32:35 +0000 (18:32 +0000)]
Mem2Reg does not need TargetData.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36444
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 25 Apr 2007 18:07:40 +0000 (18:07 +0000)]
Add missed semicolon. Resotre compatibility with older bisons
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36443
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 17:23:53 +0000 (17:23 +0000)]
do the multiplication as signed, so that 2*-2 == -4 instead of
4294967292
when promoted to 64-bits
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36442
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 25 Apr 2007 17:15:20 +0000 (17:15 +0000)]
Remove unused function argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36441
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Wed, 25 Apr 2007 17:13:18 +0000 (17:13 +0000)]
Note new header file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36440
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 25 Apr 2007 16:42:39 +0000 (16:42 +0000)]
Add missed file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36439
91177308-0d34-0410-b5e6-
96231b3b80d8
Lauro Ramos Venancio [Wed, 25 Apr 2007 14:50:40 +0000 (14:50 +0000)]
remember to emit weak reference in one more case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36438
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 25 Apr 2007 14:29:12 +0000 (14:29 +0000)]
Regenerate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36437
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 25 Apr 2007 14:27:10 +0000 (14:27 +0000)]
Implement aliases. This fixes PR1017 and it's dependent bugs. CFE part
will follow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36435
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Apr 2007 07:30:23 +0000 (07:30 +0000)]
Fix for PR1306.
- A register def / use now implicitly affects sub-register liveness but does
not affect liveness information of super-registers.
- Def of a larger register (if followed by a use later) is treated as
read/mod/write of a smaller register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36434
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Apr 2007 07:24:50 +0000 (07:24 +0000)]
Test if a register is sub- or super-register of another.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36433
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Apr 2007 07:24:13 +0000 (07:24 +0000)]
Minor speed tweak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36432
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Apr 2007 07:18:20 +0000 (07:18 +0000)]
Clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36431
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Apr 2007 07:12:14 +0000 (07:12 +0000)]
Relex assertions to account for additional implicit def / use operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36430
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 06:40:51 +0000 (06:40 +0000)]
If an alloca only has two types of uses: 1) reads 2) a memcpy/memmove that
copies from a constant global, then we can change the reads to read from the
global instead of from the alloca. This eliminates the alloca and the memcpy,
and promotes secondary optimizations (because the loads are now loads from
a constant global).
This is important for a common C idiom:
void foo() {
int A[] = {1,2,3,4,5,6,7,8,9...};
... only reads of A ...
}
For some reason, people forget to mark the array static or const.
This triggers on these multisource benchmarks:
JM/ldecode: block_pos, [3 x [4 x [4 x i32]]]
FreeBench/mason: m, [18 x i32], inlined 4 times
MiBench/office-stringsearch: search_strings, [1332 x i8*]
MiBench/office-stringsearch: find_strings, [1333 x i8*]
Prolangs-C++/city: dirs, [9 x i8*], inlined 4 places
and these spec benchmarks:
177.mesa: message, [8 x [32 x i8]]
186.crafty: bias_rl45, [64 x i32]
186.crafty: diag_sq, [64 x i32]
186.crafty: empty, [9 x i8]
186.crafty: xlate, [15 x i8]
186.crafty: status, [13 x i8]
186.crafty: bdinfo, [25 x i8]
445.gobmk: routines, [16 x i8*]
458.sjeng: piece_rep, [14 x i8*]
458.sjeng: t, [13 x i32], inlined 4 places.
464.h264ref: block8x8_idx, [3 x [4 x [4 x i32]]]
464.h264ref: block_pos, [3 x [4 x [4 x i32]]]
464.h264ref: j_off_tab, [12 x i32]
This implements Transforms/ScalarRepl/memcpy-from-global.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36429
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 06:29:34 +0000 (06:29 +0000)]
new testcase, should be able to eliminate the alloca and memcpy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36428
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 05:49:09 +0000 (05:49 +0000)]
simplify some code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36427
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 05:02:56 +0000 (05:02 +0000)]
refactor the SROA code out into its own method, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36426
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 04:30:24 +0000 (04:30 +0000)]
support for >4G stack frames
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36425
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 04:29:06 +0000 (04:29 +0000)]
support for >4G frames
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36424
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 04:25:10 +0000 (04:25 +0000)]
support >4G stack frames
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36423
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 04:20:54 +0000 (04:20 +0000)]
support > 4G stack objects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36422
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 25 Apr 2007 04:18:54 +0000 (04:18 +0000)]
Undo my previous changes. Since my approach to this problem is being revised,
this approach is no longer appropriate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36421
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 04:08:28 +0000 (04:08 +0000)]
allow support for 64-bit stack objects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36420
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 04:07:31 +0000 (04:07 +0000)]
allow 64-bit stack objects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36419
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 01:51:33 +0000 (01:51 +0000)]
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36418
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 25 Apr 2007 00:37:04 +0000 (00:37 +0000)]
Fix
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-
20070423/048376.html
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36417
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 25 Apr 2007 00:35:37 +0000 (00:35 +0000)]
New test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36416
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 00:26:05 +0000 (00:26 +0000)]
testcase for PR1352
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36415
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 25 Apr 2007 00:14:49 +0000 (00:14 +0000)]
fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36414
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 00:00:45 +0000 (00:00 +0000)]
Be more careful about folding op(x, undef) when we have vector operands.
This fixes CodeGen/X86/2007-04-24-VectorCrash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36413
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Apr 2007 00:00:12 +0000 (00:00 +0000)]
new testcase that crashes llc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36412
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 24 Apr 2007 23:48:30 +0000 (23:48 +0000)]
Add me
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36411
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Apr 2007 22:51:03 +0000 (22:51 +0000)]
Fix PR1351 and CodeGen/PowerPC/2007-04-24-InlineAsm-I-Modifier.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36410
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Apr 2007 22:49:57 +0000 (22:49 +0000)]
testcase for PR1351
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36409
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 24 Apr 2007 22:28:30 +0000 (22:28 +0000)]
Testcases for MMX.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36408
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 24 Apr 2007 21:20:03 +0000 (21:20 +0000)]
Update.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36407
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 24 Apr 2007 21:19:14 +0000 (21:19 +0000)]
Add the PADDQ to the list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36406
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 24 Apr 2007 21:18:37 +0000 (21:18 +0000)]
Add the final MMX instructions. Correct a few wrong patterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36405
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 24 Apr 2007 21:17:46 +0000 (21:17 +0000)]
Remove some invalid instructions from this check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36404
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 24 Apr 2007 21:16:55 +0000 (21:16 +0000)]
Support for the special case of a vector with the canonical form:
vector_shuffle v1, v2, <2, 6, 3, 7>
I.e.
vector_shuffle v, undef, <2, 2, 3, 3>
MMX only has a shuffle for v4i16 vectors. It needs to use the unpackh for
this type of operation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36403
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 24 Apr 2007 21:13:23 +0000 (21:13 +0000)]
Assertion when using a 1-element vector for an add operation. Get the
real vector type in this case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36402
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 24 Apr 2007 21:05:52 +0000 (21:05 +0000)]
New test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36401
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 24 Apr 2007 19:24:39 +0000 (19:24 +0000)]
New test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36400
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 24 Apr 2007 18:49:33 +0000 (18:49 +0000)]
Add myself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36399
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Apr 2007 18:15:21 +0000 (18:15 +0000)]
ensure that every error return sets a message (and goes through Error, for
easy breakpointing).
Fix bugs reading constantexpr geps. We now can disassemble kc++ global
initializers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36398
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Apr 2007 17:22:05 +0000 (17:22 +0000)]
fix memory leak
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36397
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Apr 2007 17:20:52 +0000 (17:20 +0000)]
fix a memory leak
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36396
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Apr 2007 15:54:42 +0000 (15:54 +0000)]
comentate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36395
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Apr 2007 07:07:11 +0000 (07:07 +0000)]
implement reading and writing of constant exprs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36394
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Apr 2007 07:03:08 +0000 (07:03 +0000)]
add records for constant exprs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36393
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 24 Apr 2007 06:40:39 +0000 (06:40 +0000)]
Rollback some changes that adversely affected performance. I'm currently rethinking
my approach to this, so hopefully I'll find a way to do this without making this slower.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36392
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Apr 2007 05:48:56 +0000 (05:48 +0000)]
implement support for reading aggregate constants, including handling forward
constant references, etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36391
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Apr 2007 04:04:35 +0000 (04:04 +0000)]
add supprot for FP constants, wide integers, and fix the encoding of MININT
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36390
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Apr 2007 03:30:34 +0000 (03:30 +0000)]
read basic constants: null, undef, integers <= 64bits
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36389
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Apr 2007 03:29:47 +0000 (03:29 +0000)]
fix off-by-one computing size for section abbrevs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36388
91177308-0d34-0410-b5e6-
96231b3b80d8
Scott Michel [Tue, 24 Apr 2007 01:24:20 +0000 (01:24 +0000)]
Use '-1U' where '-1UL' is obvious overkill, eliminating gcc warnings about
tests always being true in the process.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36387
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Apr 2007 00:21:45 +0000 (00:21 +0000)]
move check to the right place :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36386
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Apr 2007 00:18:21 +0000 (00:18 +0000)]
track global inits
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36385
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Apr 2007 00:16:04 +0000 (00:16 +0000)]
Emit module-level constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36384
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 23 Apr 2007 23:33:31 +0000 (23:33 +0000)]
modify per review commentary
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36383
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Apr 2007 23:29:59 +0000 (23:29 +0000)]
add codes for constants table
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36382
91177308-0d34-0410-b5e6-
96231b3b80d8
Christopher Lamb [Mon, 23 Apr 2007 22:50:40 +0000 (22:50 +0000)]
Fix bug in isFloatingPoint()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36381
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 23 Apr 2007 22:42:03 +0000 (22:42 +0000)]
Fix
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-
20070423/048333.html
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36380
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 23 Apr 2007 22:39:53 +0000 (22:39 +0000)]
New test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36379
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Apr 2007 21:26:05 +0000 (21:26 +0000)]
Read global symtab
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36378
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Apr 2007 21:23:41 +0000 (21:23 +0000)]
fix off-by one
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36377
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 23 Apr 2007 21:21:53 +0000 (21:21 +0000)]
Dan is right, using "string first" would produce false positives. So,
devolve the check to a comparison against each component in the string.
Fortunately there isn't many of them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36376
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Apr 2007 20:58:14 +0000 (20:58 +0000)]
add a missing operator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36375
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Apr 2007 20:35:01 +0000 (20:35 +0000)]
write out the symtab for globals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36374
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Apr 2007 20:34:46 +0000 (20:34 +0000)]
Fix a bug in bitstream writer handling abbrevs, add value symtab
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36373
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 23 Apr 2007 20:09:04 +0000 (20:09 +0000)]
Make Thumb funcs containing islands 4-byte aligned. Fix bugs maintaining
BBOffsets and BBSizes when adjusting conditional branches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36372
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 23 Apr 2007 20:07:25 +0000 (20:07 +0000)]
add Align field, and use when generating function alignment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36371
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 23 Apr 2007 20:04:35 +0000 (20:04 +0000)]
add isThumb (unused as yet)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36370
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 23 Apr 2007 20:00:17 +0000 (20:00 +0000)]
Fix generic getInlineAsmLength
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36369
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 23 Apr 2007 19:58:54 +0000 (19:58 +0000)]
make EmitAlignment work the way Chris says it should
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36368
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Apr 2007 18:58:34 +0000 (18:58 +0000)]
implement reading of abbrevs, and writing of abbreviated global varrs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36367
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Apr 2007 18:57:58 +0000 (18:57 +0000)]
implement reading of abbrevs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36366
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Apr 2007 18:57:32 +0000 (18:57 +0000)]
minor cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36365
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Apr 2007 17:43:52 +0000 (17:43 +0000)]
finish implementation of basic abbrev writing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36364
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Apr 2007 16:04:05 +0000 (16:04 +0000)]
first part of implementation of abbrevs. The writer isn't fully there yet and the
reader doesn't handle them at all yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36363
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Mon, 23 Apr 2007 13:55:05 +0000 (13:55 +0000)]
Unbreak VC++ build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36362
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 23 Apr 2007 07:22:51 +0000 (07:22 +0000)]
Cygwin doesn't have the RSS_LIMIT for get/setrlimit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36361
91177308-0d34-0410-b5e6-
96231b3b80d8
Lauro Ramos Venancio [Mon, 23 Apr 2007 01:29:35 +0000 (01:29 +0000)]
Add TLS tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36360
91177308-0d34-0410-b5e6-
96231b3b80d8
Lauro Ramos Venancio [Mon, 23 Apr 2007 01:28:10 +0000 (01:28 +0000)]
X86 TLS: optimize the implementation of "local exec" model.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36359
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Apr 2007 01:01:37 +0000 (01:01 +0000)]
promote LLVMBitCodes to be a public header
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36358
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Apr 2007 01:01:15 +0000 (01:01 +0000)]
promote this to being a public header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36357
91177308-0d34-0410-b5e6-
96231b3b80d8