Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | remove two headers subsumed by TargetSelect.h | Chris Lattner | 2009-06-17 | 2 | -68/+0 |
| | | | | llvm-svn: 73612 | ||||
* | switch to using llvm/Target/TargetSelect.h | Chris Lattner | 2009-06-17 | 3 | -25/+12 |
| | | | | llvm-svn: 73611 | ||||
* | Add a utility header that makes it easy to link in the right set | Chris Lattner | 2009-06-17 | 1 | -0/+65 |
| | | | | | | of targets for various purposes. llvm-svn: 73610 | ||||
* | Improve the Win32 reader-writer lock implementation by making it just a normal | Owen Anderson | 2009-06-17 | 1 | -6/+14 |
| | | | | | | | | | lock. This is obviously bad, but at least it's threadsafe! If you know how to improve this in a pre-Vista friendly well, patches welcome! Patch by Max Burke. llvm-svn: 73607 | ||||
* | Fix libLTO by #include'ing the initializers for all targets and all asm | Nick Lewycky | 2009-06-17 | 1 | -9/+11 |
| | | | | | | | | printers. While I'm here, alphabetize. llvm-svn: 73606 | ||||
* | >> What if my global variable was into a different address space than stack? | Sanjiv Gupta | 2009-06-17 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | >> > > It doesn't matter in terms of semantics: because AnalyzeGlobal > returned false, we're guaranteed the address of the global is never > taken. I wouldn't be surprised if we end up generating invalid IR in > some cases, though, because of the semantics of replaceAllUsesWith. > Do you have a testcase that breaks? > > The problem is replaceAllUsesWith asserts for type mismatch here. Try attached .bc with llvm-ld. assert(New->getType() == getType() && "replaceAllUses of value with new value of different type!"); Since stack is always on address space zero, I don't think that type of GV in a different address space is ever going to match. The other way is to allow replaceAllUsesWith to ignore address spaces while comparing types. (do we have a way to do that ?). But then such an optimization may fail the entire idea of user wanting to place a variable into different memory space. The original idea of user might be to save on the stack space (data memory) and hence he asked the variable to be placed into different memory space (program memory). So the best bet here is to deny this optimization by checking GV->getType()->getAddressSpace() == 0. llvm-svn: 73605 | ||||
* | make CreateFMul forward to CreateFMul, not CreateMul. | Chris Lattner | 2009-06-17 | 1 | -1/+1 |
| | | | | llvm-svn: 73603 | ||||
* | Fix grammaro, and bad indentation. | Nick Lewycky | 2009-06-17 | 1 | -3/+3 |
| | | | | llvm-svn: 73602 | ||||
* | Fix comment. | Mikhail Glushenkov | 2009-06-17 | 1 | -2/+2 |
| | | | | llvm-svn: 73601 | ||||
* | Formatting fix. | Mikhail Glushenkov | 2009-06-17 | 1 | -9/+8 |
| | | | | llvm-svn: 73600 | ||||
* | Correct an accidental duplication of the test (patch doesn't handle | Eli Friedman | 2009-06-17 | 1 | -9/+0 |
| | | | | | | creating new files very well). llvm-svn: 73599 | ||||
* | PR3439: Correct a silly mistake in the SimplifyDemandedUseBits code for | Eli Friedman | 2009-06-17 | 2 | -1/+19 |
| | | | | | | SRem. llvm-svn: 73598 | ||||
* | Regenerate. | Mikhail Glushenkov | 2009-06-17 | 2 | -12/+13 |
| | | | | llvm-svn: 73597 | ||||
* | Another small documentation update. | Mikhail Glushenkov | 2009-06-17 | 2 | -12/+13 |
| | | | | llvm-svn: 73596 | ||||
* | Use Doug's new LLVM_NATIVE_ARCH macro in config.h to link in the native | Chris Lattner | 2009-06-17 | 1 | -0/+21 |
| | | | | | | target so that the JIT works in LLI, not just the interpreter. llvm-svn: 73595 | ||||
* | Fix ScalarEvolution's Xor handling to not assume that an And | Dan Gohman | 2009-06-17 | 2 | -3/+17 |
| | | | | | | | that gets recognized with a SCEVZeroExtendExpr must be an And with a low-bits mask. With r73540, this is no longer the case. llvm-svn: 73594 | ||||
* | Do not use first actual instruction's location for prologue. The debug wants ↵ | Devang Patel | 2009-06-17 | 1 | -2/+1 |
| | | | | | | to skip prologue while setting a breakpoint for the function. llvm-svn: 73592 | ||||
* | Update auto-generated configuration files | Douglas Gregor | 2009-06-17 | 2 | -24/+46 |
| | | | | llvm-svn: 73591 | ||||
* | Define LLVM_NATIVE_ARCH in llvm/Config/config.h to be the LLVM back end that ↵ | Douglas Gregor | 2009-06-17 | 1 | -0/+16 |
| | | | | | | corresponds to the native executable, but only when that LLVM back end is being built llvm-svn: 73590 | ||||
* | Use atomic increment/decrement for reference counting of Type's. | Owen Anderson | 2009-06-17 | 3 | -7/+9 |
| | | | | llvm-svn: 73588 | ||||
* | Add an atomic increment and decrement implementation, which will be used for | Owen Anderson | 2009-06-17 | 5 | -4/+35 |
| | | | | | | thread-safe reference counting. llvm-svn: 73587 | ||||
* | Add locking around the accessors for AbstractTypeUsers. | Owen Anderson | 2009-06-17 | 1 | -1/+24 |
| | | | | llvm-svn: 73586 | ||||
* | Remove support for building LLVM libraries into "relinked" | Chris Lattner | 2009-06-16 | 3 | -75/+21 |
| | | | | | | | | | | object files. Now we always build LLVM libraries into archives (.a files). This makes the 'make' build work more like the cmake build, among other things. Doing this exposed some latent circular library dependencies, so I think that llvm-config wasn't quite right for .o files anyway. llvm-svn: 73579 | ||||
* | Forgot this file in my last commit. | Owen Anderson | 2009-06-16 | 1 | -0/+4 |
| | | | | llvm-svn: 73578 | ||||
* | Use a reader-writer lock to guard large portions of the Type infrastructure, ↵ | Owen Anderson | 2009-06-16 | 1 | -54/+198 |
| | | | | | | | | including abstract type refinement. There's still some more work to be done here, such as guarding removeAbstractTypeUser() and the printers. llvm-svn: 73575 | ||||
* | fix a circular dependency between the mips code generator | Chris Lattner | 2009-06-16 | 3 | -4/+28 |
| | | | | | | and its asmprinter. llvm-svn: 73573 | ||||
* | Fix the EE bindings to use the proper EE interfaces for creating a JIT. | Chris Lattner | 2009-06-16 | 1 | -1/+1 |
| | | | | | | Calling into createJIT directly creates a circular dependency between libjit and lib ee. llvm-svn: 73567 | ||||
* | CMake: Only include LLVM example executables in the build if requested by ↵ | Douglas Gregor | 2009-06-16 | 1 | -1/+4 |
| | | | | | | the user llvm-svn: 73566 | ||||
* | Test for llvm-gcc patch 73564. | Dale Johannesen | 2009-06-16 | 1 | -0/+10 |
| | | | | llvm-svn: 73565 | ||||
* | Accidentally broke this file. | Owen Anderson | 2009-06-16 | 1 | -1/+1 |
| | | | | llvm-svn: 73552 | ||||
* | Add newline at end of file. | Owen Anderson | 2009-06-16 | 1 | -1/+1 |
| | | | | llvm-svn: 73551 | ||||
* | Remove the Win32 implementation, since it doesn't compile pre-Vista. | Owen Anderson | 2009-06-16 | 1 | -12/+7 |
| | | | | llvm-svn: 73550 | ||||
* | Fix #include guards. | Owen Anderson | 2009-06-16 | 1 | -2/+2 |
| | | | | llvm-svn: 73548 | ||||
* | Make the test target-neutral | Anton Korobeynikov | 2009-06-16 | 1 | -2/+2 |
| | | | | llvm-svn: 73547 | ||||
* | Fix/cleanup trailing newlines. | Owen Anderson | 2009-06-16 | 2 | -2/+1 |
| | | | | llvm-svn: 73546 | ||||
* | Add a portable wrapper for reader-writer locks. | Owen Anderson | 2009-06-16 | 5 | -1/+352 |
| | | | | llvm-svn: 73545 | ||||
* | Introduce new headers whose inclusion forces linking and | Douglas Gregor | 2009-06-16 | 31 | -30/+333 |
| | | | | | | | | | initialization of all targets (InitializeAllTargets.h) or assembler printers (InitializeAllAsmPrinters.h). This is a step toward the elimination of relinked object files, so that we can build normal archives. llvm-svn: 73543 | ||||
* | Generalize a few more instcombines to be vector/scalar-independent. | Dan Gohman | 2009-06-16 | 3 | -18/+32 |
| | | | | llvm-svn: 73541 | ||||
* | Instcombine's ShrinkDemandedConstant may strip bits out of constants, | Dan Gohman | 2009-06-16 | 2 | -3/+32 |
| | | | | | | | | obscuring what would otherwise be a low-bits mask. Use ComputeMaskedBits to compute what ShrinkDemandedConstant knew about to reconstruct a low-bits mask value. llvm-svn: 73540 | ||||
* | CALL64pcrel32 immediate field is 32-bit. Patch by Abhinav Duggal. | Evan Cheng | 2009-06-16 | 1 | -1/+1 |
| | | | | llvm-svn: 73536 | ||||
* | Address review comments: add 3 ARM calling conventions. | Anton Korobeynikov | 2009-06-16 | 8 | -39/+72 |
| | | | | | | | Dispatch C calling conv. to one of these conventions based on target triple and subtarget features. llvm-svn: 73530 | ||||
* | GNU as refuses to assemble "pop {}" instruction. Do not emit such | Anton Korobeynikov | 2009-06-16 | 2 | -3/+7 |
| | | | | | | | (this is the case when we have thumb vararg function with single callee-saved register, which is handled separately). llvm-svn: 73529 | ||||
* | Add a configure check for pthread_rwlock_init. | Owen Anderson | 2009-06-16 | 3 | -0/+109 |
| | | | | llvm-svn: 73523 | ||||
* | Update the threading section to reflect current plans/implementation. | Owen Anderson | 2009-06-16 | 1 | -16/+36 |
| | | | | llvm-svn: 73521 | ||||
* | Add Threading.cpp to the CMake project files | Douglas Gregor | 2009-06-16 | 1 | -0/+1 |
| | | | | llvm-svn: 73516 | ||||
* | Fix validation errors. | Owen Anderson | 2009-06-16 | 1 | -2/+3 |
| | | | | llvm-svn: 73515 | ||||
* | Split the thread-related APIs out into their own file, and add a few more | Owen Anderson | 2009-06-16 | 4 | -27/+113 |
| | | | | | | calls for convenience. llvm-svn: 73512 | ||||
* | Testcase for r73506 | Chris Lattner | 2009-06-16 | 1 | -0/+15 |
| | | | | llvm-svn: 73508 | ||||
* | Generalize instcombine's isSafeToLoadUnconditionally() function | Chris Lattner | 2009-06-16 | 3 | -39/+55 |
| | | | | | | | to ignore readonly calls, and factor it out of instcombine so that it can be used by other passes. Patch by Frits van Bommel! llvm-svn: 73506 | ||||
* | Added missing libcalls for floating point to int conversions. | Sanjiv Gupta | 2009-06-16 | 1 | -7/+59 |
| | | | | llvm-svn: 73491 |