summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* misched: remove the unused getSpecialAddressLatency hook.Andrew Trick2012-10-083-57/+7
| | | | llvm-svn: 165418
* misched: remove forceUnitLatencies. Defaults are handled by the default ↵Andrew Trick2012-10-082-35/+30
| | | | | | SchedModel llvm-svn: 165417
* misched: avoid scheduling an instruction twice.Andrew Trick2012-10-081-25/+29
| | | | llvm-svn: 165416
* PowerPC: Fix object creation with PPC::MTCRF8 instructionAdhemerval Zanella2012-10-081-1/+3
| | | | llvm-svn: 165411
* Add floating-point to and from integer conversionAdhemerval Zanella2012-10-082-0/+36
| | | | | | | This patch add altivec support for v4i32 to v4f32 and for v4f32 to v4i32 vector rounding conversion. llvm-svn: 165409
* Move TargetData to DataLayout.Micah Villmow2012-10-08194-777/+777
| | | | llvm-svn: 165402
* Remove unused MachineInstr constructors that don't take a DebugLoc argument.Craig Topper2012-10-071-29/+0
| | | | llvm-svn: 165382
* Fix indentation. Remove 'else' after return. No functional change.Craig Topper2012-10-071-11/+8
| | | | llvm-svn: 165381
* X86: fcmov doesn't handle all possible EFLAGS, fall back to a branch for the ↵Benjamin Kramer2012-10-071-1/+8
| | | | | | | | | others. Otherwise it will try to use SSE patterns and fail horribly if sse is disabled. Fixes PR14035. llvm-svn: 165377
* Move more methods out-of-line. This is in preparation for changing the internalBill Wendling2012-10-071-0/+28
| | | | | | contents of the Attributes class over to an AttributesImpl. llvm-svn: 165373
* Make sure always-inline functions get inlined. <rdar://problem/12423986>Bob Wilson2012-10-071-1/+3
| | | | | | | | | | | | | | | | Without this change, when the estimated cost for inlining a function with an "alwaysinline" attribute was lower than the inlining threshold, the getInlineCost function was returning that estimated cost rather than the special InlineCost::AlwaysInlineCost value. That is fine in the normal inlining case, but it can fail when the inliner considers the opportunity cost of inlining into an internal or linkonce-odr function. It may decide not to inline the always-inline function in that case. The fix here is just to make getInlineCost always return the special value for always-inline functions. I ran into this building clang with libc++. Tablegen failed to link because of an always-inline function that was not inlined. I have been unable to reduce the testcase down to a reasonable size. llvm-svn: 165367
* Adding support for instructions mfc0, mfc2, mtc0, mtc2Jack Carter2012-10-062-0/+38
| | | | | | | move from and to coprocessors 0 and 2. Contributer: Vladimir Medic llvm-svn: 165351
* Minor changes based on post commit review:Jack Carter2012-10-061-29/+30
| | | | | Contributer: Vladimir Medic llvm-svn: 165350
* Minor changes based on post commit review:Jack Carter2012-10-051-13/+12
| | | | | Contributer: Vladimir Medic llvm-svn: 165346
* This patch splits apart PPCISelLowering::LowerFormalArguments_Darwin_Or_64SVR4Bill Schmidt2012-10-052-25/+309
| | | | | | | into separate versions for the Darwin and 64-bit SVR4 ABIs. This will facilitate doing more major surgery on the 64-bit SVR4 ABI in the near future. llvm-svn: 165336
* Remove unused but set variable flagged by GCC.Benjamin Kramer2012-10-051-4/+0
| | | | llvm-svn: 165331
* [ms-inline asm] Add a few typedefs to simplify future changes.Chad Rosier2012-10-054-6/+6
| | | | llvm-svn: 165324
* Patch for integer multiply, signed/unsigned, long/long long.Reed Kotler2012-10-053-17/+104
| | | | llvm-svn: 165322
* Simplify code, don't or a bool with an uint64_t.Benjamin Kramer2012-10-051-2/+2
| | | | | | No functionality change. llvm-svn: 165321
* Remove empty file.Benjamin Kramer2012-10-051-0/+0
| | | | llvm-svn: 165320
* Implement TargetData with the DataLayout class, this will allow LLVM ↵Micah Villmow2012-10-054-669/+3
| | | | | | projects to transition to DataLayout without loosing functionality. llvm-svn: 165318
* - 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
* SROA.cpp: Fix a warning, [-Wunused-variable]NAKAMURA Takumi2012-10-051-0/+1
| | | | llvm-svn: 165309
* 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-051-13/+210
| | | | | | | | | 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
* tblgen: Use appropriate LLVM-style RTTI functions.Sean Silva2012-10-051-21/+9
| | | | | | | 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-052-25/+25
| | | | | | | | 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
* Make sure to generate the right kind of MDNode for enum forward declarations.Eli Friedman2012-10-051-6/+7
| | | | | | PR14029, LLVM part. llvm-svn: 165288
* Follow up to r165072. Try a different approach: only move the load when it's ↵Evan Cheng2012-10-051-11/+9
| | | | | | 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-051-42/+93
| | | | | | | | | | | | 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
* [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-041-48/+48
| | | | llvm-svn: 165270
* When merging connsecutive stores, use vectors to store the constant zero.Nadav Rotem2012-10-041-34/+57
| | | | llvm-svn: 165267
* Resubmit the copying of TargetData to DataLayout without any changes to the ↵Micah Villmow2012-10-042-0/+666
| | | | | | 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-043-12/+12
| | | | | | | | 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-041-4/+20
| | | | | | | | | | | | 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-042-666/+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-042-5/+4
| | | | | | | | | | 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-042-0/+666
| | | | llvm-svn: 165249
* Accidently checked in the files, only wanted to copy them.Micah Villmow2012-10-041-665/+0
| | | | llvm-svn: 165244
* (no commit message)Micah Villmow2012-10-041-0/+665
| | | | llvm-svn: 165243
* 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
* 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
OpenPOWER on IntegriCloud