summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* daniel remembered why this was needed.Chris Lattner2010-02-171-1/+4
| | | | llvm-svn: 96440
* add a comment explaining why darwin/i386 uses ## as a comment.Chris Lattner2010-02-171-0/+2
| | | | | | | It's not clear why this is really required, but it was explicitly added in r48808 with no real explanation or rdar #. llvm-svn: 96438
* Initial implementation of PIC16 Cloner pass.Sanjiv Gupta2010-02-172-0/+254
| | | | | | | | | | | | | This pass is supposed to be run on the linked .bc module. It traveses the module call graph twice. Once starting from the main function and marking each reached function as "ML". Again, starting from the ISR and cloning any reachable function that was marked as "ML". After cloning the function, it remaps all the call sites in IL functions to call the cloned functions. Currently only marking is being done. llvm-svn: 96435
* Fold bswap(undef) to undef.Dan Gohman2010-02-171-0/+6
| | | | llvm-svn: 96432
* Delete some unneeded casts.Dan Gohman2010-02-171-2/+2
| | | | llvm-svn: 96429
* Don't attempt to divide INT_MIN by -1; consider such cases toDan Gohman2010-02-171-0/+4
| | | | | | have overflowed. llvm-svn: 96428
* Make the operand and format specifier match, and print allDan Gohman2010-02-171-1/+1
| | | | | | 64 bits, fixing a variety of problems. llvm-svn: 96421
* Wrap lines to 80 columns and generally try to clean up whitespace andBob Wilson2010-02-171-312/+216
| | | | | | indentation. No functional changes. llvm-svn: 96418
* Make error statement more personal.Bill Wendling2010-02-161-1/+1
| | | | llvm-svn: 96410
* fix rdar://7653908, a crash on a case where we would fold a loadChris Lattner2010-02-161-9/+10
| | | | | | | | | | into a roundss intrinsic, producing a cyclic dag. The root cause of this is badness handling ComplexPattern nodes in the old dagisel that I noticed through inspection. Eliminate a copy of the of the code that handled ComplexPatterns by making EmitChildMatchCode call into EmitMatchCode. llvm-svn: 96408
* Handle tGPR register class in a few more places. This fixes some llvm-gccBob Wilson2010-02-161-0/+10
| | | | | | build failures due to my fix for pr6111. llvm-svn: 96402
* Add SMC (Secure Monitor Call) system instruction for disassembly only.Johnny Chen2010-02-161-2/+9
| | | | llvm-svn: 96401
* Really reserve R2 on PPC Darwin. PR 6314.Dale Johannesen2010-02-161-8/+4
| | | | llvm-svn: 96399
* Use line and column number to distinguish two lexical blocks at the same level.Devang Patel2010-02-161-3/+6
| | | | llvm-svn: 96395
* 80 column cleanupJim Grosbach2010-02-163-21/+24
| | | | llvm-svn: 96393
* Look for SSE and instructions of this form: (and x, (build_vector c1,c2,c3,c4)).Evan Cheng2010-02-161-1/+50
| | | | | | | | | | | | | If there exists a use of a build_vector that's the bitwise complement of the mask, then transform the node to (and (xor x, (build_vector -1,-1,-1,-1)), (build_vector ~c1,~c2,~c3,~c4)). Since this transformation is only useful when 1) the given build_vector will become a load from constpool, and 2) (and (xor x -1), y) matches to a single instruction, I decided this is appropriate as a x86 specific transformation. rdar://7323335 llvm-svn: 96389
* Remove trailing whitespaceJim Grosbach2010-02-163-46/+46
| | | | llvm-svn: 96388
* Rename SuccessorNumber to GetSuccessorNumber.Bob Wilson2010-02-162-7/+8
| | | | llvm-svn: 96387
* Add support for emitting non-temporal stores for DAGs markedDavid Greene2010-02-161-8/+70
| | | | | | | | | | non-temporal. Fix from r96241 for botched encoding of MOVNTDQ. Add documentation for !nontemporal metadata. Add a simpler movnt testcase. llvm-svn: 96386
* Update Thumb2 to not use CarryDefIsUnused or CarryDefIsUsed predicates, butJim Grosbach2010-02-162-21/+25
| | | | | | | | to have the predicate on the pattern itself instead. Support for the new ISel. Remove definitions of CarryDefIsUnused and CarryDefIsUsed since they are no longer used anywhere. llvm-svn: 96384
* Remove redundant setting of Defs. CPSR is already marked by the block level ↵Jim Grosbach2010-02-161-3/+0
| | | | | | set of Defs. llvm-svn: 96383
* Refactor rewriting for PHI nodes into a separate function.Dan Gohman2010-02-161-49/+70
| | | | llvm-svn: 96382
* First step in eliminating the CarryDefIsUnused and CarryDefIsUsed predicates.Jim Grosbach2010-02-161-18/+33
| | | | | | | | | | They won't work with the new ISel mechanism, as Requires predicates are no longer allowed to reference the node being selected. Moving the predicate to the patterns instead solves the problem. This patch handles ARM mode. Thumb2 will follow. llvm-svn: 96381
* Added for disassembly the following instructions:Johnny Chen2010-02-161-3/+128
| | | | | | | | o Store Return State (SRSW, SRS) o Load/Store Coprocessor (LDC/STC and friends) o MSR (immediate) llvm-svn: 96380
* Split critical edges as needed for load PRE.Bob Wilson2010-02-162-8/+37
| | | | llvm-svn: 96378
* Refactor to share code to find the position of a basic block successor in theBob Wilson2010-02-162-19/+18
| | | | | | terminator's list of successors. llvm-svn: 96377
* Fix whitespace.Dan Gohman2010-02-161-3/+3
| | | | llvm-svn: 96372
* Function attributes have index ~0, not 0Kenneth Uildriks2010-02-161-2/+2
| | | | llvm-svn: 96370
* Fix pr6111: Avoid using the LR register for the target address of an indirectBob Wilson2010-02-162-4/+13
| | | | | | | | branch in ARM v4 code, since it gets clobbered by the return address before it is used. Instead of adding a new register class containing all the GPRs except LR, just use the existing tGPR class. llvm-svn: 96360
* Introduce isOpaqueTy and use it rather than isa<OpaqueType>. Also, move someDuncan Sands2010-02-169-22/+22
| | | | | | methods to try to have the type predicates be more logically positioned. llvm-svn: 96349
* There are two ways of checking for a given type, for example isa<PointerType>(T)Duncan Sands2010-02-1666-576/+576
| | | | | | | and T->isPointerTy(). Convert most instances of the first form to the second form. Requested by Chris. llvm-svn: 96344
* Minor warning fixes (semicolons, newline at EOF).Benjamin Kramer2010-02-162-3/+3
| | | | llvm-svn: 96343
* mark all the generated node predicates 'const'.Chris Lattner2010-02-161-1/+1
| | | | llvm-svn: 96337
* make pcrel immediate values relative to the start of the field,Chris Lattner2010-02-161-3/+13
| | | | | | not the end of the field, fixing rdar://7651978 llvm-svn: 96330
* The code section for an ISR has a specific address.Sanjiv Gupta2010-02-164-4/+23
| | | | | | Currently, whether a function is ISR or not is encoded in the section attribute for that function. llvm-svn: 96322
* Handle DBG_VALUE mixed with labels when doing PHIDale Johannesen2010-02-161-1/+18
| | | | | | | elimination. Before a DBG_VALUE could affect codegen. The solution here is imperfect and not final. llvm-svn: 96318
* Drop support for the InReg attribute on the ppc backend. This was used byRafael Espindola2010-02-161-16/+1
| | | | | | | llvm-gcc but has been replaced with pad argument which don't need any special backend support. llvm-svn: 96312
* Split the main for-each-use loop again, this time for GenerateTruncates,Dan Gohman2010-02-161-1/+4
| | | | | | | as it also peeks at which registers are being used by other uses. This makes LSR less sensitive to use-list order. llvm-svn: 96308
* Reapply 96294; now that I've gotten around to lookingDale Johannesen2010-02-161-4/+26
| | | | | | | at older buildbot messages, I see the failure predates this patch. llvm-svn: 96307
* Apply patch from http://llvm.org/bugs/attachment.cgi?id=4136 now that PR5004 isBill Wendling2010-02-161-1/+5
| | | | | | finished. llvm-svn: 96304
* Something broke. Hard to believe it was this patchDale Johannesen2010-02-161-26/+4
| | | | | | | but it's harder to believe it's the other candidate, so reverting. Temporarily I hope. llvm-svn: 96303
* When reusing an existing PHI node in a loop, be even moreDan Gohman2010-02-161-11/+39
| | | | | | strict about the requirements. llvm-svn: 96301
* Put repeated empty pattern into the AQI instruction class.Bob Wilson2010-02-151-49/+19
| | | | | | | We could almost use a multiclass for the signed/unsigned instructions, but there are only 6 of them so I guess it's not worth it. llvm-svn: 96297
* Fix a memory leak. Patch by Nicolas Geoffray.Evan Cheng2010-02-151-0/+1
| | | | llvm-svn: 96295
* More handling of DBG_VALUE.Dale Johannesen2010-02-151-4/+26
| | | | llvm-svn: 96294
* Add missed entry to cmake build list fileAnton Korobeynikov2010-02-151-0/+1
| | | | llvm-svn: 96292
* Use ttype encoding consistentlyAnton Korobeynikov2010-02-151-1/+1
| | | | llvm-svn: 96290
* Fix a silly darwin-only typo introduced during merge.Anton Korobeynikov2010-02-151-7/+6
| | | | llvm-svn: 96289
* Move TLOF implementations to libCodegen to resolve layering violation.Anton Korobeynikov2010-02-1516-857/+889
| | | | llvm-svn: 96288
* It turns out that we emitted completely wrong common EH frame since the ↵Anton Korobeynikov2010-02-151-7/+9
| | | | | | early beginning! The "z" CIE augmentation mark indicates that there is an extra word containing the size of augmentation section. However, even for frames w/o any augmentation data we emitted size uleb! (this is the case of "unwinding through C code"). Thus frame moves information was emitterd completely wrong. llvm-svn: 96287
OpenPOWER on IntegriCloud