summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a dependency on the .dir file to make sure that the directoryDan Gohman2010-04-151-1/+1
| | | | | | is created before the native exports file is built in a parallel build. llvm-svn: 101413
* Use default lowering of DYNAMIC_STACKALLOC. As far as I can tell, ARM isle ↵Evan Cheng2010-04-153-70/+9
| | | | | | is doing the right thing and codegen looks correct for both Thumb and Thumb2. llvm-svn: 101410
* tidy interface to isOnlyCopiedFromConstantGlobalChris Lattner2010-04-151-15/+14
| | | | llvm-svn: 101405
* Don't use absolute path for EXPORTED_SYMBOL_FILE, this breaks under the newDaniel Dunbar2010-04-151-1/+1
| | | | | | system. llvm-svn: 101404
* Generalize the EXPORTED_SYMBOL_FILE concept in the Makefiles to work withDan Gohman2010-04-155-62/+98
| | | | | | | | | | native linking export files, including running sed to prepend underscores on darwin, and make use of it in libLTO and libEnhancedDisassembly. Remove the leading underscores from library export files so that they work with the new EXPORTED_SYMBOL_FILE support. llvm-svn: 101399
* reapply r101364, which has been backed out in r101368Gabor Greif2010-04-1543-587/+578
| | | | | | | | | | | | | 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
* Pointed out by housel on #llvm.Duncan Sands2010-04-151-1/+1
| | | | llvm-svn: 101395
* Fix PR6847. RegScavenger should ignore DebugValues.Jakob Stoklund Olesen2010-04-152-0/+29
| | | | llvm-svn: 101392
* Make sure the initialization of a GC root is after its definition.Nicolas Geoffray2010-04-151-3/+4
| | | | llvm-svn: 101388
* Revert r100896 and around - this breaks the only mingw32 buildbot we have.Anton Korobeynikov2010-04-153-9/+3
| | | | llvm-svn: 101387
* prune includesGabor Greif2010-04-151-2/+0
| | | | llvm-svn: 101385
* ARM SelectDYN_ALLOC should emit a copy from SP rather than referencing SP ↵Evan Cheng2010-04-152-1/+24
| | | | | | | | directly. In cases where there are two dyn_alloc in the same BB it would have caused the old SP value to be reused and badness ensues. rdar://7493908 llvm is generating poor code for dynamic alloca, I'll fix that later. llvm-svn: 101383
* DEBUG() print out "Unknown format" msg.Johnny Chen2010-04-151-1/+3
| | | | llvm-svn: 101382
* ReuseFrameIndexVals is used in multiple files, so it can't be static.Dan Gohman2010-04-152-3/+9
| | | | llvm-svn: 101379
* EnablePPC64RS and EnablePPC32RS are used in multiple files, so theyDan Gohman2010-04-152-4/+11
| | | | | | can't be static. llvm-svn: 101377
* Fix a bunch of namespace polution.Dan Gohman2010-04-1515-24/+54
| | | | llvm-svn: 101376
* Fix namespace polution.Dan Gohman2010-04-151-0/+4
| | | | llvm-svn: 101375
* Make getPredecessorWithUniqueSuccessorForBB return the unique successorDan Gohman2010-04-152-13/+12
| | | | | | in addition to the predecessor. llvm-svn: 101374
* typosGabor Greif2010-04-151-2/+2
| | | | llvm-svn: 101371
* back out r101364, as it trips the linux nightlybot on some clang C++ testsGabor Greif2010-04-1543-578/+587
| | | | llvm-svn: 101368
* Simplify ".bc" detection.Benjamin Kramer2010-04-151-2/+1
| | | | llvm-svn: 101365
* rotate CallInst operands, i.e. move callee to the backGabor Greif2010-04-1543-587/+578
| | | | | | | | | | 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
* enhance the load/store narrowing optimization to handle aChris Lattner2010-04-152-5/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | tokenfactor in between the load/store. This allows us to optimize test7 into: _test7: ## @test7 ## BB#0: ## %entry movl (%rdx), %eax ## kill: SIL<def> ESI<kill> movb %sil, 5(%rdi) ret instead of: _test7: ## @test7 ## BB#0: ## %entry movl 4(%esp), %ecx movl $-65281, %eax ## imm = 0xFFFFFFFFFFFF00FF andl 4(%ecx), %eax movzbl 8(%esp), %edx shll $8, %edx addl %eax, %edx movl 12(%esp), %eax movl (%eax), %eax movl %edx, 4(%ecx) ret llvm-svn: 101355
* teach codegen to turn trunc(zextload) into load when possible.Chris Lattner2010-04-152-14/+40
| | | | | | | | This doesn't occur much at all, it only seems to formed in the case when the trunc optimization kicks in due to phase ordering. In that case it is saves a few bytes on x86-32. llvm-svn: 101350
* add a simple dag combine to replace trivial shl+lshr withChris Lattner2010-04-152-1/+10
| | | | | | and. This happens with the store->load narrowing stuff. llvm-svn: 101348
* Implement rdar://7860110 (also in target/readme.txt) narrowingChris Lattner2010-04-153-35/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a load/or/and/store sequence into a narrower store when it is safe. Daniel tells me that clang will start producing this sort of thing with bitfields, and this does trigger a few dozen times on 176.gcc produced by llvm-gcc even now. This compiles code like CodeGen/X86/2009-05-28-DAGCombineCrash.ll into: movl %eax, 36(%rdi) instead of: movl $4294967295, %eax ## imm = 0xFFFFFFFF andq 32(%rdi), %rax shlq $32, %rcx addq %rax, %rcx movq %rcx, 32(%rdi) and each of the testcases into a single store. Each of them used to compile into craziness like this: _test4: movl $65535, %eax ## imm = 0xFFFF andl (%rdi), %eax shll $16, %esi addl %eax, %esi movl %esi, (%rdi) ret llvm-svn: 101343
* Add more const qualifiers for LLVM IR pointers in CodeGen.Dan Gohman2010-04-159-28/+30
| | | | llvm-svn: 101342
* further tweak this to do something useful.Chris Lattner2010-04-151-6/+4
| | | | llvm-svn: 101341
* remove undef control flow.Chris Lattner2010-04-151-22/+1
| | | | llvm-svn: 101340
* Remove unnecessary uses of <iostream>.Daniel Dunbar2010-04-153-7/+5
| | | | llvm-svn: 101338
* tests: MC/Disassembler tests depend on ARM support being compiler in.Daniel Dunbar2010-04-151-1/+3
| | | | llvm-svn: 101337
* fix a crash on "lli ex" or any other file whose name is exactly twoChris Lattner2010-04-151-1/+2
| | | | | | characters long. llvm-svn: 101336
* Fix build.Anders Carlsson2010-04-151-1/+1
| | | | llvm-svn: 101335
* Add const qualifiers to CodeGen's use of LLVM IR constructs.Dan Gohman2010-04-1564-565/+585
| | | | llvm-svn: 101334
* Allow lowering for palignr instructions for mmx sized vectors. AddEric Christopher2010-04-152-3/+23
| | | | | | patterns to handle the lowering. llvm-svn: 101331
* More 80 violations.Evan Cheng2010-04-155-29/+54
| | | | llvm-svn: 101330
* Wrap the error msgs in DEBUG() macro so that they won't appear in NDEBUG build.Johnny Chen2010-04-152-4/+7
| | | | llvm-svn: 101329
* 80 col violations.Evan Cheng2010-04-151-8/+16
| | | | llvm-svn: 101325
* Add comment.Devang Patel2010-04-151-0/+3
| | | | llvm-svn: 101317
* There is no need to track compile unit offsets if there is only one compile ↵Devang Patel2010-04-142-6/+0
| | | | | | unit. llvm-svn: 101315
* Remove dead code.Devang Patel2010-04-141-4/+0
| | | | llvm-svn: 101314
* IPO needs ScalarOpts and InstCombine in its libsTobias Grosser2010-04-141-0/+2
| | | | | | | | The commit "Adding IPSCCP and Internalize passes to the C-bindings" introduced new dependencies for IPO. Add these to the CMAKE build as otherwise the BUILD_SHARED_LIBS=1 build fails. llvm-svn: 101313
* Fixed another assert exposed by fuzzing. Now, the DisassembleVFPLdStMulFrm()Johnny Chen2010-04-141-0/+6
| | | | | | | function checks whether we have a valid submode for VLDM/VSTM (must be either "ia" or "db") before calling ARM_AM::getAM5Opc(AMSubMode, unsigned char). llvm-svn: 101306
* Add -arm-long-calls option to force calls to be indirect. This makes theJim Grosbach2010-04-141-2/+44
| | | | | | | | kernel linker happier when dealing with kexts. Radar 7805069 llvm-svn: 101303
* Fix TrackingVH to handle const Value subclasses.Dan Gohman2010-04-141-1/+1
| | | | llvm-svn: 101300
* Remove a const here. This makes this function consistent with all theDan Gohman2010-04-141-2/+1
| | | | | | | other getOperand wrappers, and it makes it easier to use with DebugInfo code, which isn't currently prepared to see const MDNode *. llvm-svn: 101299
* Constify GetConstantStringInfo.Dan Gohman2010-04-142-13/+15
| | | | llvm-svn: 101298
* Don't use DILocation when processing a DebugLoc.Nicolas Geoffray2010-04-141-8/+9
| | | | llvm-svn: 101294
* For t2BFI disassembly, apply the same error checking as in r101205.Johnny Chen2010-04-142-3/+6
| | | | | | Change the error msg to read "Encoding error: msb < lsb". llvm-svn: 101293
* Move a bunch of methods from CallSite to CallSiteBase, so that they canDan Gohman2010-04-142-118/+95
| | | | | | be used in ImmutableCallSite too. llvm-svn: 101292
OpenPOWER on IntegriCloud