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
Dan Gohman [Mon, 27 Jul 2009 21:53:46 +0000 (21:53 +0000)]
Add a new keyword 'inbounds' for use with getelementptr. See the
LangRef.html changes for details.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77259
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 27 Jul 2009 21:49:56 +0000 (21:49 +0000)]
llvm-mc: Move AsmLexer::getCurStrVal to StringRef based API.
- My DFS traversal of LLVM is, at least for now, nearly complete! :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77258
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 27 Jul 2009 21:49:34 +0000 (21:49 +0000)]
Order unsigned before signed, for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77257
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 27 Jul 2009 21:47:07 +0000 (21:47 +0000)]
Unbreak build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77256
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 27 Jul 2009 21:46:02 +0000 (21:46 +0000)]
Make raw_null_ostream flush its buffer in its destructor, so that
it conforms to the assertion added in r77245. This fixes a failure
in qa_override.c in clang's testsuite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77255
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 27 Jul 2009 21:28:04 +0000 (21:28 +0000)]
hoist MCContext/MCStreamer up to AsmPrinter since we're going to start creating
MCSections soon instead of Section for all targets, and we need something to
own them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77252
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 27 Jul 2009 21:22:30 +0000 (21:22 +0000)]
Move MCContext and friends to StringRef based APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77251
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 27 Jul 2009 21:13:35 +0000 (21:13 +0000)]
simplify #includes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77250
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 27 Jul 2009 20:59:43 +0000 (20:59 +0000)]
Move ConstantFP construction back to the 2.5-ish API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77247
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 27 Jul 2009 20:49:44 +0000 (20:49 +0000)]
Add an assertion check to raw_ostream's destructor to verify
that the subclass hasn't left any pending data in the buffer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77245
91177308-0d34-0410-b5e6-
96231b3b80d8
Andreas Bolka [Mon, 27 Jul 2009 20:37:10 +0000 (20:37 +0000)]
Fix typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77244
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 27 Jul 2009 20:30:05 +0000 (20:30 +0000)]
80 columns!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77243
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Mon, 27 Jul 2009 19:59:26 +0000 (19:59 +0000)]
Remove TPat. No patterns depend on just isThumb(). Must use either T1Pat (isThumb1Only()) or T2Pat (is Thumb2).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77242
91177308-0d34-0410-b5e6-
96231b3b80d8
Sean Callanan [Mon, 27 Jul 2009 19:45:28 +0000 (19:45 +0000)]
Thanks, Bill!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77240
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Mon, 27 Jul 2009 19:38:38 +0000 (19:38 +0000)]
fix comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77239
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Mon, 27 Jul 2009 19:32:57 +0000 (19:32 +0000)]
add module identifier to the elf object file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77238
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 27 Jul 2009 19:14:14 +0000 (19:14 +0000)]
Sink getSectionPrefixForUniqueGlobal down into the TAI
implementations that need it, rearrange ELFTAI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77236
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 27 Jul 2009 19:00:33 +0000 (19:00 +0000)]
remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77233
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Mon, 27 Jul 2009 18:54:47 +0000 (18:54 +0000)]
Handle external symbols for ELF and add some static methods to ELFSym
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77232
91177308-0d34-0410-b5e6-
96231b3b80d8