summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* remove two headers subsumed by TargetSelect.hChris Lattner2009-06-172-68/+0
| | | | llvm-svn: 73612
* switch to using llvm/Target/TargetSelect.hChris Lattner2009-06-173-25/+12
| | | | llvm-svn: 73611
* Add a utility header that makes it easy to link in the right set Chris Lattner2009-06-171-0/+65
| | | | | | of targets for various purposes. llvm-svn: 73610
* Improve the Win32 reader-writer lock implementation by making it just a normalOwen Anderson2009-06-171-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 asmNick Lewycky2009-06-171-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 Gupta2009-06-171-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 Lattner2009-06-171-1/+1
| | | | llvm-svn: 73603
* Fix grammaro, and bad indentation.Nick Lewycky2009-06-171-3/+3
| | | | llvm-svn: 73602
* Fix comment.Mikhail Glushenkov2009-06-171-2/+2
| | | | llvm-svn: 73601
* Formatting fix.Mikhail Glushenkov2009-06-171-9/+8
| | | | llvm-svn: 73600
* Correct an accidental duplication of the test (patch doesn't handle Eli Friedman2009-06-171-9/+0
| | | | | | creating new files very well). llvm-svn: 73599
* PR3439: Correct a silly mistake in the SimplifyDemandedUseBits code for Eli Friedman2009-06-172-1/+19
| | | | | | SRem. llvm-svn: 73598
* Regenerate.Mikhail Glushenkov2009-06-172-12/+13
| | | | llvm-svn: 73597
* Another small documentation update.Mikhail Glushenkov2009-06-172-12/+13
| | | | llvm-svn: 73596
* Use Doug's new LLVM_NATIVE_ARCH macro in config.h to link in the nativeChris Lattner2009-06-171-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 AndDan Gohman2009-06-172-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 Patel2009-06-171-2/+1
| | | | | | to skip prologue while setting a breakpoint for the function. llvm-svn: 73592
* Update auto-generated configuration filesDouglas Gregor2009-06-172-24/+46
| | | | llvm-svn: 73591
* Define LLVM_NATIVE_ARCH in llvm/Config/config.h to be the LLVM back end that ↵Douglas Gregor2009-06-171-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 Anderson2009-06-173-7/+9
| | | | llvm-svn: 73588
* Add an atomic increment and decrement implementation, which will be used forOwen Anderson2009-06-175-4/+35
| | | | | | thread-safe reference counting. llvm-svn: 73587
* Add locking around the accessors for AbstractTypeUsers.Owen Anderson2009-06-171-1/+24
| | | | llvm-svn: 73586
* Remove support for building LLVM libraries into "relinked" Chris Lattner2009-06-163-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 Anderson2009-06-161-0/+4
| | | | llvm-svn: 73578
* Use a reader-writer lock to guard large portions of the Type infrastructure, ↵Owen Anderson2009-06-161-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 generatorChris Lattner2009-06-163-4/+28
| | | | | | and its asmprinter. llvm-svn: 73573
* Fix the EE bindings to use the proper EE interfaces for creating a JIT.Chris Lattner2009-06-161-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 Gregor2009-06-161-1/+4
| | | | | | the user llvm-svn: 73566
* Test for llvm-gcc patch 73564.Dale Johannesen2009-06-161-0/+10
| | | | llvm-svn: 73565
* Accidentally broke this file.Owen Anderson2009-06-161-1/+1
| | | | llvm-svn: 73552
* Add newline at end of file.Owen Anderson2009-06-161-1/+1
| | | | llvm-svn: 73551
* Remove the Win32 implementation, since it doesn't compile pre-Vista.Owen Anderson2009-06-161-12/+7
| | | | llvm-svn: 73550
* Fix #include guards.Owen Anderson2009-06-161-2/+2
| | | | llvm-svn: 73548
* Make the test target-neutralAnton Korobeynikov2009-06-161-2/+2
| | | | llvm-svn: 73547
* Fix/cleanup trailing newlines.Owen Anderson2009-06-162-2/+1
| | | | llvm-svn: 73546
* Add a portable wrapper for reader-writer locks.Owen Anderson2009-06-165-1/+352
| | | | llvm-svn: 73545
* Introduce new headers whose inclusion forces linking andDouglas Gregor2009-06-1631-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 Gohman2009-06-163-18/+32
| | | | llvm-svn: 73541
* Instcombine's ShrinkDemandedConstant may strip bits out of constants,Dan Gohman2009-06-162-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 Cheng2009-06-161-1/+1
| | | | llvm-svn: 73536
* Address review comments: add 3 ARM calling conventions.Anton Korobeynikov2009-06-168-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 suchAnton Korobeynikov2009-06-162-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 Anderson2009-06-163-0/+109
| | | | llvm-svn: 73523
* Update the threading section to reflect current plans/implementation.Owen Anderson2009-06-161-16/+36
| | | | llvm-svn: 73521
* Add Threading.cpp to the CMake project filesDouglas Gregor2009-06-161-0/+1
| | | | llvm-svn: 73516
* Fix validation errors.Owen Anderson2009-06-161-2/+3
| | | | llvm-svn: 73515
* Split the thread-related APIs out into their own file, and add a few moreOwen Anderson2009-06-164-27/+113
| | | | | | calls for convenience. llvm-svn: 73512
* Testcase for r73506Chris Lattner2009-06-161-0/+15
| | | | llvm-svn: 73508
* Generalize instcombine's isSafeToLoadUnconditionally() functionChris Lattner2009-06-163-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 Gupta2009-06-161-7/+59
| | | | llvm-svn: 73491
OpenPOWER on IntegriCloud