platform/upstream/llvm.git
15 years ago80 columns!
Devang Patel [Mon, 27 Jul 2009 20:30:05 +0000 (20:30 +0000)]
80 columns!

llvm-svn: 77243

15 years agoRemove TPat. No patterns depend on just isThumb(). Must use either T1Pat (isThumb1Onl...
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).

llvm-svn: 77242

15 years agofix test (broken in r77224)
Benjamin Kramer [Mon, 27 Jul 2009 19:53:49 +0000 (19:53 +0000)]
fix test (broken in r77224)

llvm-svn: 77241

15 years agoThanks, Bill!
Sean Callanan [Mon, 27 Jul 2009 19:45:28 +0000 (19:45 +0000)]
Thanks, Bill!

llvm-svn: 77240

15 years agofix comment
Bruno Cardoso Lopes [Mon, 27 Jul 2009 19:38:38 +0000 (19:38 +0000)]
fix comment

llvm-svn: 77239

15 years agoadd module identifier to the elf object file
Bruno Cardoso Lopes [Mon, 27 Jul 2009 19:32:57 +0000 (19:32 +0000)]
add module identifier to the elf object file

llvm-svn: 77238

15 years agoAdd noreturn for exit.
Mike Stump [Mon, 27 Jul 2009 19:14:18 +0000 (19:14 +0000)]
Add noreturn for exit.

llvm-svn: 77237

15 years agoSink getSectionPrefixForUniqueGlobal down into the TAI
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.

llvm-svn: 77236

15 years agoMake ObjCImplDecl inherit from ObjCContainerDecl.
Argyrios Kyrtzidis [Mon, 27 Jul 2009 19:04:32 +0000 (19:04 +0000)]
Make ObjCImplDecl inherit from ObjCContainerDecl.

ObjCContainerDecl now is the root class for objc decls that contain methods.

llvm-svn: 77235

15 years agoTweak MultiTestRunner --path argument.
Daniel Dunbar [Mon, 27 Jul 2009 19:01:13 +0000 (19:01 +0000)]
Tweak MultiTestRunner --path argument.
 - Accept multiple values instead of embedding separator.
 - Make sure this gets used when searching for 'clang' binary.
 - Switch makefiles to using --path to stay in sync with cmake.

llvm-svn: 77234

15 years agoremove dead code.
Chris Lattner [Mon, 27 Jul 2009 19:00:33 +0000 (19:00 +0000)]
remove dead code.

llvm-svn: 77233

15 years agoHandle external symbols for ELF and add some static methods to ELFSym
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

llvm-svn: 77232

15 years agoMore DCE.
Evan Cheng [Mon, 27 Jul 2009 18:48:45 +0000 (18:48 +0000)]
More DCE.

llvm-svn: 77231

15 years agoconvertToThreeAddress can't handle Thumb2 instructions (which don't have same address...
Evan Cheng [Mon, 27 Jul 2009 18:44:00 +0000 (18:44 +0000)]
convertToThreeAddress can't handle Thumb2 instructions (which don't have same address mode as ARM instructions).

llvm-svn: 77230

15 years agoInitialize mdnNext.
Devang Patel [Mon, 27 Jul 2009 18:42:56 +0000 (18:42 +0000)]
Initialize mdnNext.

llvm-svn: 77229

15 years agoUse DICompositeType->replaceAllUsesWith()
Devang Patel [Mon, 27 Jul 2009 18:42:03 +0000 (18:42 +0000)]
Use DICompositeType->replaceAllUsesWith()

llvm-svn: 77228

15 years agoGet rid of more dead code.
Evan Cheng [Mon, 27 Jul 2009 18:38:54 +0000 (18:38 +0000)]
Get rid of more dead code.

llvm-svn: 77227

15 years agoMany of Daniel's fixes.
Sean Callanan [Mon, 27 Jul 2009 18:33:24 +0000 (18:33 +0000)]
Many of Daniel's fixes.

I'm returning the number of bytes actually copied so that the client has some
warning when it reads past the end of the buffer.

I'm keeping the distinction between getByte() and getBytes() for now for
subclasses that use functions like ptrace() on Linux and only have a restricted
interface.  This makes their implementation easier, and subclasses can always
write a one-line implementation of readByte() that uses their custom
readBytes().

llvm-svn: 77225

15 years agoFix typo in error message
Douglas Gregor [Mon, 27 Jul 2009 18:33:18 +0000 (18:33 +0000)]
Fix typo in error message

llvm-svn: 77224

15 years agoPrepare CMake regression testing for Daniel's upcoming fix to the test runner
Douglas Gregor [Mon, 27 Jul 2009 18:31:49 +0000 (18:31 +0000)]
Prepare CMake regression testing for Daniel's upcoming fix to the test runner

llvm-svn: 77223

15 years agoCosmetic change.
Evan Cheng [Mon, 27 Jul 2009 18:31:40 +0000 (18:31 +0000)]
Cosmetic change.

llvm-svn: 77222

15 years agoClean up.
Evan Cheng [Mon, 27 Jul 2009 18:25:24 +0000 (18:25 +0000)]
Clean up.

llvm-svn: 77221

15 years agoCMake configuration: find mkdtemp, mkstemp, mktemp.
Douglas Gregor [Mon, 27 Jul 2009 18:23:41 +0000 (18:23 +0000)]
CMake configuration: find mkdtemp, mkstemp, mktemp.

llvm-svn: 77219

15 years agoGet rid of some more getOpcode calls.
Evan Cheng [Mon, 27 Jul 2009 18:20:05 +0000 (18:20 +0000)]
Get rid of some more getOpcode calls.

This also fixes potential problems in ARMBaseInstrInfo routines not recognizing thumb1 instructions when 32-bit and 16-bit instructions mix.

llvm-svn: 77218

15 years agoFix build.
Mike Stump [Mon, 27 Jul 2009 18:18:30 +0000 (18:18 +0000)]
Fix build.

llvm-svn: 77217

15 years agoFollowing discussion on llvm-dev ("proposed new rule for getelementptr"),
Dan Gohman [Mon, 27 Jul 2009 18:07:55 +0000 (18:07 +0000)]
Following discussion on llvm-dev ("proposed new rule for getelementptr"),
add a new "Pointer Aliasing Rules" section.

llvm-svn: 77216

15 years agoRemove duplicate entries while printing decls for external symbols.
Sanjiv Gupta [Mon, 27 Jul 2009 18:04:34 +0000 (18:04 +0000)]
Remove duplicate entries while printing decls for external symbols.
Some libcall names are same, so they were getting printed twice.

llvm-svn: 77215

15 years agoCMake: make sure that the *.inc files for libSystem show up in the resulting
Douglas Gregor [Mon, 27 Jul 2009 17:55:55 +0000 (17:55 +0000)]
CMake: make sure that the *.inc files for libSystem show up in the resulting
project.

llvm-svn: 77213

15 years agoWhen instantiating a variable without an initializer, call
Douglas Gregor [Mon, 27 Jul 2009 17:43:39 +0000 (17:43 +0000)]
When instantiating a variable without an initializer, call
ActOnUninitializedDecl.

llvm-svn: 77211

15 years agoadd an explanatory comment about why we drop these in readonly and
Chris Lattner [Mon, 27 Jul 2009 17:39:40 +0000 (17:39 +0000)]
add an explanatory comment about why we drop these in readonly and
not in mergable

llvm-svn: 77210

15 years agoDo not seed mstadata into the value map.
Devang Patel [Mon, 27 Jul 2009 17:17:04 +0000 (17:17 +0000)]
Do not seed mstadata into the value map.

llvm-svn: 77208

15 years agoUse the CGRecordLayoutBuilder even if there are no fields, because in C++ an empty...
Anders Carlsson [Mon, 27 Jul 2009 17:10:54 +0000 (17:10 +0000)]
Use the CGRecordLayoutBuilder even if there are no fields, because in C++ an empty class will have a padding byte.

llvm-svn: 77205

15 years agomake COFF work like ELF and macho, by splitting out into its own
Chris Lattner [Mon, 27 Jul 2009 16:45:59 +0000 (16:45 +0000)]
make COFF work like ELF and macho, by splitting out into its own
header even though there is only one COFF target.

llvm-svn: 77204

15 years agodon't create default text/data sections for all targets.
Chris Lattner [Mon, 27 Jul 2009 16:44:04 +0000 (16:44 +0000)]
don't create default text/data sections for all targets.

llvm-svn: 77203

15 years agoApparently alpha doesn't use ElfTargetAsmInfo (?)
Chris Lattner [Mon, 27 Jul 2009 16:42:14 +0000 (16:42 +0000)]
Apparently alpha doesn't use ElfTargetAsmInfo (?)

llvm-svn: 77202

15 years agoThumb-2 does not have RSC.
David Goodwin [Mon, 27 Jul 2009 16:39:05 +0000 (16:39 +0000)]
Thumb-2 does not have RSC.

llvm-svn: 77201

15 years agoAdd ".w" suffix for wide thumb-2 instructions.
David Goodwin [Mon, 27 Jul 2009 16:31:55 +0000 (16:31 +0000)]
Add ".w" suffix for wide thumb-2 instructions.

llvm-svn: 77199

15 years agoinline a method.
Chris Lattner [Mon, 27 Jul 2009 16:27:32 +0000 (16:27 +0000)]
inline a method.

llvm-svn: 77198

15 years agoapparently we have "windows" and "coff", which are different(?)
Chris Lattner [Mon, 27 Jul 2009 16:22:39 +0000 (16:22 +0000)]
apparently we have "windows" and "coff", which are different(?)

llvm-svn: 77197

15 years agosink text/data section creation down into the target-specific places that
Chris Lattner [Mon, 27 Jul 2009 16:20:58 +0000 (16:20 +0000)]
sink text/data section creation down into the target-specific places that
should know about them.  PECoff doesn't share these, and I want all sections
to be created by object-file-specific code.

llvm-svn: 77196

15 years agoTest case to check that separate section is created for a global variable specified...
Sanjiv Gupta [Mon, 27 Jul 2009 16:20:41 +0000 (16:20 +0000)]
Test case to check that separate section is created for a global variable specified with section attribute.

llvm-svn: 77195

15 years agoChange the assembly syntax for nsw, nuw, and exact, putting them
Dan Gohman [Mon, 27 Jul 2009 16:11:46 +0000 (16:11 +0000)]
Change the assembly syntax for nsw, nuw, and exact, putting them
after their associated opcodes rather than before. This makes them
a little easier to read.

llvm-svn: 77194

15 years agoFix wording in comments.
Dan Gohman [Mon, 27 Jul 2009 16:09:48 +0000 (16:09 +0000)]
Fix wording in comments.

llvm-svn: 77193

15 years agoupdate testcase.
Chris Lattner [Mon, 27 Jul 2009 15:52:58 +0000 (15:52 +0000)]
update testcase.

llvm-svn: 77192

15 years ago32-bit darwin targets support .literal16 too.
Chris Lattner [Mon, 27 Jul 2009 15:44:04 +0000 (15:44 +0000)]
32-bit darwin targets support .literal16 too.

llvm-svn: 77191

15 years agoEnable the new struct type builder now that the constant struct builder works. (The...
Anders Carlsson [Mon, 27 Jul 2009 15:31:55 +0000 (15:31 +0000)]
Enable the new struct type builder now that the constant struct builder works. (The old code will still be there until we know that everything works well.

llvm-svn: 77190

15 years agoFix a tail padding bug in the record layout builder code. The bug was found by an...
Anders Carlsson [Mon, 27 Jul 2009 14:55:54 +0000 (14:55 +0000)]
Fix a tail padding bug in the record layout builder code. The bug was found by an existing test.

llvm-svn: 77189

15 years agoRemove trailing slashes from include paths. Some versions of mingw don't like them.
Benjamin Kramer [Mon, 27 Jul 2009 09:39:18 +0000 (09:39 +0000)]
Remove trailing slashes from include paths. Some versions of mingw don't like them.

llvm-svn: 77188

15 years agoTest commit: fix typo
Benjamin Kramer [Mon, 27 Jul 2009 09:06:52 +0000 (09:06 +0000)]
Test commit: fix typo

llvm-svn: 77187

15 years agoEliminate getNamed/getUnnamedSection, adding a new and unified getOrCreateSection
Chris Lattner [Mon, 27 Jul 2009 06:17:14 +0000 (06:17 +0000)]
Eliminate getNamed/getUnnamedSection, adding a new and unified getOrCreateSection
instead.

llvm-svn: 77186

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