Chris Lattner [Wed, 29 Jul 2009 06:33:53 +0000 (06:33 +0000)]
more syntactic cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77442
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Jul 2009 06:29:53 +0000 (06:29 +0000)]
minor smallvector cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77441
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Jul 2009 06:19:14 +0000 (06:19 +0000)]
link to a newer preso
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77440
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 29 Jul 2009 06:14:52 +0000 (06:14 +0000)]
Just discard the output, no need to turn it back into text.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77439
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Jul 2009 05:48:09 +0000 (05:48 +0000)]
whitespace cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77438
91177308-0d34-0410-b5e6-
96231b3b80d8
Andreas Bolka [Wed, 29 Jul 2009 05:35:53 +0000 (05:35 +0000)]
Skeleton for pairwise subscript testing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77437
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Jul 2009 05:32:07 +0000 (05:32 +0000)]
don't dump .bc file to stdout, and simplify this to a trivial testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77436
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Jul 2009 05:25:42 +0000 (05:25 +0000)]
mingw uses .data and .text, not _data and _text.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77435
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Jul 2009 05:20:33 +0000 (05:20 +0000)]
fix PR4584 with a trivial patch now that the pieces are in place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77434
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 29 Jul 2009 05:17:50 +0000 (05:17 +0000)]
Bulk erasing instructions without RAUWing them is unsafe. Instead, break them
into a new BB that has no predecessors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77433
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Jul 2009 05:09:30 +0000 (05:09 +0000)]
pass the mangler down into the various SectionForGlobal methods.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77432
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 29 Jul 2009 05:06:11 +0000 (05:06 +0000)]
Revert AsmWriterEmitter.cpp to 74742. The recent changes are causing serious compile time regression.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77431
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Jul 2009 04:55:08 +0000 (04:55 +0000)]
constant prop a utostr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77430
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Jul 2009 04:54:38 +0000 (04:54 +0000)]
remove some completely wrong code. 1 is never < 16. It turns out that GCC appears to put strings of any length into the ELF cstring equivalent, so just rip out the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77429
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 29 Jul 2009 03:04:22 +0000 (03:04 +0000)]
Revert r77397, it causes significant regressions in llc performance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77425
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 29 Jul 2009 02:18:14 +0000 (02:18 +0000)]
Optimize Thumb2 jumptable to use tbb / tbh when all the offsets fit in byte / halfword.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77422
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 29 Jul 2009 01:01:19 +0000 (01:01 +0000)]
Fix comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77415
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 29 Jul 2009 00:59:34 +0000 (00:59 +0000)]
Change the "PreferredEHDataFormat" from "absptr" if we're on a Darwin system >
Leopard.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77414
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 29 Jul 2009 00:51:15 +0000 (00:51 +0000)]
Add a couple more tests for the ptest intrinsics to make sure we're
grabbing them all correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77413
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 29 Jul 2009 00:50:05 +0000 (00:50 +0000)]
Move comment to above method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77412
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 29 Jul 2009 00:34:02 +0000 (00:34 +0000)]
Parse named metadata.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77410
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 29 Jul 2009 00:33:07 +0000 (00:33 +0000)]
Add NamedMDNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77409
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 29 Jul 2009 00:31:35 +0000 (00:31 +0000)]
- Temporarily unbreak the build by forcing the TType "absptr", which isn't
correct. But what are you going to do? I'll fix this in the future.
- Move another large loop into its own method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77408
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 29 Jul 2009 00:28:05 +0000 (00:28 +0000)]
Add support for gcc __builtin_ia32_ptest{z,c,nzc} intrinsics. Lower
to ptest instruction plus setcc. Revamp ptest instruction. Add test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77407
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 29 Jul 2009 00:02:58 +0000 (00:02 +0000)]
Remove another F_OK.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77405
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 29 Jul 2009 00:02:19 +0000 (00:02 +0000)]
Match X86 register names to number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77404
91177308-0d34-0410-b5e6-
96231b3b80d8
Andreas Bolka [Wed, 29 Jul 2009 00:02:05 +0000 (00:02 +0000)]
Fix a few typos and add links.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77403
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Tue, 28 Jul 2009 23:52:33 +0000 (23:52 +0000)]
Thumb-2: fix typo that caused incorrect stack elimination for VFP operations and very large stack frames.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77401
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 28 Jul 2009 23:44:43 +0000 (23:44 +0000)]
Cleanup code to use iterators instead of ".size()".
Does any one else hate the name "const_reverse_iterator" as much as I do?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77399
91177308-0d34-0410-b5e6-
96231b3b80d8
Andreas Bolka [Tue, 28 Jul 2009 23:40:40 +0000 (23:40 +0000)]
Slightly reformat LDA tests to ease grepping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77398
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Tue, 28 Jul 2009 23:26:34 +0000 (23:26 +0000)]
Improve performance of PadToColumn by eliminating flushes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77397
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 28 Jul 2009 23:25:18 +0000 (23:25 +0000)]
On "Unix", if Program::FindProgramByName is given a name containing
slashes, just go with it, regardless of whether it looks like it will
be executable. This follows the behavior of sh(1) more closely.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77396
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Tue, 28 Jul 2009 23:24:58 +0000 (23:24 +0000)]
Add some protected interfaces to allow subclass access to the buffer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77395
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 28 Jul 2009 23:23:00 +0000 (23:23 +0000)]
Doxygenify comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77394
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 28 Jul 2009 23:22:13 +0000 (23:22 +0000)]
Split out large loop into it's very own method. No intended functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77393
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 28 Jul 2009 23:22:01 +0000 (23:22 +0000)]
It isn't necessary to use F_OK when using R_OK or similar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77392
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Tue, 28 Jul 2009 23:08:36 +0000 (23:08 +0000)]
Add a bugpoint flag to disable block extraction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77389
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Jul 2009 22:54:04 +0000 (22:54 +0000)]
discourage else after "noreturn" statements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77387
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 28 Jul 2009 22:46:39 +0000 (22:46 +0000)]
Update CMakeLists
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77385
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 28 Jul 2009 22:40:46 +0000 (22:40 +0000)]
Move X86 instruction parsing into X86/AsmParser.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77384
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 28 Jul 2009 22:30:52 +0000 (22:30 +0000)]
Clarify getName() comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77383
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 28 Jul 2009 22:23:45 +0000 (22:23 +0000)]
Output the EH TType format and base offset only if there are types that we're
going to emit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77382
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 28 Jul 2009 22:22:31 +0000 (22:22 +0000)]
Make expression parsing and error/warning reporting available through the
generic MCAsmParser interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77381
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 28 Jul 2009 22:08:15 +0000 (22:08 +0000)]
Fix a fixme; don't take binaries from the working directory.
This fixes clang on non-darwin platforms if a file called 'ld' or 'as'
is in the working directory. Based on patch by Pawel Worach!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77379
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 28 Jul 2009 22:04:55 +0000 (22:04 +0000)]
Remove unused method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77378
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 28 Jul 2009 22:03:50 +0000 (22:03 +0000)]
Output the correct format for Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77376
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 28 Jul 2009 22:03:24 +0000 (22:03 +0000)]
fix unittest
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77375
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 28 Jul 2009 21:54:03 +0000 (21:54 +0000)]
Use the preferred EH data format for the preferred EH data format.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77373
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 28 Jul 2009 21:53:17 +0000 (21:53 +0000)]
Darwin outputs (DW_EH_PE_pcrel | DW_EH_PE_indirect | DW_EH_PE_sdata4) when we're
dealing with Data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77372
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 28 Jul 2009 21:50:32 +0000 (21:50 +0000)]
Remove unused parameter name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77371
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 28 Jul 2009 21:49:47 +0000 (21:49 +0000)]
Rename MDNode.h header. It defines MDnode and other metadata classes.
New name is Metadata.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77370
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 28 Jul 2009 21:49:18 +0000 (21:49 +0000)]
Fix a typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77369
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 28 Jul 2009 21:19:26 +0000 (21:19 +0000)]
Return ConstantVector to 2.5 API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77366
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 28 Jul 2009 20:53:24 +0000 (20:53 +0000)]
In thumb2 mode, add pc is unpredictable. Use add + mov pc instead (that is until more optimization goes in).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77364
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Tue, 28 Jul 2009 20:51:25 +0000 (20:51 +0000)]
Remove support for ORN to workaround <rdar://problem/
7096522>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77363
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 28 Jul 2009 20:47:52 +0000 (20:47 +0000)]
Provide generic MCAsmParser when constructing target specific parsers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77362
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 28 Jul 2009 19:55:13 +0000 (19:55 +0000)]
Add DebugInfoEnumerator to collect debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77360
91177308-0d34-0410-b5e6-
96231b3b80d8
Andreas Bolka [Tue, 28 Jul 2009 19:50:13 +0000 (19:50 +0000)]
Simplify LDA-internal interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77359
91177308-0d34-0410-b5e6-
96231b3b80d8
Andreas Bolka [Tue, 28 Jul 2009 19:49:49 +0000 (19:49 +0000)]
Add LDA statistics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77358
91177308-0d34-0410-b5e6-
96231b3b80d8
Andreas Bolka [Tue, 28 Jul 2009 19:49:25 +0000 (19:49 +0000)]
Minor factoring, naming and formatting cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77357
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Tue, 28 Jul 2009 19:25:33 +0000 (19:25 +0000)]
Handle null and file symbol on doInitialization
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77354
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Jul 2009 18:48:43 +0000 (18:48 +0000)]
more simplifications and cleanup. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77350
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 28 Jul 2009 18:32:17 +0000 (18:32 +0000)]
Change ConstantArray to 2.5 API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77347
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 28 Jul 2009 18:17:26 +0000 (18:17 +0000)]
Switch X86 assembly parser to using the generic lexer interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77341
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Tue, 28 Jul 2009 18:15:38 +0000 (18:15 +0000)]
Add workaround for <rdar://problem/
7098328>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77340
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Jul 2009 18:04:18 +0000 (18:04 +0000)]
fix testcase for previous patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77338
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 28 Jul 2009 17:58:44 +0000 (17:58 +0000)]
Expose Tokens to target specific assembly parsers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77337
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Jul 2009 17:57:51 +0000 (17:57 +0000)]
Fix PR4639, a ELF-TLS regression from some of my refactoring.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77336
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Jul 2009 17:50:28 +0000 (17:50 +0000)]
the apple "ld_classic" linker doesn't support .literal16 in 32-bit
mode, and "ld64" (the default linker) falls back to it in -static
mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77334
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 28 Jul 2009 17:34:57 +0000 (17:34 +0000)]
Tweak LLVM emacs style to make default namespace indentation closer to style
guide.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77331
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Tue, 28 Jul 2009 17:06:49 +0000 (17:06 +0000)]
Add Thumb-2 patterns for ARMsrl_flag and ARMsra_flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77329
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 28 Jul 2009 16:56:42 +0000 (16:56 +0000)]
Switch AsmLexer::Lex to returning a reference to the current token.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77328
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Tue, 28 Jul 2009 16:49:24 +0000 (16:49 +0000)]
Add reload and remat backscheduling. This is disabled by default. Use
-schedule-spills=true to enable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77327
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Jul 2009 16:49:19 +0000 (16:49 +0000)]
fix unused variable warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77326
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 28 Jul 2009 16:38:40 +0000 (16:38 +0000)]
Drop some AsmLexer methods in favor of their AsmToken equivalents.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77323
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 28 Jul 2009 16:08:33 +0000 (16:08 +0000)]
llvm-mc: Sink token enum into AsmToken.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77322
91177308-0d34-0410-b5e6-
96231b3b80d8
Stefanus Du Toit [Tue, 28 Jul 2009 13:41:07 +0000 (13:41 +0000)]
Include cmath/math.h in DataTypes.h regardless of whether MSVC is being used.
Fixes MSVC build of LiveInterval.cpp.
Patch by Nicolas Capens.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77317
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 28 Jul 2009 07:38:35 +0000 (07:38 +0000)]
tADDrSPI doesn't have a predicate operand, but tADDhirr and tADDi3 have.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77305
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Tue, 28 Jul 2009 06:53:50 +0000 (06:53 +0000)]
Remove memory corruption bug. string.c_str() was returning a temporary that was
dead before we used it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77304
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 28 Jul 2009 06:24:12 +0000 (06:24 +0000)]
Code clean up. No functionality changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77301
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 28 Jul 2009 05:48:47 +0000 (05:48 +0000)]
- More refactoring. This gets rid of all of the getOpcode calls.
- This change also makes it possible to switch between ARM / Thumb on a
per-function basis.
- Fixed thumb2 routine which expand reg + arbitrary immediate. It was using
using ARM so_imm logic.
- Use movw and movt to do reg + imm when profitable.
- Other code clean ups and minor optimizations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77300
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Jul 2009 03:20:34 +0000 (03:20 +0000)]
fix a casting problem on the llvm-x86_64-linux tester
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77295
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Jul 2009 03:13:23 +0000 (03:13 +0000)]
Rip all of the global variable lowering logic out of TargetAsmInfo. Since
it is highly specific to the object file that will be generated in the end,
this introduces a new TargetLoweringObjectFile interface that is implemented
for each of ELF/MachO/COFF/Alpha/PIC16 and XCore.
Though still is still a brutal and ugly refactoring, this is a major step
towards goodness.
This patch also:
1. fixes a bunch of dangling pointer problems in the PIC16 backend.
2. disables the TargetLowering copy ctor which PIC16 was accidentally using.
3. gets us closer to xcore having its own crazy target section flags and
pic16 not having to shadow sections with its own objects.
4. fixes wierdness where ELF targets would set CStringSection but not
CStringSection_. Factor the code better.
5. fixes some bugs in string lowering on ELF targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77294
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Jul 2009 03:05:40 +0000 (03:05 +0000)]
don't copy TargetLowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77293
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 28 Jul 2009 03:00:54 +0000 (03:00 +0000)]
llvm-mc: Factor AsmToken class out of AsmLexer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77292
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 28 Jul 2009 01:40:03 +0000 (01:40 +0000)]
Teach instcombine to respect and preserve inbounds. Add inbounds
to a few tests where it is required for the expected transformation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77290
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Tue, 28 Jul 2009 01:35:34 +0000 (01:35 +0000)]
Fix a small little typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77289
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 28 Jul 2009 00:58:50 +0000 (00:58 +0000)]
llvm-mc: Stop uniqueing string tokens, nothing actually uses this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77287
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 28 Jul 2009 00:37:50 +0000 (00:37 +0000)]
Replace dyn_castGetElementPtr with dyn_cast<GEPOperator>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77286
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 28 Jul 2009 00:37:06 +0000 (00:37 +0000)]
Grab the LLVMContext and parent Module of SI ahead of the
point where SI can get deleted. This fixes a use of free'd memory.
This fixes Externals/Povray.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77285
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Mon, 27 Jul 2009 23:34:12 +0000 (23:34 +0000)]
ORN does not require (and can not have) the ".w" suffix. "Orthogonality" is a dirty word at ARM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77275
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Mon, 27 Jul 2009 23:33:34 +0000 (23:33 +0000)]
Fix a release-asserts warning. Debug functions should be marked used,
if there are no other uses. If people don't need this routine
anymore, if should be deleted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77274
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 27 Jul 2009 23:23:47 +0000 (23:23 +0000)]
Pass true to the Internalize parameter of createStandardLTOPasses,
to match llvm-ld's default behavior.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77273
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 27 Jul 2009 23:20:52 +0000 (23:20 +0000)]
llvm-mc: Implement .abort fully in the front end
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77272
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Mon, 27 Jul 2009 23:14:11 +0000 (23:14 +0000)]
Avoid build warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77271
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 27 Jul 2009 22:39:14 +0000 (22:39 +0000)]
Add a comment on Value explaining the current getName() behavior.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77269
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 27 Jul 2009 22:29:26 +0000 (22:29 +0000)]
Move ConstantStruct back to 2.5 API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77266
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 27 Jul 2009 21:59:50 +0000 (21:59 +0000)]
Add a comment about the "getelementptr null" trick.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77262
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 27 Jul 2009 21:55:32 +0000 (21:55 +0000)]
Add inbounds to the polygen grammar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77261
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 27 Jul 2009 21:54:51 +0000 (21:54 +0000)]
vim syntax highlighting for inbounds keyword.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77260
91177308-0d34-0410-b5e6-
96231b3b80d8