platform/upstream/llvm.git
15 years agoFix a few typos and add links.
Andreas Bolka [Wed, 29 Jul 2009 00:02:05 +0000 (00:02 +0000)]
Fix a few typos and add links.

llvm-svn: 77403

15 years agoSome minor cleanups, thanks Chris.
Mike Stump [Tue, 28 Jul 2009 23:57:15 +0000 (23:57 +0000)]
Some minor cleanups, thanks Chris.

llvm-svn: 77402

15 years agoThumb-2: fix typo that caused incorrect stack elimination for VFP operations and...
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.

llvm-svn: 77401

15 years agoSome style fixes, thanks Chris.
Mike Stump [Tue, 28 Jul 2009 23:47:15 +0000 (23:47 +0000)]
Some style fixes, thanks Chris.

llvm-svn: 77400

15 years agoCleanup code to use iterators instead of ".size()".
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?

llvm-svn: 77399

15 years agoSlightly reformat LDA tests to ease grepping.
Andreas Bolka [Tue, 28 Jul 2009 23:40:40 +0000 (23:40 +0000)]
Slightly reformat LDA tests to ease grepping.

llvm-svn: 77398

15 years agoImprove performance of PadToColumn by eliminating flushes.
David Greene [Tue, 28 Jul 2009 23:26:34 +0000 (23:26 +0000)]
Improve performance of PadToColumn by eliminating flushes.

llvm-svn: 77397

15 years agoOn "Unix", if Program::FindProgramByName is given a name containing
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.

llvm-svn: 77396

15 years agoAdd some protected interfaces to allow subclass access to the buffer.
David Greene [Tue, 28 Jul 2009 23:24:58 +0000 (23:24 +0000)]
Add some protected interfaces to allow subclass access to the buffer.

llvm-svn: 77395

15 years agoDoxygenify comments.
Bill Wendling [Tue, 28 Jul 2009 23:23:00 +0000 (23:23 +0000)]
Doxygenify comments.

llvm-svn: 77394

15 years agoSplit out large loop into it's very own method. No intended functionality change.
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.

llvm-svn: 77393

15 years agoIt isn't necessary to use F_OK when using R_OK or similar.
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.

llvm-svn: 77392

15 years agoAdd support for -Wmissing-noreturn.
Mike Stump [Tue, 28 Jul 2009 23:11:12 +0000 (23:11 +0000)]
Add support for -Wmissing-noreturn.

llvm-svn: 77391

15 years agoAdd a bugpoint flag to disable block extraction.
David Goodwin [Tue, 28 Jul 2009 23:08:36 +0000 (23:08 +0000)]
Add a bugpoint flag to disable block extraction.

llvm-svn: 77389

15 years agoRefactor the code that produces a TemplateSpecializationType, so that
Douglas Gregor [Tue, 28 Jul 2009 23:00:59 +0000 (23:00 +0000)]
Refactor the code that produces a TemplateSpecializationType, so that
canonicalization for dependent TemplateSpecializationTypes occurs
within ASTContext::getTemplateSpecializationType. Also, move template
argument canonicalization into ASTContext::getCanonicalTemplateArgument.

llvm-svn: 77388

15 years agodiscourage else after "noreturn" statements.
Chris Lattner [Tue, 28 Jul 2009 22:54:04 +0000 (22:54 +0000)]
discourage else after "noreturn" statements.

llvm-svn: 77387

15 years agoremove extraneous braces
Chris Lattner [Tue, 28 Jul 2009 22:49:34 +0000 (22:49 +0000)]
remove extraneous braces

llvm-svn: 77386

15 years agoUpdate CMakeLists
Daniel Dunbar [Tue, 28 Jul 2009 22:46:39 +0000 (22:46 +0000)]
Update CMakeLists

llvm-svn: 77385

15 years agoMove X86 instruction parsing into X86/AsmParser.
Daniel Dunbar [Tue, 28 Jul 2009 22:40:46 +0000 (22:40 +0000)]
Move X86 instruction parsing into X86/AsmParser.

llvm-svn: 77384

15 years agoClarify getName() comment.
Devang Patel [Tue, 28 Jul 2009 22:30:52 +0000 (22:30 +0000)]
Clarify getName() comment.

llvm-svn: 77383

15 years agoOutput the EH TType format and base offset only if there are types that we're
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.

llvm-svn: 77382

15 years agoMake expression parsing and error/warning reporting available through the
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.

llvm-svn: 77381

15 years agoFix a fixme; don't take binaries from the working directory.
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!

llvm-svn: 77379

15 years agoRemove unused method.
Devang Patel [Tue, 28 Jul 2009 22:04:55 +0000 (22:04 +0000)]
Remove unused method.

llvm-svn: 77378

15 years agoAdd noreturn support for blocks.
Mike Stump [Tue, 28 Jul 2009 22:04:01 +0000 (22:04 +0000)]
Add noreturn support for blocks.

llvm-svn: 77377

15 years agoOutput the correct format for Darwin.
Bill Wendling [Tue, 28 Jul 2009 22:03:50 +0000 (22:03 +0000)]
Output the correct format for Darwin.

llvm-svn: 77376

15 years agofix unittest
Benjamin Kramer [Tue, 28 Jul 2009 22:03:24 +0000 (22:03 +0000)]
fix unittest

llvm-svn: 77375

15 years agoir-gen derived-to-base conversion in implicit casts.
Fariborz Jahanian [Tue, 28 Jul 2009 22:00:58 +0000 (22:00 +0000)]
ir-gen derived-to-base conversion in implicit casts.

llvm-svn: 77374

15 years agoUse the preferred EH data format for the preferred EH data format.
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.

llvm-svn: 77373

15 years agoDarwin outputs (DW_EH_PE_pcrel | DW_EH_PE_indirect | DW_EH_PE_sdata4) when we're
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.

llvm-svn: 77372

15 years agoRemove unused parameter name.
Bill Wendling [Tue, 28 Jul 2009 21:50:32 +0000 (21:50 +0000)]
Remove unused parameter name.

llvm-svn: 77371

15 years agoRename MDNode.h header. It defines MDnode and other metadata classes.
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.

llvm-svn: 77370

15 years agoFix a typo.
Evan Cheng [Tue, 28 Jul 2009 21:49:18 +0000 (21:49 +0000)]
Fix a typo.

llvm-svn: 77369

15 years agoUpdate for LLVM API change.
Owen Anderson [Tue, 28 Jul 2009 21:22:35 +0000 (21:22 +0000)]
Update for LLVM API change.

llvm-svn: 77368

15 years agoReturn ConstantVector to 2.5 API.
Owen Anderson [Tue, 28 Jul 2009 21:19:26 +0000 (21:19 +0000)]
Return ConstantVector to 2.5 API.

llvm-svn: 77366

15 years agoRemove the old RecordOrganizer.
Anders Carlsson [Tue, 28 Jul 2009 21:03:34 +0000 (21:03 +0000)]
Remove the old RecordOrganizer.

llvm-svn: 77365

15 years agoIn thumb2 mode, add pc is unpredictable. Use add + mov pc instead (that is until...
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).

llvm-svn: 77364

15 years agoRemove support for ORN to workaround <rdar://problem/7096522>.
David Goodwin [Tue, 28 Jul 2009 20:51:25 +0000 (20:51 +0000)]
Remove support for ORN to workaround <rdar://problem/7096522>.

llvm-svn: 77363

15 years agoProvide generic MCAsmParser when constructing target specific parsers.
Daniel Dunbar [Tue, 28 Jul 2009 20:47:52 +0000 (20:47 +0000)]
Provide generic MCAsmParser when constructing target specific parsers.

llvm-svn: 77362

15 years agoFix PR 4631. The compound initializers of unions were not being evaluated, which
Ted Kremenek [Tue, 28 Jul 2009 20:46:55 +0000 (20:46 +0000)]
Fix PR 4631. The compound initializers of unions were not being evaluated, which
could cause false positives if any the subexpressions had side-effects. These
initializers weren't evaluated because the StoreManager would need to handle
them, but that's an orthogonal problem of whether or not the StoreManager can
handle the binding.

llvm-svn: 77361

15 years agoAdd DebugInfoEnumerator to collect debug info.
Devang Patel [Tue, 28 Jul 2009 19:55:13 +0000 (19:55 +0000)]
Add DebugInfoEnumerator to collect debug info.

llvm-svn: 77360

15 years agoSimplify LDA-internal interface.
Andreas Bolka [Tue, 28 Jul 2009 19:50:13 +0000 (19:50 +0000)]
Simplify LDA-internal interface.

llvm-svn: 77359

15 years agoAdd LDA statistics.
Andreas Bolka [Tue, 28 Jul 2009 19:49:49 +0000 (19:49 +0000)]
Add LDA statistics.

llvm-svn: 77358

15 years agoMinor factoring, naming and formatting cleanups.
Andreas Bolka [Tue, 28 Jul 2009 19:49:25 +0000 (19:49 +0000)]
Minor factoring, naming and formatting cleanups.

llvm-svn: 77357

15 years agoAdd missing break statement.
Ted Kremenek [Tue, 28 Jul 2009 19:34:30 +0000 (19:34 +0000)]
Add missing break statement.

llvm-svn: 77356

15 years agoUpdate comments.
Mike Stump [Tue, 28 Jul 2009 19:31:47 +0000 (19:31 +0000)]
Update comments.

llvm-svn: 77355

15 years agoHandle null and file symbol on doInitialization
Bruno Cardoso Lopes [Tue, 28 Jul 2009 19:25:33 +0000 (19:25 +0000)]
Handle null and file symbol on doInitialization

llvm-svn: 77354

15 years agoFix regression in attribute 'nonnull' checking when a transition node
Ted Kremenek [Tue, 28 Jul 2009 19:24:31 +0000 (19:24 +0000)]
Fix regression in attribute 'nonnull' checking when a transition node
was created but not added to the destination NodeSet.  This fixes PR 4630.

llvm-svn: 77353

15 years agoAdd a field for C++ specific data to ASTRecordLayout. Use it to store the non-virtual...
Anders Carlsson [Tue, 28 Jul 2009 19:24:15 +0000 (19:24 +0000)]
Add a field for C++ specific data to ASTRecordLayout. Use it to store the non-virtual size and alignment + base offsets.

llvm-svn: 77352

15 years agoMore cleanup of data member access and then some.
Fariborz Jahanian [Tue, 28 Jul 2009 18:54:57 +0000 (18:54 +0000)]
More cleanup of data member access and then some.

llvm-svn: 77351

15 years agomore simplifications and cleanup. :)
Chris Lattner [Tue, 28 Jul 2009 18:48:43 +0000 (18:48 +0000)]
more simplifications and cleanup. :)

llvm-svn: 77350

15 years agoUpdate for LLVM API change.
Owen Anderson [Tue, 28 Jul 2009 18:33:04 +0000 (18:33 +0000)]
Update for LLVM API change.

llvm-svn: 77349

15 years agoChange ConstantArray to 2.5 API.
Owen Anderson [Tue, 28 Jul 2009 18:32:17 +0000 (18:32 +0000)]
Change ConstantArray to 2.5 API.

llvm-svn: 77347

15 years agofix PR4633: cast to void should silence the 'unused expression' warning.
Chris Lattner [Tue, 28 Jul 2009 18:25:28 +0000 (18:25 +0000)]
fix PR4633: cast to void should silence the 'unused expression' warning.

llvm-svn: 77344

15 years agoadd some fixme's
Chris Lattner [Tue, 28 Jul 2009 18:25:06 +0000 (18:25 +0000)]
add some fixme's

llvm-svn: 77343

15 years agothis test crashes, disable it harder.
Chris Lattner [Tue, 28 Jul 2009 18:22:50 +0000 (18:22 +0000)]
this test crashes, disable it harder.

llvm-svn: 77342

15 years agoSwitch X86 assembly parser to using the generic lexer interface.
Daniel Dunbar [Tue, 28 Jul 2009 18:17:26 +0000 (18:17 +0000)]
Switch X86 assembly parser to using the generic lexer interface.

llvm-svn: 77341

15 years agoAdd workaround for <rdar://problem/7098328>.
David Goodwin [Tue, 28 Jul 2009 18:15:38 +0000 (18:15 +0000)]
Add workaround for <rdar://problem/7098328>.

llvm-svn: 77340

15 years agoSome code cleanup.
Fariborz Jahanian [Tue, 28 Jul 2009 18:09:28 +0000 (18:09 +0000)]
Some code cleanup.

llvm-svn: 77339

15 years agofix testcase for previous patch.
Chris Lattner [Tue, 28 Jul 2009 18:04:18 +0000 (18:04 +0000)]
fix testcase for previous patch.

llvm-svn: 77338

15 years agoExpose Tokens to target specific assembly parsers.
Daniel Dunbar [Tue, 28 Jul 2009 17:58:44 +0000 (17:58 +0000)]
Expose Tokens to target specific assembly parsers.

llvm-svn: 77337

15 years agoFix PR4639, a ELF-TLS regression from some of my refactoring.
Chris Lattner [Tue, 28 Jul 2009 17:57:51 +0000 (17:57 +0000)]
Fix PR4639, a ELF-TLS regression from some of my refactoring.

llvm-svn: 77336

15 years agoMore CGRecordLayoutBuilder cleanup.
Anders Carlsson [Tue, 28 Jul 2009 17:56:36 +0000 (17:56 +0000)]
More CGRecordLayoutBuilder cleanup.

llvm-svn: 77335

15 years agothe apple "ld_classic" linker doesn't support .literal16 in 32-bit
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.

llvm-svn: 77334

15 years agoMore work toward data member access ir-gen.
Fariborz Jahanian [Tue, 28 Jul 2009 17:38:28 +0000 (17:38 +0000)]
More work toward data member access ir-gen.

llvm-svn: 77332

15 years agoTweak LLVM emacs style to make default namespace indentation closer to style
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.

llvm-svn: 77331

15 years agoAdd two more tests.
Anders Carlsson [Tue, 28 Jul 2009 17:14:18 +0000 (17:14 +0000)]
Add two more tests.

llvm-svn: 77330

15 years agoAdd Thumb-2 patterns for ARMsrl_flag and ARMsra_flag.
David Goodwin [Tue, 28 Jul 2009 17:06:49 +0000 (17:06 +0000)]
Add Thumb-2 patterns for ARMsrl_flag and ARMsra_flag.

llvm-svn: 77329

15 years agoSwitch AsmLexer::Lex to returning a reference to the current token.
Daniel Dunbar [Tue, 28 Jul 2009 16:56:42 +0000 (16:56 +0000)]
Switch AsmLexer::Lex to returning a reference to the current token.

llvm-svn: 77328

15 years agoAdd reload and remat backscheduling. This is disabled by default. Use
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.

llvm-svn: 77327

15 years agofix unused variable warning
Chris Lattner [Tue, 28 Jul 2009 16:49:19 +0000 (16:49 +0000)]
fix unused variable warning

llvm-svn: 77326

15 years agoAdd a template test that requires canonical expression comparison
Douglas Gregor [Tue, 28 Jul 2009 16:39:54 +0000 (16:39 +0000)]
Add a template test that requires canonical expression comparison

llvm-svn: 77325

15 years agoFix a typo in a comment
Douglas Gregor [Tue, 28 Jul 2009 16:39:25 +0000 (16:39 +0000)]
Fix a typo in a comment

llvm-svn: 77324

15 years agoDrop some AsmLexer methods in favor of their AsmToken equivalents.
Daniel Dunbar [Tue, 28 Jul 2009 16:38:40 +0000 (16:38 +0000)]
Drop some AsmLexer methods in favor of their AsmToken equivalents.

llvm-svn: 77323

15 years agollvm-mc: Sink token enum into AsmToken.
Daniel Dunbar [Tue, 28 Jul 2009 16:08:33 +0000 (16:08 +0000)]
llvm-mc: Sink token enum into AsmToken.

llvm-svn: 77322

15 years agoProfiling the pointer of a canonical type is sufficient to uniquely identify the...
Douglas Gregor [Tue, 28 Jul 2009 15:32:17 +0000 (15:32 +0000)]
Profiling the pointer of a canonical type is sufficient to uniquely identify the type

llvm-svn: 77321

15 years agoFinish profile support for statements.
Douglas Gregor [Tue, 28 Jul 2009 15:27:13 +0000 (15:27 +0000)]
Finish profile support for statements.

llvm-svn: 77320

15 years agoComplete profile support for C++ and Objective-C expressions
Douglas Gregor [Tue, 28 Jul 2009 14:44:31 +0000 (14:44 +0000)]
Complete profile support for C++ and Objective-C expressions

llvm-svn: 77318

15 years agoInclude cmath/math.h in DataTypes.h regardless of whether MSVC is being used.
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.

llvm-svn: 77317

15 years agotADDrSPI doesn't have a predicate operand, but tADDhirr and tADDi3 have.
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.

llvm-svn: 77305

15 years agoRemove memory corruption bug. string.c_str() was returning a temporary that was
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.

llvm-svn: 77304

15 years agoBounds checking for address spaces.
John McCall [Tue, 28 Jul 2009 06:52:18 +0000 (06:52 +0000)]
Bounds checking for address spaces.

llvm-svn: 77303

15 years agoCallExpr's SubExprs sometimes were allocated in the wrong place.
Daniel Dunbar [Tue, 28 Jul 2009 06:29:46 +0000 (06:29 +0000)]
CallExpr's SubExprs sometimes were allocated in the wrong place.

llvm-svn: 77302

15 years agoCode clean up. No functionality changes.
Evan Cheng [Tue, 28 Jul 2009 06:24:12 +0000 (06:24 +0000)]
Code clean up. No functionality changes.

llvm-svn: 77301

15 years ago- More refactoring. This gets rid of all of the getOpcode calls.
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.

llvm-svn: 77300

15 years agoReimplement QualifierSet using a single word, as requested by dgregor.
John McCall [Tue, 28 Jul 2009 05:41:20 +0000 (05:41 +0000)]
Reimplement QualifierSet using a single word, as requested by dgregor.

llvm-svn: 77299

15 years agoImplement ObjCMethodDecl::getCanonicalDecl().
Argyrios Kyrtzidis [Tue, 28 Jul 2009 05:11:17 +0000 (05:11 +0000)]
Implement ObjCMethodDecl::getCanonicalDecl().

llvm-svn: 77298

15 years ago-Add ObjCCategoryImplDecl::getCategoryClass() which returns the category interface...
Argyrios Kyrtzidis [Tue, 28 Jul 2009 05:11:05 +0000 (05:11 +0000)]
-Add ObjCCategoryImplDecl::getCategoryClass() which returns the category interface decl.
-Correct ObjCMethodDecl::getNextRedeclaration(); A method in a ObjCCategoryImplDecl should point to
a method in the associated ObjCCategoryDecl, not the ObjCInterfaceDecl.

llvm-svn: 77297

15 years agoUse ObjCImplDecl in place of ObjCCategoryImplDecl/ObjCImplementationDecl.
Argyrios Kyrtzidis [Tue, 28 Jul 2009 05:10:52 +0000 (05:10 +0000)]
Use ObjCImplDecl in place of ObjCCategoryImplDecl/ObjCImplementationDecl.

llvm-svn: 77296

15 years agofix a casting problem on the llvm-x86_64-linux tester
Chris Lattner [Tue, 28 Jul 2009 03:20:34 +0000 (03:20 +0000)]
fix a casting problem on the llvm-x86_64-linux tester

llvm-svn: 77295

15 years agoRip all of the global variable lowering logic out of TargetAsmInfo. Since
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.

llvm-svn: 77294

15 years agodon't copy TargetLowering.
Chris Lattner [Tue, 28 Jul 2009 03:05:40 +0000 (03:05 +0000)]
don't copy TargetLowering.

llvm-svn: 77293

15 years agollvm-mc: Factor AsmToken class out of AsmLexer.
Daniel Dunbar [Tue, 28 Jul 2009 03:00:54 +0000 (03:00 +0000)]
llvm-mc: Factor AsmToken class out of AsmLexer.

llvm-svn: 77292

15 years agoMake longjmp a real builtin.
Mike Stump [Tue, 28 Jul 2009 02:25:19 +0000 (02:25 +0000)]
Make longjmp a real builtin.

llvm-svn: 77291

15 years agoTeach instcombine to respect and preserve inbounds. Add inbounds
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.

llvm-svn: 77290

15 years agoFix a small little typo.
Mike Stump [Tue, 28 Jul 2009 01:35:34 +0000 (01:35 +0000)]
Fix a small little typo.

llvm-svn: 77289

15 years agoAllow functions to be marked "implicit return zero" and so mark main().
John McCall [Tue, 28 Jul 2009 01:00:58 +0000 (01:00 +0000)]
Allow functions to be marked "implicit return zero" and so mark main().
Codegen by initializing the return value with its LLVM type's null value.

llvm-svn: 77288

15 years agollvm-mc: Stop uniqueing string tokens, nothing actually uses this.
Daniel Dunbar [Tue, 28 Jul 2009 00:58:50 +0000 (00:58 +0000)]
llvm-mc: Stop uniqueing string tokens, nothing actually uses this.

llvm-svn: 77287

15 years agoReplace dyn_castGetElementPtr with dyn_cast<GEPOperator>.
Dan Gohman [Tue, 28 Jul 2009 00:37:50 +0000 (00:37 +0000)]
Replace dyn_castGetElementPtr with dyn_cast<GEPOperator>.

llvm-svn: 77286

15 years agoGrab the LLVMContext and parent Module of SI ahead of the
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.

llvm-svn: 77285