summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Remove empty file.Benjamin Kramer2012-10-051-0/+0
| | | | llvm-svn: 165320
* Remove extraneous semicolon.Chad Rosier2012-10-051-1/+1
| | | | llvm-svn: 165319
* Implement TargetData with the DataLayout class, this will allow LLVM ↵Micah Villmow2012-10-056-993/+16
| | | | | | projects to transition to DataLayout without loosing functionality. llvm-svn: 165318
* Add ELF program header.Hemant Kulkarni2012-10-051-0/+29
| | | | llvm-svn: 165316
* - Mark the BCC and BLR defs as isCodeGenOnly per error output fromWill Schmidt2012-10-051-5/+6
| | | | | | | | | llvm-tblgen -gen-asm-matcher. PPCInstrInfo.td | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) llvm-svn: 165315
* Add PowerPC64 definitions for ELF.hAdhemerval Zanella2012-10-051-0/+4
| | | | llvm-svn: 165314
* Enable llvm/test/ExecutionEngine/MCJIT also for cygwin.NAKAMURA Takumi2012-10-052-2/+2
| | | | llvm-svn: 165313
* lli: [MCJIT] Suppress "__main" for cygming in ↵NAKAMURA Takumi2012-10-051-0/+12
| | | | | | | | LLIMCJITMemoryManager::getPointerToNamedFunction(), like legacy JITMemoryManager's. CRT's __main (aka premain) invokes global ctors on cygming. See also PR3897. llvm-svn: 165312
* [CMake] Enhance add_llvm_external_project.NAKAMURA Takumi2012-10-051-3/+9
| | | | | | | | | | | | - Substitute hyphen to underscore, s/-/_/g, as the variable name. - Additional parameter can be specified as the name of directory. e.g.) add_llvm_external_project(clang-tools-extra extra) - LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=/path/to/llvm-srcroot/tools/clang/tools/extra, by default. - Build directory is in ${CMAKE_CURRENT_BINARY_DIR}/extra llvm-svn: 165311
* SROA.cpp: Fix a warning, [-Wunused-variable]NAKAMURA Takumi2012-10-051-0/+1
| | | | llvm-svn: 165309
* Convert to unix line endings.Rafael Espindola2012-10-051-68/+68
| | | | llvm-svn: 165308
* Move this test a bit later, after the point at which we know that we eitherDuncan Sands2012-10-051-10/+10
| | | | | | | | have an alloca or a parameter, since then the alloca test should make sense to readers, while before it probably appears too specific. No functionality change. llvm-svn: 165306
* Move methods out-of-line.Bill Wendling2012-10-052-211/+291
| | | | | | | | | The internal representation of the Attributes class will be opaque. All of the query methods will need to query the opaque class. Therefore, these methods need to be out-of-line. No functionality change intended. llvm-svn: 165305
* Use method to query for attributes.Bill Wendling2012-10-051-1/+1
| | | | llvm-svn: 165304
* Remove some encoding bits I forgot to remove from SETB_C16r and SETB_C64r in ↵Craig Topper2012-10-051-3/+2
| | | | | | r165302. llvm-svn: 165303
* Move expansion of SETB_C(8/16/32/64)r from MCInstLower to ↵Craig Topper2012-10-053-19/+17
| | | | | | ExpandPostRAPseudos and mark them as pseudos in the td file. llvm-svn: 165302
* docs: Add HowToSetUpLLVMStyleRTTI.rst.Sean Silva2012-10-053-4/+291
| | | | | | | | | This document describes how to set up LLVM-style RTTI for a class hierarchy. Surprisingly, this was not previously documented. Also, link it into ProgrammersManual.html. llvm-svn: 165293
* tblgen: Use appropriate LLVM-style RTTI functions.Sean Silva2012-10-052-26/+14
| | | | | | | Use isa<> or cast<> when semantically that is what is happening. Also some trivial "style" cleanups at fix sites. llvm-svn: 165292
* tblgen: Replace uses of dynamic_cast<XXXRecTy> with dyn_cast<>.Sean Silva2012-10-054-31/+31
| | | | | | | | This is a mechanical change of dynamic_cast<> to dyn_cast<>. A number of these uses are actually more like isa<> or cast<>, and will be changed to the semanticaly appropriate one in a future patch. llvm-svn: 165291
* tblgen: Put dyn_cast<> infrastructure in place for RecTy hierarchy.Sean Silva2012-10-051-8/+62
| | | | llvm-svn: 165290
* Make sure to generate the right kind of MDNode for enum forward declarations.Eli Friedman2012-10-053-19/+17
| | | | | | PR14029, LLVM part. llvm-svn: 165288
* Follow up to r165072. Try a different approach: only move the load when it's ↵Evan Cheng2012-10-052-11/+45
| | | | | | going to be folded into the call. rdar://12437604 llvm-svn: 165287
* Teach the new SROA a new trick. Now we zap any memcpy or memmoves whichChandler Carruth2012-10-052-46/+95
| | | | | | | | | | | | are in fact identity operations. We detect these and kill their partitions so that even splitting is unaffected by them. This is particularly important because Clang relies on emitting identity memcpy operations for struct copies, and these fold away to constants very often after inlining. Fixes the last big performance FIXME I have on my plate. llvm-svn: 165285
* Lift the speculation visitor above all the helpers that are targeted atChandler Carruth2012-10-051-281/+283
| | | | | | | | | | | the rewrite visitor to make the fact that the speculation is completely independent a bit more clear. I promise that this is just a cut/paste of the one visitor and adding the annonymous namespace wrappings. The diff may look completely preposterous, it does in git for some reason. llvm-svn: 165284
* Use -object_path_lto when linking executables if building Apple style.Bill Wendling2012-10-051-11/+15
| | | | llvm-svn: 165282
* [ms-inline asm] Add support for parsing [Intel dialect] memory operands that useChad Rosier2012-10-041-7/+11
| | | | | | segmented registers. Test case to come. llvm-svn: 165275
* Rename the Target specific passes in the DataLayout class to be Target agnostic.Micah Villmow2012-10-043-83/+85
| | | | llvm-svn: 165270
* When merging connsecutive stores, use vectors to store the constant zero.Nadav Rotem2012-10-042-37/+92
| | | | llvm-svn: 165267
* Resubmit the copying of TargetData to DataLayout without any changes to the ↵Micah Villmow2012-10-043-0/+1029
| | | | | | files, this should fix the problems and the changes to rename to DataLayout will come next. llvm-svn: 165262
* This patch corrects commit 165126 by using an integer bit width instead of Preston Gurd2012-10-045-23/+23
| | | | | | | | a pointer to a type, in order to remove the uses of getGlobalContext(). Patch by Tyler Nowicki. llvm-svn: 165255
* ARM: locate user-defined text sections next to default text.Jim Grosbach2012-10-042-4/+41
| | | | | | | | | | | | Make sure functions located in user specified text sections (via the section attribute) are located together with the default text sections. Otherwise, for large object files, the relocations for call instructions are more likely to be out of range. This becomes even more likely in the presence of LTO. rdar://12402636 llvm-svn: 165254
* Backing out my changes, something screwed up from my patches, starting over.Micah Villmow2012-10-043-1029/+0
| | | | llvm-svn: 165253
* Rename TargetData to DataLayout in DataLayout.cpp. This should fix a build ↵Micah Villmow2012-10-041-33/+33
| | | | | | failure from r165249 where the wrong version of the file was submitted. llvm-svn: 165251
* Update this a bit more to represent how the prologue should work:Eric Christopher2012-10-043-5/+39
| | | | | | | | | | a) frame setup instructions define the prologue b) we shouldn't change our location mid-stream Add a test to make sure that the stack adjustment stays within the prologue. llvm-svn: 165250
* Create the DataLayout class, as a direct copy of TargetData.Micah Villmow2012-10-043-0/+1029
| | | | llvm-svn: 165249
* Adding MCJIT and MemoryBuffer unit testsAndrew Kaylor2012-10-0411-1/+869
| | | | | | Patch by Daniel Malea. llvm-svn: 165246
* Accidently checked in the files, only wanted to copy them.Micah Villmow2012-10-042-1028/+0
| | | | llvm-svn: 165244
* (no commit message)Micah Villmow2012-10-041-0/+665
| | | | llvm-svn: 165243
* (no commit message)Micah Villmow2012-10-041-0/+363
| | | | llvm-svn: 165242
* Add register encoding support in X86 backendMichael Liao2012-10-048-403/+287
| | | | | | | | - Add 'HwEncoding' for X86 registers and call getEncodingValue() to retrieve their encoding values. - This's the first step to adopt new scheme. Furthur revising is onging. llvm-svn: 165241
* Fix doxygen comment to match parameters' names.Jakub Staszak2012-10-041-1/+1
| | | | llvm-svn: 165239
* Add a comment to the commit r165187.Jakub Staszak2012-10-041-1/+3
| | | | llvm-svn: 165238
* - add tokens to PPCInstrInfo.td and PPCInstr64Bit.td to resolveWill Schmidt2012-10-042-50/+50
| | | | | | | | | | "Instruction 'foo' has no tokens" errors during llvm-tblgen -gen-asm-matcher attempts. At this time, the added tokens are "#comment" style rather than the actual mnemonic. This will be revisited once the rest of the base asmparser bits get straightened out for ppc64-elf-linux. llvm-svn: 165237
* Get MCSchedModel directly from the subtarget.Jakob Stoklund Olesen2012-10-041-2/+3
| | | | | | | Not all targets have itineraries, but the subtarget always has an MCSchedModel. llvm-svn: 165236
* Switch MachineTraceMetrics to the new TargetSchedModel interface.Jakob Stoklund Olesen2012-10-043-32/+28
| | | | llvm-svn: 165235
* test commit / whitespaceWill Schmidt2012-10-041-1/+1
| | | | llvm-svn: 165233
* SimplifyCFG: Enhance the "remove CFG edge that leads to null pointer ↵Benjamin Kramer2012-10-042-2/+31
| | | | | | | | | | dereference" optimization to also handle instructions with multiple uses. We conservatively only check the first use to avoid walking long use chains. This catches the common case of having both a load and a store to a pointer supplied by a PHI node. llvm-svn: 165232
* In my recent change to avoid use of underaligned memory I didn't notice thatDuncan Sands2012-10-042-9/+9
| | | | | | | | cpyDest can be mutated in some cases, which would then cause a crash later if indeed the memory was underaligned. This brought down several buildbots, so I guess the underaligned case is much more common than I thought! llvm-svn: 165228
* The alignment of an sret parameter is known: it must be at least theDuncan Sands2012-10-043-8/+33
| | | | | | alignment of the return type. Teach the optimizers this. llvm-svn: 165226
* Hoist some grossly duplicated code from the COFF/ELF/MachO streamers into ↵Benjamin Kramer2012-10-045-126/+32
| | | | | | MCObjectStreamer. llvm-svn: 165225
OpenPOWER on IntegriCloud