- Nov 08, 2012
-
-
Michael Liao authored
- Add RTM code generation support throught 3 X86 intrinsics: xbegin()/xend() to start/end a transaction region, and xabort() to abort a tranaction region llvm-svn: 167573
-
- Nov 07, 2012
-
-
Akira Hatanaka authored
Patch by Sasa Stankovic. llvm-svn: 167548
-
Akira Hatanaka authored
llvm-svn: 167546
-
Amara Emerson authored
llvm-svn: 167545
-
Amara Emerson authored
This also changes the default architecture emitted for a generic CPU to "v7". llvm-svn: 167540
-
Chad Rosier authored
classes. For my test case the number of errors drop from 356 to 21. Part of rdar://12594152 llvm-svn: 167508
-
Jakub Staszak authored
llvm-svn: 167505
-
Nadav Rotem authored
llvm-svn: 167501
-
Chad Rosier authored
registers. Previously, the register we being marked as implicitly defined, but not killed. In some cases this would cause the register scavenger to spill a dead register. Also, use an empty register mask to simplify the logic and to reduce the memory footprint. rdar://12592448 llvm-svn: 167499
-
- Nov 06, 2012
-
-
Nadav Rotem authored
llvm-svn: 167488
-
Nadav Rotem authored
llvm-svn: 167480
-
Michael Liao authored
llvm-svn: 167445
-
Andrew Trick authored
This is in preparation for adding "weak" DAG edges, but generally simplifies the design. llvm-svn: 167435
-
Nadav Rotem authored
llvm-svn: 167422
-
Nadav Rotem authored
llvm-svn: 167421
-
- Nov 05, 2012
-
-
Nadav Rotem authored
llvm-svn: 167412
-
Richard Smith authored
llvm-svn: 167410
-
Nadav Rotem authored
llvm-svn: 167402
-
Nadav Rotem authored
llvm-svn: 167401
-
Ulrich Weigand authored
to be extended to a full register. This is modeled in the IR by marking the return value (or argument) with a signext or zeroext attribute. However, while these attributes are respected for function arguments, they are currently ignored for function return values by the PowerPC back-end. This patch updates PPCCallingConv.td to ask for the promotion to i64, and fixes LowerReturn and LowerCallResult to implement it. The new test case verifies that both arguments and return values are properly extended when passing them; and also that the optimizers understand incoming argument and return values are in fact guaranteed by the ABI to be extended. The patch caused a spurious breakage in CodeGen/PowerPC/coalesce-ext.ll, since the test case used a "ret" instruction to create a use of an i32 value at the end of the function (to set up data flow as required for what the test is intended to test). Since there's now an implicit promotion to i64, that data flow no longer works as expected. To fix this, this patch now adds an extra "add" to ensure we have an appropriate use of the i32 value. llvm-svn: 167396
-
Nadav Rotem authored
llvm-svn: 167395
-
Hal Finkel authored
The Z constraint specifies an r+r memory address, and the y modifier expands to the "r, r" in the asm string. For this initial implementation, the base register is forced to r0 (which has the special meaning of 0 for r+r addressing on PowerPC) and the full address is taken in the second register. In the future, this should be improved. llvm-svn: 167388
-
Adhemerval Zanella authored
This patch expands the SEXTLOAD, ZEXTLOAD, and EXTLOAD operations for vector types when altivec is enabled. llvm-svn: 167386
-
- Nov 04, 2012
-
-
Craig Topper authored
llvm-svn: 167366
-
- Nov 03, 2012
-
-
Akira Hatanaka authored
instructions. llvm-svn: 167348
-
Nadav Rotem authored
llvm-svn: 167347
-
Akira Hatanaka authored
llvm-svn: 167345
-
Akira Hatanaka authored
register is needed. llvm-svn: 167341
-
Akira Hatanaka authored
reserved. Without this fix, RegScavenger::getRegsAvailable incorrectly returns an empty set of integer registers. llvm-svn: 167335
-
Nadav Rotem authored
Add a stub for the x86 cost model impl. Implement a basic cost rule for inserting/extracting from XMM registers. llvm-svn: 167333
-
- Nov 02, 2012
-
-
Nadav Rotem authored
llvm-svn: 167323
-
Quentin Colombet authored
llvm-svn: 167318
-
Akira Hatanaka authored
llvm-svn: 167315
-
Akira Hatanaka authored
This function estimates stack size and will be called before PrologEpilogInserter scans the callee-saved registers. llvm-svn: 167313
-
Akira Hatanaka authored
of the incoming argument area. llvm-svn: 167312
-
Akira Hatanaka authored
"set .noat" so that the assembler doesn't issue warnings when register $AT is used. llvm-svn: 167310
-
- Nov 01, 2012
-
-
Pranav Bhandarkar authored
and getPredNewOpcode. The first relates non predicated instructions with their predicated forms and the second relates predicated instructions with their predicate-new forms. Patch by Jyotsna Verma! llvm-svn: 167243
-
Chandler Carruth authored
r165941: Resubmit the changes to llvm core to update the functions to support different pointer sizes on a per address space basis. Despite this commit log, this change primarily changed stuff outside of VMCore, and those changes do not carry any tests for correctness (or even plausibility), and we have consistently found questionable or flat out incorrect cases in these changes. Most of them are probably correct, but we need to devise a system that makes it more clear when we have handled the address space concerns correctly, and ideally each pass that gets updated would receive an accompanying test case that exercises that pass specificaly w.r.t. alternate address spaces. However, from this commit, I have retained the new C API entry points. Those were an orthogonal change that probably should have been split apart, but they seem entirely good. In several places the changes were very obvious cleanups with no actual multiple address space code added; these I have not reverted when I spotted them. In a few other places there were merge conflicts due to a cleaner solution being implemented later, often not using address spaces at all. In those cases, I've preserved the new code which isn't address space dependent. This is part of my ongoing effort to clean out the partial address space code which carries high risk and low test coverage, and not likely to be finished before the 3.2 release looms closer. Duncan and I would both like to see the above issues addressed before we return to these changes. llvm-svn: 167222
-
Chandler Carruth authored
getIntPtrType support for multiple address spaces via a pointer type, and also introduced a crasher bug in the constant folder reported in PR14233. These commits also contained several problems that should really be addressed before they are re-committed. I have avoided reverting various cleanups to the DataLayout APIs that are reasonable to have moving forward in order to reduce the amount of churn, and minimize the number of commits that were reverted. I've also manually updated merge conflicts and manually arranged for the getIntPtrType function to stay in DataLayout and to be defined in a plausible way after this revert. Thanks to Duncan for working through this exact strategy with me, and Nick Lewycky for tracking down the really annoying crasher this triggered. (Test case to follow in its own commit.) After discussing with Duncan extensively, and based on a note from Micah, I'm going to continue to back out some more of the more problematic patches in this series in order to ensure we go into the LLVM 3.2 branch with a reasonable story here. I'll send a note to llvmdev explaining what's going on and why. Summary of reverted revisions: r166634: Fix a compiler warning with an unused variable. r166607: Add some cleanup to the DataLayout changes requested by Chandler. r166596: Revert "Back out r166591, not sure why this made it through since I cancelled the command. Bleh, sorry about this! r166591: Delete a directory that wasn't supposed to be checked in yet. r166578: Add in support for getIntPtrType to get the pointer type based on the address space. llvm-svn: 167221
-
Michael Liao authored
llvm-svn: 167209
-