summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Replace assertion failure for badly formatted CPS instrution with error message.Richard Barton2012-06-142-1/+8
| | | | llvm-svn: 158445
* Cleanup whitespace.Jush Lu2012-06-141-13/+12
| | | | llvm-svn: 158443
* Revert: test/CodeGen/ARM/iabs.ll in r158441Manman Ren2012-06-141-19/+1
| | | | | | Sorry that I accidently checked in this file with my previous commit. llvm-svn: 158442
* InstCombine: fix a bug when combining (fcmp cc0 x, y) && (fcmp cc1 x, y).Manman Ren2012-06-143-3/+34
| | | | | | uno && ueq was converted to ueq, it should be converted to uno. llvm-svn: 158441
* This makes SemaCodeComplete.cpp more Doxygen-friendly by changing theJames Dennett2012-06-141-30/+31
| | | | | | | | | | | | | | | | OBJC_AT_KEYWORD_NAME take a string literal argument where previously its second argument was an unquoted token; macro invocations such as OBJC_AT_KEYWORD_NAME(NeedAt,{) confuse Doxygen's parser. While I'm wary of changing code (rather than just comments) to work around Doxygen's limitations, in this case the change makes the code more readable for human beings as well, and the macro derived no benefit from using the preprocessor's stringification operator, as it never has need of the unquoted token. I've also included a couple of trivial drive-by fixes to doc comments. llvm-svn: 158440
* Test case for MIPS long branch pass.Akira Hatanaka2012-06-141-0/+23
| | | | llvm-svn: 158438
* Fix Mips/CMakeLists.txt.Akira Hatanaka2012-06-141-0/+1
| | | | llvm-svn: 158437
* Add file MipsLongBranch.cpp.Akira Hatanaka2012-06-141-0/+416
| | | | llvm-svn: 158436
* Fix test cases.Akira Hatanaka2012-06-145-67/+66
| | | | llvm-svn: 158435
* Remove code in MipsAsmPrinter and MipsMCInstLower.Akira Hatanaka2012-06-143-30/+2
| | | | llvm-svn: 158434
* Add long branch expansion pass for MIPS.Akira Hatanaka2012-06-142-1/+8
| | | | llvm-svn: 158433
* Add AT to the list of registers clobbered by branches so that it is availableAkira Hatanaka2012-06-141-0/+4
| | | | | | as a scratch register when they are expanded to long branches. llvm-svn: 158432
* In MipsRegisterInfo::eliminateFrameIndex, call Mips::loadImmediateAkira Hatanaka2012-06-141-25/+7
| | | | | | to load an immediate that does not fit into 16-bit. llvm-svn: 158431
* In MipsFrameLowering::emitPrologue and emitEpilogue, call Mips::loadImmediateAkira Hatanaka2012-06-141-39/+16
| | | | | | | | to load an immediate that does not fit into 16-bit. Also, take into consideration the global base register slot on the stack when computing the stack size. llvm-svn: 158430
* Define function MipsInstrInfo::GetInstSizeInBytes, which will be called toAkira Hatanaka2012-06-142-6/+76
| | | | | | | compute the size of basic blocks in a function. Also, define a function which emits a series of instructions to load an immediate. llvm-svn: 158429
* In MipsISelDAGToDAG.cpp, store the global base register to a stack frame object.Akira Hatanaka2012-06-141-3/+10
| | | | | | | Long-branches need access to the global base register to get the destination address. llvm-svn: 158428
* Add methods to MipsFunctionInfo for initializing and accessing the stack frameAkira Hatanaka2012-06-141-1/+23
| | | | | | | | | object for the global base register. This is the first of a series of patches which implements long branch expansion for MIPS. llvm-svn: 158427
* Bundle jump/branch instructions with the instructions in the delay slot inAkira Hatanaka2012-06-132-19/+30
| | | | | | | | | delay slot filler pass of MIPS, per suggestion of Jakob Stoklund Olesen. This change, along with the fix in r158154, enables machine verification to be run after delay slot filling. llvm-svn: 158426
* Add triples to keep make test work on Windows, where wchar_t is only 16Richard Trieu2012-06-131-1/+1
| | | | | | bits wide. llvm-svn: 158425
* Remove unnecessary output redirection in a test.Richard Trieu2012-06-131-1/+1
| | | | llvm-svn: 158424
* test/Driver/warning-options.cpp: Mark as XFAIL:cygming. -pedantic is passed ↵NAKAMURA Takumi2012-06-131-0/+3
| | | | | | with gcc-as driver. PR12920 llvm-svn: 158423
* More doxygen/documentation cleanups.James Dennett2012-06-1326-96/+95
| | | | | | | | | | | | | | | | | | This reduces the number of warnings generated by Doxygen by about 100 (roughly 10%). Issues addressed: (1) Primarily, backslash-escaped "@foo" and "#bah" in Doxygen comments when they're not supposed to be Doxygen commands or links, and similarly for "<baz>" when it's not intended as as HTML tag; (2) Changed some \t commands (which don't exist) to \c ("to refer to a word of code", as the Doxygen manual says); (3) \precondition becomes \pre; (4) When touching comments, deleted a couple of spurious spaces in them; (5) Changed some \n and \r to \\n and \\r; (6) Fixed one tiny typo: #pragms -> #pragma. This patch touches documentation/comments only. llvm-svn: 158422
* Group the 'unsigned' members after the pointer to avoid 4 bytes ofChandler Carruth2012-06-131-1/+1
| | | | | | padding on x86-64. llvm-svn: 158421
* Rename a loop variable to silence a gcc warning.Richard Trieu2012-06-131-3/+3
| | | | llvm-svn: 158420
* Implement a DAGCombine in MipsISelLowering.cpp which transforms the followingAkira Hatanaka2012-06-133-17/+46
| | | | | | | | | | pattern: (add v0, (add v1, abs_lo(tjt))) => (add (add v0, v1), abs_lo(tjt)) "tjt" is a TargetJumpTable node. llvm-svn: 158419
* Add -isystem-prefix and -ino-system-prefix arguments, which can be used toRichard Smith2012-06-1314-0/+148
| | | | | | | | | | override whether headers are system headers by checking for prefixes of the header name specified in the #include directive. This allows warnings to be disabled for third-party code which is found in specific subdirectories of include paths. llvm-svn: 158418
* Moved the StringLiteral printing code from StmtPrinter into the StringLiteralRichard Trieu2012-06-135-98/+110
| | | | | | | class and have StmtPrinter and StmtDumper refer to it. This fixes an assertion failure when dumping wchar string literals. llvm-svn: 158417
* Provide a -no-pedantic to cancel out -pedantic.John McCall2012-06-133-1/+9
| | | | llvm-svn: 158416
* Doc fixed as proposed (and mostly contributed) by David Roethlisberger.Manuel Klimek2012-06-131-6/+6
| | | | llvm-svn: 158415
* Set a higher value for maxStoresPerMemcpy in MipsISelLowering.cpp.Akira Hatanaka2012-06-133-0/+36
| | | | llvm-svn: 158414
* Simplify CreateLoadLR and CreateStoreLR in MipsISelLowering.cpp.Akira Hatanaka2012-06-131-11/+6
| | | | llvm-svn: 158413
* Fix issue where a token paste which forms a /* or // would discard the rest ofRichard Smith2012-06-133-2/+12
| | | | | | | | the input: token-pasting was producing a tok::eof. Patch by Andy Gibbs! llvm-svn: 158412
* Allow __attribute__((unused)) for fields and make it silenceDaniel Jasper2012-06-133-1/+4
| | | | | | -Wunused-private-field. llvm-svn: 158411
* Implement fastcc calling convention for MIPS.Akira Hatanaka2012-06-133-3/+312
| | | | llvm-svn: 158410
* Fix pattern for MKMSK instruction.Richard Osborne2012-06-132-1/+12
| | | | llvm-svn: 158409
* Revert "Allow SROA to look at a vector type and see if the offset is out of ↵Pete Cooper2012-06-132-10/+7
| | | | | | | | range to be replaced with a scalar access" This reverts commit 51786e0aaec76b973205066bd44f7f427b21969f. llvm-svn: 158408
* Allow SROA to look at a vector type and see if the offset is out of range to ↵Pete Cooper2012-06-132-7/+10
| | | | | | be replaced with a scalar access llvm-svn: 158407
* Remove the trailing backslash from the comment to remove the warning aboutKaelyn Uhrain2012-06-131-1/+1
| | | | | | a multi-line comment, fixing builds with e.g. -Werror=comment enabled. llvm-svn: 158406
* Fix building ThreadLocal.cpp with --disable-threads.Argyrios Kyrtzidis2012-06-131-2/+9
| | | | llvm-svn: 158405
* *typo: Cyles changed to CyclesKay Tiong Khoo2012-06-133-4/+4
| | | | llvm-svn: 158404
* Use LTO_CODEGEN_PIC_MODEL_DYNAMIC for PIE. This requirest a git version ofRafael Espindola2012-06-131-0/+2
| | | | | | | | gold to work. Since the enum value LDPO_PIE has just been added to plugin-api.h, use a numeric constant for now so that we don't require an unreleased version of gold to build. llvm-svn: 158402
* It is possible for several constants which aren't individually absorbing toDuncan Sands2012-06-132-1/+17
| | | | | | | combine to the absorbing element. Thanks to nbjoerg on IRC for pointing this out. llvm-svn: 158399
* When linearizing a multiplication, return at once if we see a factor of zero,Duncan Sands2012-06-133-43/+44
| | | | | | | | | since then the entire expression must equal zero (similarly for other operations with an absorbing element). With this in place a bunch of reassociate code for handling constants is dead since it is all taken care of when linearizing. No intended functionality change. llvm-svn: 158398
* Fix intrinsics for XOP frczss/sd instructions. These instructions only take ↵Craig Topper2012-06-134-41/+49
| | | | | | one source register and zero the upper bits of the destination rather than preserving them. llvm-svn: 158396
* Rename shouldVisitImplicitDeclarations to shouldVisitImplicitCode.Daniel Jasper2012-06-132-6/+38
| | | | | | | | | | Fix RecursiveASTVisitor to visit CXXForRangeStmts accordingly to visit implicit or explicit code. The key bug that inspired this was the Visitor not visiting the range initializer of such a loop, which is explicit code. llvm-svn: 158395
* Add another missing 64-bit itinerary definition for the PPC A2 core.Hal Finkel2012-06-131-0/+11
| | | | llvm-svn: 158393
* SimplifyCFG: fold unconditional branch to its predecessor if profitable.Manman Ren2012-06-132-24/+213
| | | | | | | | | | This patch extends FoldBranchToCommonDest to fold unconditional branches. For unconditional branches, we fold them if it is easy to update the phi nodes in the common successors. rdar://10554090 llvm-svn: 158392
* Fix off-by-one error in UTF-16 encoding: don't try to use a surrogate pair ↵Richard Smith2012-06-132-1/+4
| | | | | | for U+FFFF. llvm-svn: 158391
* PR13099: Teach -Wformat about raw string literals, UTF-8 strings and Unicode ↵Richard Smith2012-06-134-11/+86
| | | | | | escape sequences. llvm-svn: 158390
* Eliminate struct TableGenBackend.Jakob Stoklund Olesen2012-06-132-32/+7
| | | | | | | | TableGen backends are simply written as functions now. Patch by Sean Silva! llvm-svn: 158389
OpenPOWER on IntegriCloud