platform/upstream/llvm.git
15 years agoEnable the new constant struct builder by default. The old code is still in place...
Anders Carlsson [Mon, 27 Jul 2009 05:54:15 +0000 (05:54 +0000)]
Enable the new constant struct builder by default. The old code is still in place but will be removed shortly. The new struct builder works on big endian systems.

llvm-svn: 77185

15 years agoEliminate SectionFlags, just embed a SectionKind into Section
Chris Lattner [Mon, 27 Jul 2009 05:32:16 +0000 (05:32 +0000)]
Eliminate SectionFlags, just embed a SectionKind into Section
instead and drive things based off of that.

llvm-svn: 77184

15 years agoadd bugzilla #
Chris Lattner [Mon, 27 Jul 2009 04:49:58 +0000 (04:49 +0000)]
add bugzilla #

llvm-svn: 77183

15 years agoIf CPSR is modified but the def is dead, then it's ok to fold the load / store.
Evan Cheng [Mon, 27 Jul 2009 04:18:04 +0000 (04:18 +0000)]
If CPSR is modified but the def is dead, then it's ok to fold the load / store.

llvm-svn: 77182

15 years agoUse t2LDRi12 and t2STRi12 to load / store to / from stack frames. Eliminate more...
Evan Cheng [Mon, 27 Jul 2009 03:14:20 +0000 (03:14 +0000)]
Use t2LDRi12 and t2STRi12 to load / store to / from stack frames. Eliminate more getOpcode calls.

llvm-svn: 77181

15 years agoMore work on the constant struct builder, fix a couple of thinkos and add support...
Anders Carlsson [Mon, 27 Jul 2009 02:56:37 +0000 (02:56 +0000)]
More work on the constant struct builder, fix a couple of thinkos and add support for inserting part of a bitfield in the previous byte.

llvm-svn: 77180

15 years agoGenerate a libcall for i8 multiply.
Sanjiv Gupta [Mon, 27 Jul 2009 02:44:46 +0000 (02:44 +0000)]
Generate a libcall for i8 multiply.

llvm-svn: 77179

15 years agofixed incorrect lowering of ISD::SUB node. SUB has only one result value.
Sanjiv Gupta [Mon, 27 Jul 2009 02:26:06 +0000 (02:26 +0000)]
fixed incorrect lowering of ISD::SUB node. SUB has only one result value.
It wasn't caught during tests because we never got a sub generated, (i8 was always getting promoted to int, which in turn was broken into subc/sube). Though the optimizer leaves an i8 sub now.

llvm-svn: 77178

15 years agoMore work on bitfield support in the new constant struct builder.
Anders Carlsson [Mon, 27 Jul 2009 01:23:51 +0000 (01:23 +0000)]
More work on bitfield support in the new constant struct builder.

llvm-svn: 77177

15 years agoFix PR4624.
Mike Stump [Mon, 27 Jul 2009 00:44:23 +0000 (00:44 +0000)]
Fix PR4624.

llvm-svn: 77176

15 years agoUse the right instructions to copy between GPR and the more strictive tGPR classes...
Evan Cheng [Mon, 27 Jul 2009 00:33:08 +0000 (00:33 +0000)]
Use the right instructions to copy between GPR and the more strictive tGPR classes. t2MOV does not match the RC requirements.

llvm-svn: 77175

15 years agoMerge isLoadFromStackSlot into one since it behaves the same regardless of sub-target.
Evan Cheng [Mon, 27 Jul 2009 00:24:36 +0000 (00:24 +0000)]
Merge isLoadFromStackSlot into one since it behaves the same regardless of sub-target.

llvm-svn: 77174

15 years agoJust use a single isMoveInstr to catch all the cases.
Evan Cheng [Mon, 27 Jul 2009 00:05:15 +0000 (00:05 +0000)]
Just use a single isMoveInstr to catch all the cases.

llvm-svn: 77173

15 years agoRename tMOVhi2lor to tMOVgpr2tgpr. It's not moving from a high register to a low...
Evan Cheng [Sun, 26 Jul 2009 23:59:01 +0000 (23:59 +0000)]
Rename tMOVhi2lor to tMOVgpr2tgpr. It's not moving from a high register to a low register. It's moving from a GPR register class to a more restrictive tGPR class. Also change tMOVlor2hir, and tMOVhir2hir.

llvm-svn: 77172

15 years agoReorganize code a bit to reduce indentation. No visible functionality
Eli Friedman [Sun, 26 Jul 2009 23:47:17 +0000 (23:47 +0000)]
Reorganize code a bit to reduce indentation.  No visible functionality
change.

llvm-svn: 77171

15 years agoFix libLTO:
Nick Lewycky [Sun, 26 Jul 2009 22:16:39 +0000 (22:16 +0000)]
Fix libLTO:
 * Call InitializeAllTargets on every path where we might query the
   TargetRegistry. This fixes PR4604.
 * flush the formatted_raw_ostream& or else not all of the assembly will make
   it to the .s file. (It doesn't do this in its destructor?!)
 * Due to a reversed conditional, libLTO was reporting many symbols as both
   defined and undefined, including two definitions of the same symbol name
   in its symbol list.

llvm-svn: 77170

15 years agoDon't use llvm_report_error in libSystem, this is a layering violation.
Daniel Dunbar [Sun, 26 Jul 2009 21:16:42 +0000 (21:16 +0000)]
Don't use llvm_report_error in libSystem, this is a layering violation.

llvm-svn: 77169

15 years agountangle a TargetAsmInfo hack where ELFTargetAsmInfo would create a
Chris Lattner [Sun, 26 Jul 2009 19:23:28 +0000 (19:23 +0000)]
untangle a TargetAsmInfo hack where ELFTargetAsmInfo would create a
'unnamed' bss section, but some impls would want a named one.  Since
they don't have consistent behavior, just make each target do their
own thing, instead of doing something "sortof common" then having
targets change immutable objects later.

llvm-svn: 77165

15 years agoRefactor. Get rid of a few more getOpcode() calls.
Evan Cheng [Sun, 26 Jul 2009 18:55:14 +0000 (18:55 +0000)]
Refactor. Get rid of a few more getOpcode() calls.

llvm-svn: 77164

15 years agoreduce indentation
Chris Lattner [Sun, 26 Jul 2009 18:08:15 +0000 (18:08 +0000)]
reduce indentation

llvm-svn: 77161

15 years agoUse the RHS length instead of the LHS length. They are both the same,
Chris Lattner [Sun, 26 Jul 2009 17:46:03 +0000 (17:46 +0000)]
Use the RHS length instead of the LHS length.  They are both the same,
but this ends up compiling code like this:

int foo(const StringRef &R) {
  return R == "food";
}

to use a constant sized memcmp instead of a variable memcmp.

llvm-svn: 77160

15 years agofix segfault (because of erasing after the vector boundaries) when the cached token...
Nuno Lopes [Sun, 26 Jul 2009 16:36:45 +0000 (16:36 +0000)]
fix segfault (because of erasing after the vector boundaries) when the cached token position is at the end

llvm-svn: 77159

15 years agoadd gentoo 2009.0 g++ header locations
Nuno Lopes [Sun, 26 Jul 2009 16:14:05 +0000 (16:14 +0000)]
add gentoo 2009.0 g++ header locations

llvm-svn: 77158

15 years agoFix the breakage caused by 76950.
Sanjiv Gupta [Sun, 26 Jul 2009 10:25:01 +0000 (10:25 +0000)]
Fix the breakage caused by 76950.
PIC16 has special naming conventions for variables having section names specified via section attribute.

llvm-svn: 77153

15 years agoRemove Value::getName{Start,End}, the last of the old Name APIs.
Daniel Dunbar [Sun, 26 Jul 2009 09:48:23 +0000 (09:48 +0000)]
Remove Value::getName{Start,End}, the last of the old Name APIs.

llvm-svn: 77152

15 years agoSwitch to getName()
Daniel Dunbar [Sun, 26 Jul 2009 09:28:40 +0000 (09:28 +0000)]
Switch to getName()

llvm-svn: 77151

15 years agoMake sure getName().data() is always null terminated.
Daniel Dunbar [Sun, 26 Jul 2009 09:22:02 +0000 (09:22 +0000)]
Make sure getName().data() is always null terminated.

llvm-svn: 77149

15 years agoRemove Value::getNameLen
Daniel Dunbar [Sun, 26 Jul 2009 08:34:35 +0000 (08:34 +0000)]
Remove Value::getNameLen

llvm-svn: 77148

15 years agoSwitch to using llvm::Value::getName()
Daniel Dunbar [Sun, 26 Jul 2009 08:32:30 +0000 (08:32 +0000)]
Switch to using llvm::Value::getName()

llvm-svn: 77147

15 years agoMove MSILModule and MSILWriter into the 'llvm' namespace, instead of the 'MSIL'
Nick Lewycky [Sun, 26 Jul 2009 08:16:51 +0000 (08:16 +0000)]
Move MSILModule and MSILWriter into the 'llvm' namespace, instead of the 'MSIL'
namespace which could very well conflict with non-LLVM code.

Also clean up some spacing, remove an extra header.

llvm-svn: 77146

15 years agoEliminate some uses of DOUT, cerr, and getNameStart().
Daniel Dunbar [Sun, 26 Jul 2009 07:49:05 +0000 (07:49 +0000)]
Eliminate some uses of DOUT, cerr, and getNameStart().

llvm-svn: 77145

15 years agoremove a densemap from TargetAsmInfo that was uniquing the targetflags strings,
Chris Lattner [Sun, 26 Jul 2009 07:33:58 +0000 (07:33 +0000)]
remove a densemap from TargetAsmInfo that was uniquing the targetflags strings,
just use a smallstring instead.

llvm-svn: 77144

15 years agosimplify SectionFlagsForGlobal, even though I want to kill it.
Chris Lattner [Sun, 26 Jul 2009 07:17:39 +0000 (07:17 +0000)]
simplify SectionFlagsForGlobal, even though I want to kill it.

llvm-svn: 77143

15 years agomake SectionKind keep track of whether a global had an explicit
Chris Lattner [Sun, 26 Jul 2009 07:14:28 +0000 (07:14 +0000)]
make SectionKind keep track of whether a global had an explicit
section specified for it or not.

llvm-svn: 77142

15 years agosimplify this code now that SectionKind knows if a global is weak or not.
Chris Lattner [Sun, 26 Jul 2009 07:07:01 +0000 (07:07 +0000)]
simplify this code now that SectionKind knows if a global is weak or not.

llvm-svn: 77141

15 years agomake SectionKind know whether a symbol is weak or not in addition
Chris Lattner [Sun, 26 Jul 2009 07:00:12 +0000 (07:00 +0000)]
make SectionKind know whether a symbol is weak or not in addition
to its classification.

llvm-svn: 77140

15 years agoMake the kind actually be private.
Chris Lattner [Sun, 26 Jul 2009 06:51:27 +0000 (06:51 +0000)]
Make the kind actually be private.

llvm-svn: 77139

15 years agorename Mergable -> Mergeable and Writable -> Writeable
Chris Lattner [Sun, 26 Jul 2009 06:48:26 +0000 (06:48 +0000)]
rename Mergable -> Mergeable and Writable -> Writeable

llvm-svn: 77138

15 years agotwo files I missed in the last commit.
Chris Lattner [Sun, 26 Jul 2009 06:36:20 +0000 (06:36 +0000)]
two files I missed in the last commit.

llvm-svn: 77137

15 years agoremove a bunch of helper functions, just use SectionKind::get instead.
Chris Lattner [Sun, 26 Jul 2009 06:34:33 +0000 (06:34 +0000)]
remove a bunch of helper functions, just use SectionKind::get instead.

llvm-svn: 77135

15 years agosimplify getSectionForMergableConstant to take a SectionKind.
Chris Lattner [Sun, 26 Jul 2009 06:26:55 +0000 (06:26 +0000)]
simplify getSectionForMergableConstant to take a SectionKind.

llvm-svn: 77134

15 years agoprecreate 4/8/16 byte mergable sections to simplify code.
Chris Lattner [Sun, 26 Jul 2009 06:16:11 +0000 (06:16 +0000)]
precreate 4/8/16 byte mergable sections to simplify code.

llvm-svn: 77133

15 years agointroduce specialized mergable const sectionkinds for elements of size 4/8/16 to
Chris Lattner [Sun, 26 Jul 2009 06:11:33 +0000 (06:11 +0000)]
introduce specialized mergable const sectionkinds for elements of size 4/8/16 to
simplify targets.

llvm-svn: 77132

15 years agoimprove the default impl of getSectionForMergableConstant by
Chris Lattner [Sun, 26 Jul 2009 05:57:07 +0000 (05:57 +0000)]
improve the default impl of getSectionForMergableConstant by
putting readonly constants in the readonly section if we have one.

llvm-svn: 77131

15 years agomake elf targets correctly handle constant pool entries that require relocations.
Chris Lattner [Sun, 26 Jul 2009 05:55:20 +0000 (05:55 +0000)]
make elf targets correctly handle constant pool entries that require relocations.

llvm-svn: 77130

15 years agoRearrange all the SectionKinds and structure them into a hierarchical
Chris Lattner [Sun, 26 Jul 2009 05:44:20 +0000 (05:44 +0000)]
Rearrange all the SectionKinds and structure them into a hierarchical
group instead of a bunch of random unrelated ideas.  Provide predicates
to categorize a SectionKind into a group, and use them instead of
getKind() throughout the code.

This also renames a ton of SectionKinds to be more consistent and
evocative, and adds a huge number of comments on the enums so that
I will hopefully be able to remember how this stuff works long from
now.

llvm-svn: 77129

15 years agoUpdate target registration description in Writing An LLVM Backend, and add
Daniel Dunbar [Sun, 26 Jul 2009 05:41:39 +0000 (05:41 +0000)]
Update target registration description in Writing An LLVM Backend, and add
a mention in release notes.

llvm-svn: 77128

15 years agoSort list of targets in --version.
Daniel Dunbar [Sun, 26 Jul 2009 05:09:50 +0000 (05:09 +0000)]
Sort list of targets in --version.

llvm-svn: 77127

15 years agoFactor commonality in triple match routines into helper template for registering
Daniel Dunbar [Sun, 26 Jul 2009 05:03:33 +0000 (05:03 +0000)]
Factor commonality in triple match routines into helper template for registering
classes, and migrate existing targets over.

llvm-svn: 77126

15 years agoOops, forgot XCore. Sorry XCore!
Daniel Dunbar [Sun, 26 Jul 2009 04:52:45 +0000 (04:52 +0000)]
Oops, forgot XCore. Sorry XCore!

llvm-svn: 77125

15 years agoUpdate for API change.
Daniel Dunbar [Sun, 26 Jul 2009 04:23:03 +0000 (04:23 +0000)]
Update for API change.

llvm-svn: 77124

15 years agofix isReadOnly predicate to not include data that has to be
Chris Lattner [Sun, 26 Jul 2009 04:18:10 +0000 (04:18 +0000)]
fix isReadOnly predicate to not include data that has to be
writable because of teh dynamic linker.

llvm-svn: 77122

15 years agoremove a dead enum case.
Chris Lattner [Sun, 26 Jul 2009 04:09:02 +0000 (04:09 +0000)]
remove a dead enum case.

llvm-svn: 77121

15 years agoUpdate Triple to use StringRef/Twine based APIs.
Daniel Dunbar [Sun, 26 Jul 2009 03:31:47 +0000 (03:31 +0000)]
Update Triple to use StringRef/Twine based APIs.
 - This is now shorter, simpler, safer, and more efficient, what a deal.

llvm-svn: 77119

15 years agoAdd StringRef::{slice, split}, two convenient string operations which are simple
Daniel Dunbar [Sun, 26 Jul 2009 03:18:15 +0000 (03:18 +0000)]
Add StringRef::{slice, split}, two convenient string operations which are simple
and efficient on a StringRef.

llvm-svn: 77117

15 years agoput normal data into .data instead of .data.rel on elf systems.
Chris Lattner [Sun, 26 Jul 2009 03:06:11 +0000 (03:06 +0000)]
put normal data into .data instead of .data.rel on elf systems.

llvm-svn: 77116

15 years agoRemove unused header
Daniel Dunbar [Sun, 26 Jul 2009 02:23:52 +0000 (02:23 +0000)]
Remove unused header

llvm-svn: 77115

15 years agoKill Target specific ModuleMatchQuality stuff.
Daniel Dunbar [Sun, 26 Jul 2009 02:22:58 +0000 (02:22 +0000)]
Kill Target specific ModuleMatchQuality stuff.
 - This was overkill and inconsistently implemented.

llvm-svn: 77114

15 years agoUpdate for API change.
Daniel Dunbar [Sun, 26 Jul 2009 02:21:04 +0000 (02:21 +0000)]
Update for API change.

llvm-svn: 77112

15 years agoAdd TargetRegistry::lookupTarget.
Daniel Dunbar [Sun, 26 Jul 2009 02:12:58 +0000 (02:12 +0000)]
Add TargetRegistry::lookupTarget.
 - This is a simplified mechanism which just looks up a target based on the
   target triple, with a few additional flags.

 - Remove getClosestStaticTargetForModule, the moral equivalent is now:
     lookupTarget(Mod->getTargetTriple, true, false, ...);

 - This no longer does the fuzzy matching with target data (based on endianness
   and pointer width) that getClosestStaticTargetForModule was doing, but this
   was deemed unnecessary.

llvm-svn: 77111

15 years agoeliminate a pointless switch stmt.
Chris Lattner [Sun, 26 Jul 2009 01:44:55 +0000 (01:44 +0000)]
eliminate a pointless switch stmt.

llvm-svn: 77110

15 years agoLookup targets by Triple instead of Module.
Daniel Dunbar [Sun, 26 Jul 2009 01:27:26 +0000 (01:27 +0000)]
Lookup targets by Triple instead of Module.

llvm-svn: 77108

15 years agofinish simplifying DarwinTargetAsmInfo::SelectSectionForGlobal
Chris Lattner [Sun, 26 Jul 2009 01:24:18 +0000 (01:24 +0000)]
finish simplifying DarwinTargetAsmInfo::SelectSectionForGlobal
for now.  Make the section switching directives more consistent
by not including \n and including \t for them all.

llvm-svn: 77107

15 years agoSome clients rely on getName{Start,End} not returning 0, even if the length is
Daniel Dunbar [Sun, 26 Jul 2009 01:04:10 +0000 (01:04 +0000)]
Some clients rely on getName{Start,End} not returning 0, even if the length is
0.
 - I could have swore the prev change went through a make check cycle...

llvm-svn: 77106

15 years agoRewrite getName{Start,End,Len} in terms of getName(), instead of vice-versa.
Daniel Dunbar [Sun, 26 Jul 2009 00:51:56 +0000 (00:51 +0000)]
Rewrite getName{Start,End,Len} in terms of getName(), instead of vice-versa.

llvm-svn: 77105

15 years agosimplify DarwinTargetAsmInfo::SelectSectionForGlobal a bit
Chris Lattner [Sun, 26 Jul 2009 00:51:36 +0000 (00:51 +0000)]
simplify DarwinTargetAsmInfo::SelectSectionForGlobal a bit
and make it more aggressive, we now put:

const int G2 __attribute__((weak)) = 42;

into the text (readonly) segment like gcc, previously we put
it into the data (readwrite) segment.

llvm-svn: 77104

15 years agosimplify some predicates, add isMergableString()
Chris Lattner [Sun, 26 Jul 2009 00:50:43 +0000 (00:50 +0000)]
simplify some predicates, add isMergableString()

llvm-svn: 77103

15 years agoSimplify.
Daniel Dunbar [Sun, 26 Jul 2009 00:42:33 +0000 (00:42 +0000)]
Simplify.

llvm-svn: 77102

15 years agoAdd support for ARM Neon VREV instructions.
Bob Wilson [Sun, 26 Jul 2009 00:39:34 +0000 (00:39 +0000)]
Add support for ARM Neon VREV instructions.
Patch by Anton Korzh, with some modifications from me.

llvm-svn: 77101

15 years agoRemove Value::setName(const char*, unsigned).
Daniel Dunbar [Sun, 26 Jul 2009 00:34:27 +0000 (00:34 +0000)]
Remove Value::setName(const char*, unsigned).

llvm-svn: 77100

15 years agoRemove Value::setName(const char*).
Daniel Dunbar [Sun, 26 Jul 2009 00:17:14 +0000 (00:17 +0000)]
Remove Value::setName(const char*).
 - Split into a separate patch because there is a slight functionality change,
   it is no longer valid to call setName(0), which was equivalent to
   setName(""). I'm hoping no one depends on this...

llvm-svn: 77099

15 years agoRemove Value::{isName, getNameRef}.
Daniel Dunbar [Sat, 25 Jul 2009 23:55:21 +0000 (23:55 +0000)]
Remove Value::{isName, getNameRef}.

Also, change MDString to use a StringRef.

llvm-svn: 77098

15 years agoPreserve qualifiers.
Mike Stump [Sat, 25 Jul 2009 23:24:03 +0000 (23:24 +0000)]
Preserve qualifiers.

llvm-svn: 77097

15 years agomake SectionKind be a first-class pod struct instead of just
Chris Lattner [Sat, 25 Jul 2009 23:21:55 +0000 (23:21 +0000)]
make SectionKind be a first-class pod struct instead of just
an enum.

llvm-svn: 77096

15 years agoPR3575 - warn on declared variable or function attributes after a definition, which...
Ryan Flynn [Sat, 25 Jul 2009 22:29:44 +0000 (22:29 +0000)]
PR3575 - warn on declared variable or function attributes after a definition, which are currently ignored.

llvm-svn: 77095

15 years agoRefactor ObjCImplDecl::getInstanceMethod/getClassMethod into one
Argyrios Kyrtzidis [Sat, 25 Jul 2009 22:16:03 +0000 (22:16 +0000)]
Refactor ObjCImplDecl::getInstanceMethod/getClassMethod into one
ObjCImplDecl::getMethod.

llvm-svn: 77094

15 years agoRefactor ObjCInterfaceDecl::lookupInstanceMethod/lookupClassMethod into one
Argyrios Kyrtzidis [Sat, 25 Jul 2009 22:15:51 +0000 (22:15 +0000)]
Refactor ObjCInterfaceDecl::lookupInstanceMethod/lookupClassMethod into one
ObjCInterfaceDecl::lookupMethod.

llvm-svn: 77093

15 years agoRefactor ObjCProtocolDecl::lookupInstanceMethod/lookupClassMethod into one
Argyrios Kyrtzidis [Sat, 25 Jul 2009 22:15:38 +0000 (22:15 +0000)]
Refactor ObjCProtocolDecl::lookupInstanceMethod/lookupClassMethod into one
ObjCProtocolDecl::lookupMethod.

llvm-svn: 77092

15 years agoRefactor ObjCContainerDecl::getInstanceMethod/getClassMethod into one
Argyrios Kyrtzidis [Sat, 25 Jul 2009 22:15:22 +0000 (22:15 +0000)]
Refactor ObjCContainerDecl::getInstanceMethod/getClassMethod into one
ObjCContainerDecl::getMethod.

Avoids code duplication.

llvm-svn: 77091

15 years agoImprove comments (Thanks Fariborz).
Mike Stump [Sat, 25 Jul 2009 22:12:02 +0000 (22:12 +0000)]
Improve comments (Thanks Fariborz).

llvm-svn: 77090

15 years agoAdd noreturn as a type attribute, handle printing for them and handle
Mike Stump [Sat, 25 Jul 2009 21:26:53 +0000 (21:26 +0000)]
Add noreturn as a type attribute, handle printing for them and handle
calls to noreturn function pointers when CFG building.

llvm-svn: 77089

15 years agoAdded a test and fixed a bug in BumpPtrAllocator relating to large alignment
Reid Kleckner [Sat, 25 Jul 2009 21:26:02 +0000 (21:26 +0000)]
Added a test and fixed a bug in BumpPtrAllocator relating to large alignment
values.  Hopefully this fixes PR4622.

llvm-svn: 77088

15 years agoir-gen for non-virtual base class initialization
Fariborz Jahanian [Sat, 25 Jul 2009 21:12:28 +0000 (21:12 +0000)]
ir-gen for non-virtual base class initialization
in constructors.

llvm-svn: 77087

15 years agothis is (unfortunately) several changes mixed together:
Chris Lattner [Sat, 25 Jul 2009 18:57:34 +0000 (18:57 +0000)]
this is (unfortunately) several changes mixed together:

1. Spell SectionFlags::Writeable as "Writable".
2. Add predicates for deriving SectionFlags from SectionKinds.
3. Sink ELF-specific getSectionPrefixForUniqueGlobal impl into
   ELFTargetAsmInfo.
4. Fix SectionFlagsForGlobal to know that BSS/ThreadBSS has the
   BSS bit set (the real fix for PR4619).
5. Fix isSuitableForBSS to not put globals with explicit sections
   set in BSS (which was the reason #4 wasn't fixed earlier).
6. Remove my previous hack for PR4619.

llvm-svn: 77085

15 years agodocument some invariants.
Chris Lattner [Sat, 25 Jul 2009 18:11:58 +0000 (18:11 +0000)]
document some invariants.

llvm-svn: 77084

15 years agoadd the most expedient hack to fix PR4619, along with a testcase.
Chris Lattner [Sat, 25 Jul 2009 17:57:37 +0000 (17:57 +0000)]
add the most expedient hack to fix PR4619, along with a testcase.
Thanks to Rafael for the great example.

llvm-svn: 77083

15 years agoFix a few comments to say "backedge-taken count" instead of
Dan Gohman [Sat, 25 Jul 2009 16:18:38 +0000 (16:18 +0000)]
Fix a few comments to say "backedge-taken count" instead of
"trip count".

llvm-svn: 77081

15 years agoSCEV objects are no longer reference-counted.
Dan Gohman [Sat, 25 Jul 2009 16:18:07 +0000 (16:18 +0000)]
SCEV objects are no longer reference-counted.

llvm-svn: 77080

15 years agoUpdate comments to new-style syntax.
Dan Gohman [Sat, 25 Jul 2009 16:03:55 +0000 (16:03 +0000)]
Update comments to new-style syntax.

llvm-svn: 77079

15 years agoWhen attempting to sign-extend an addrec by interpreting
Dan Gohman [Sat, 25 Jul 2009 16:03:30 +0000 (16:03 +0000)]
When attempting to sign-extend an addrec by interpreting
the step value as unsigned, the start value and the addrec
itself still need to be treated as signed.

llvm-svn: 77078

15 years agoRemove spurious semicolons.
Dan Gohman [Sat, 25 Jul 2009 16:00:54 +0000 (16:00 +0000)]
Remove spurious semicolons.

llvm-svn: 77077

15 years agoImplement C++ semantics for C-style and functional-style casts. This regresses Clang...
Sebastian Redl [Sat, 25 Jul 2009 15:41:38 +0000 (15:41 +0000)]
Implement C++ semantics for C-style and functional-style casts. This regresses Clang extension conversions, like vectors, but allows conversions via constructors and conversion operators.
Add custom conversions to static_cast.

llvm-svn: 77076

15 years agoMultiTestRunner: Make sure to point at src dir, for out of tree builds.
Daniel Dunbar [Sat, 25 Jul 2009 15:26:08 +0000 (15:26 +0000)]
MultiTestRunner: Make sure to point at src dir, for out of tree builds.

Factor out routine for executing the script commands.

llvm-svn: 77075

15 years agoMultiTestRunner: Cleanup test execution & output.
Daniel Dunbar [Sat, 25 Jul 2009 14:46:05 +0000 (14:46 +0000)]
MultiTestRunner: Cleanup test execution & output.
 - Stop writing everything to files.

 - Make test output more standard.

llvm-svn: 77074

15 years agoMultiTestRunner: Drop external script and DejaGNU compatibility options for now.
Daniel Dunbar [Sat, 25 Jul 2009 13:19:40 +0000 (13:19 +0000)]
MultiTestRunner: Drop external script and DejaGNU compatibility options for now.
 - We don't use the former, and the latter doesn't actually work.

llvm-svn: 77073

15 years agoMultiTestRunner: Disable valgrind support for now, I don't feel like maintaining
Daniel Dunbar [Sat, 25 Jul 2009 13:13:06 +0000 (13:13 +0000)]
MultiTestRunner: Disable valgrind support for now, I don't feel like maintaining
it currently.

llvm-svn: 77072

15 years agoMultiTestRunner/Win32: Add SYSTEMROOT to environment, replace '&&' in .bat
Daniel Dunbar [Sat, 25 Jul 2009 12:57:15 +0000 (12:57 +0000)]
MultiTestRunner/Win32: Add SYSTEMROOT to environment, replace '&&' in .bat
files.

llvm-svn: 77071

15 years agoMake having no RUN line a failure.
Daniel Dunbar [Sat, 25 Jul 2009 12:47:38 +0000 (12:47 +0000)]
Make having no RUN line a failure.

Doug, please look at decltype-crash and instantiate-function-1.mm, I'm not sure
if they are actually testing the right thing / anything.

llvm-svn: 77070

15 years agoRemove TESTDIR initialization, MultiTestRunner can find the test dirs itself.
Daniel Dunbar [Sat, 25 Jul 2009 12:44:58 +0000 (12:44 +0000)]
Remove TESTDIR initialization, MultiTestRunner can find the test dirs itself.

llvm-svn: 77069

15 years agoRemove empty tests, left over from an svn revert.
Daniel Dunbar [Sat, 25 Jul 2009 12:41:25 +0000 (12:41 +0000)]
Remove empty tests, left over from an svn revert.

llvm-svn: 77068