Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | BuildLibCalls: Nuke EmitMemCpy, EmitMemMove and EmitMemSet. They are dead ↵ | Benjamin Kramer | 2010-12-27 | 1 | -49/+5 |
| | | | | | | and superseded by IRBuilder. llvm-svn: 122576 | ||||
* | undo 80 column trespassing I caused | Gabor Greif | 2010-07-22 | 1 | -5/+6 |
| | | | | llvm-svn: 109092 | ||||
* | eliminate CallInst::ArgOffset | Gabor Greif | 2010-07-16 | 1 | -5/+5 |
| | | | | llvm-svn: 108522 | ||||
* | use ArgOperand API and CallInst::ArgOffset | Gabor Greif | 2010-06-28 | 1 | -17/+17 |
| | | | | llvm-svn: 107002 | ||||
* | use ArgOperand API (one more hunk I could split) | Gabor Greif | 2010-06-25 | 1 | -2/+2 |
| | | | | llvm-svn: 106825 | ||||
* | simplify-libcalls: fold strstr(a, b) == a -> strncmp(a, b, strlen(b)) == 0 | Benjamin Kramer | 2010-06-15 | 1 | -0/+25 |
| | | | | llvm-svn: 106047 | ||||
* | The memcpy intrinsic only takes i8* for %src and %dst, so cast them to that | Nick Lewycky | 2010-05-31 | 1 | -2/+2 |
| | | | | | | first. Fixes PR7265. llvm-svn: 105206 | ||||
* | Revert 101465, it broke internal OpenGL testing. | Eric Christopher | 2010-04-16 | 1 | -19/+19 |
| | | | | | | | Probably the best way to know that all getOperand() calls have been handled is to replace that API instead of updating. llvm-svn: 101579 | ||||
* | reapply r101434 | Gabor Greif | 2010-04-16 | 1 | -19/+19 |
| | | | | | | | | | | | | | with a fix for self-hosting rotate CallInst operands, i.e. move callee to the back of the operand array the motivation for this patch are laid out in my mail to llvm-commits: more efficient access to operands and callee, faster callgraph-construction, smaller compiler binary llvm-svn: 101465 | ||||
* | back out r101423 and r101397, they break llvm-gcc self-host on darwin10 | Gabor Greif | 2010-04-16 | 1 | -19/+19 |
| | | | | llvm-svn: 101434 | ||||
* | reapply r101364, which has been backed out in r101368 | Gabor Greif | 2010-04-15 | 1 | -19/+19 |
| | | | | | | | | | | | | | with a fix rotate CallInst operands, i.e. move callee to the back of the operand array the motivation for this patch are laid out in my mail to llvm-commits: more efficient access to operands and callee, faster callgraph-construction, smaller compiler binary llvm-svn: 101397 | ||||
* | back out r101364, as it trips the linux nightlybot on some clang C++ tests | Gabor Greif | 2010-04-15 | 1 | -19/+19 |
| | | | | llvm-svn: 101368 | ||||
* | rotate CallInst operands, i.e. move callee to the back | Gabor Greif | 2010-04-15 | 1 | -19/+19 |
| | | | | | | | | | | of the operand array the motivation for this patch are laid out in my mail to llvm-commits: more efficient access to operands and callee, faster callgraph-construction, smaller compiler binary llvm-svn: 101364 | ||||
* | Actually... return after the check for invalid input. | Eric Christopher | 2010-04-13 | 1 | -0/+1 |
| | | | | llvm-svn: 101139 | ||||
* | Verify function prototypes before trying to optimize functions. We also | Eric Christopher | 2010-04-12 | 1 | -2/+48 |
| | | | | | | | | | | need TargetData, just return false if we don't have it. Update testcases accordingly. Fixes PR6807. llvm-svn: 101011 | ||||
* | Add support for stpncpy_chk. | Eric Christopher | 2010-04-07 | 1 | -6/+6 |
| | | | | llvm-svn: 100710 | ||||
* | Reapply address space patch after fixing an issue in MemCopyOptimizer. | Mon P Wang | 2010-04-04 | 1 | -20/+23 |
| | | | | | | | Added support for address spaces and added a isVolatile field to memcpy, memmove, and memset, e.g., llvm.memcpy.i32(i8*, i8*, i32, i32) -> llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) llvm-svn: 100304 | ||||
* | Revert r100191 since it breaks objc in clang | Mon P Wang | 2010-04-02 | 1 | -23/+20 |
| | | | | llvm-svn: 100199 | ||||
* | Reapply address space patch after fixing an issue in MemCopyOptimizer. | Mon P Wang | 2010-04-02 | 1 | -20/+23 |
| | | | | | | | Added support for address spaces and added a isVolatile field to memcpy, memmove, and memset, e.g., llvm.memcpy.i32(i8*, i8*, i32, i32) -> llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) llvm-svn: 100191 | ||||
* | Revert Mon Ping's change 99928, since it broke all the llvm-gcc buildbots. | Bob Wilson | 2010-03-30 | 1 | -23/+20 |
| | | | | llvm-svn: 99948 | ||||
* | Added support for address spaces and added a isVolatile field to memcpy, ↵ | Mon P Wang | 2010-03-30 | 1 | -20/+23 |
| | | | | | | | | | memmove, and memset, e.g., llvm.memcpy.i32(i8*, i8*, i32, i32) -> llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) A update of langref will occur in a subsequent checkin. llvm-svn: 99928 | ||||
* | Teach simplify libcall to transform __strcpy_chk to __memcpy_chk to enable ↵ | Evan Cheng | 2010-03-23 | 1 | -1/+25 |
| | | | | | | optimizations down stream. llvm-svn: 99282 | ||||
* | Fix 80 col violation. | Evan Cheng | 2010-03-22 | 1 | -1/+1 |
| | | | | llvm-svn: 99224 | ||||
* | Add a virtual destructor and give vtable a home. | Benjamin Kramer | 2010-03-12 | 1 | -0/+2 |
| | | | | llvm-svn: 98376 | ||||
* | Factor checked library call optimization into a common helper class and use it | Benjamin Kramer | 2010-03-12 | 1 | -0/+81 |
| | | | | | | to unify the almost identical code in CodeGenPrepare and InstCombineCalls. llvm-svn: 98338 | ||||
* | stpcpy is so similar to strcpy, it doesn't deserve a complete copy of the ↵ | Benjamin Kramer | 2010-03-11 | 1 | -21/+3 |
| | | | | | | __strcpy_chk -> strcpy code. llvm-svn: 98284 | ||||
* | Lower stpcpy_chk when possible. | Eric Christopher | 2010-03-11 | 1 | -0/+18 |
| | | | | llvm-svn: 98274 | ||||
* | Fix typo. | Eric Christopher | 2010-03-11 | 1 | -1/+1 |
| | | | | llvm-svn: 98260 | ||||
* | Add strncpy libcall creator. Use it when it should be used. | Eric Christopher | 2010-03-11 | 1 | -0/+20 |
| | | | | llvm-svn: 98219 | ||||
* | Move SimplifyLibCalls's LibCall builders to a separate file so they | Eric Christopher | 2010-03-05 | 1 | -0/+324 |
can be used in more places. Add an argument for the TargetData that most of them need. Update for the getInt8PtrTy() change. Should be no functionality change. llvm-svn: 97844 |