summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Add parens to pacify gcc.Benjamin Kramer2010-12-071-1/+1
| | | | llvm-svn: 121142
* Remove some dead code from the jump threading pass.Frits van Bommel2010-12-071-141/+0
| | | | | | The last uses of these functions were removed in r113852 when LazyValueInfo was permanently enabled and removed the need for them. llvm-svn: 121133
* CMake: Fix warning in gtest header used by unit tests.Frits van Bommel2010-12-071-0/+4
| | | | llvm-svn: 121127
* PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() andJay Foad2010-12-0725-250/+218
| | | | | | | | zextOrTrunc(), and APSInt methods extend(), extOrTrunc() and new method trunc(), to be const and to return a new value instead of modifying the object in place. llvm-svn: 121120
* Don't leak the mutex when loading dynamic libraries.Owen Anderson2010-12-071-12/+5
| | | | llvm-svn: 121119
* utils/lit/lit/TestFormats.py: [PR8438] unittests: Seek *Tests (not ↵NAKAMURA Takumi2010-12-071-2/+3
| | | | | | BUILD_MODE/*Tests) under whole unittests/ if BUILD_MODE == '.' llvm-svn: 121118
* unittests/CMakeLists.txt: Tweak unittests' layout to be identical to GNU build.NAKAMURA Takumi2010-12-071-5/+6
| | | | llvm-svn: 121117
* Fix relocations with weak definitions.Rafael Espindola2010-12-072-1/+142
| | | | llvm-svn: 121114
* Revert test/Archive/check_binary_output.ll". It fails on a buildbot.NAKAMURA Takumi2010-12-071-4/+0
| | | | llvm-svn: 121113
* reapply r121100 with a tweak to constant fold ConstExprs with TargetDataChris Lattner2010-12-072-8/+118
| | | | | | | | (if available) as we go so that we get simple constantexprs not insane ones. This fixes the failure of clang/test/CodeGenCXX/virtual-base-ctor.cpp that the previous iteration of this patch had. llvm-svn: 121111
* Support/PathV2: Cleanup separator handling.Michael J. Spencer2010-12-071-7/+10
| | | | llvm-svn: 121110
* Support/PathV2: Remove the error_code return type from all functions in the pathMichael J. Spencer2010-12-075-197/+110
| | | | | | | namespace. None of them return anything except for success anyway. These will be converted to returning their result soon. llvm-svn: 121109
* Support/PathV2: Move make_absolute from path to fs.Michael J. Spencer2010-12-074-69/+71
| | | | llvm-svn: 121108
* Fix pcrel relocations that cross sections.Rafael Espindola2010-12-072-2/+109
| | | | llvm-svn: 121107
* test/Archive/check_binary_output.ll: Add a new test to check output of ↵NAKAMURA Takumi2010-12-071-0/+4
| | | | | | 'llvm-ar -p' is sane. Thanks to Danil Malyshev! llvm-svn: 121106
* test/Other/close-stderr.ll: Require the feature 'shell'. It is not ↵NAKAMURA Takumi2010-12-071-0/+1
| | | | | | executable on Win32 but it is executable on MSYS-bash. llvm-svn: 121105
* test: Add the feature 'shell' on LLVM_ON_UNIX.NAKAMURA Takumi2010-12-071-0/+4
| | | | llvm-svn: 121104
* lib/Target/X86/X86MCAsmInfo.cpp: [PR8741] On Win64, specify explicit ↵NAKAMURA Takumi2010-12-071-1/+3
| | | | | | | | PrivateGlobalPrefix as ".L". Or, global symbols @Lxxxx might be treated as temporal symbol by MCSymbol. llvm-svn: 121103
* Temporarily revert r121100 as it's causing clang to failEric Christopher2010-12-072-108/+5
| | | | | | CodeGenCXX/virtual-base-ctor.cpp. llvm-svn: 121102
* Two things: Fix testcase to use extern - otherwise the link will alwaysEric Christopher2010-12-072-25/+36
| | | | | | | succeed. Also make the testcase clearer as to what we're doing and emit a checking notification to the log. llvm-svn: 121101
* fix PR8710 - teach global opt that some constantexprs are too complex toChris Lattner2010-12-072-5/+108
| | | | | | put in a global variable's initializer. llvm-svn: 121100
* Remove unused member.Jakob Stoklund Olesen2010-12-071-8/+0
| | | | llvm-svn: 121098
* Promote "enumerator in switch of enum is not handled" to level 1 warning on ↵Francois Pichet2010-12-071-1/+4
| | | | | | MSVC. It was disabled by default. llvm-svn: 121096
* Test: Fix Support.Path and _all_ of the unittest death tests. GetTempPath ↵Michael J. Spencer2010-12-072-0/+14
| | | | | | | | defaults to \Windows\. If I typed anything else it would just decline into cursing. llvm-svn: 121095
* Support/Unix/PathV2: Return the real error from realpath instead of any errorMichael J. Spencer2010-12-071-1/+2
| | | | | | that close or unlink set. llvm-svn: 121094
* Support/Unix/PathV2: Use 0770 instead of 0700 when creating a directory. ↵Michael J. Spencer2010-12-071-1/+1
| | | | | | | | Also use the standard macros instead of octal notation. llvm-svn: 121093
* Support/PathV2: Use SmallVector::clear instead of set_size.Michael J. Spencer2010-12-072-3/+3
| | | | llvm-svn: 121092
* Support/PathV2: Clarify and correct documentation.Michael J. Spencer2010-12-072-3/+9
| | | | llvm-svn: 121091
* Support/PathV2: Move current_path from path to fs and fix the Unix ↵Michael J. Spencer2010-12-075-26/+22
| | | | | | | | implementation. Unix bug spotted by Dan Gohman. llvm-svn: 121090
* Add an OpReinterpret operation to TableGen's NeonEmitter.Bob Wilson2010-12-072-40/+73
| | | | | | | | An OpReinterpret entry is handled by translating it to OpCast intrinsics for all combinations of source and destination types with the same total size. This will be used to generate all the vreinterpret intrinsics. llvm-svn: 121087
* Fix whitespace.Bob Wilson2010-12-071-5/+5
| | | | llvm-svn: 121086
* Fix a crash reduced from gcc produced assembly.Rafael Espindola2010-12-072-8/+126
| | | | llvm-svn: 121085
* Second attempt at converting Thumb2's LDRpci, including updating the ↵Owen Anderson2010-12-079-73/+102
| | | | | | gazillion places that need to know about it. llvm-svn: 121082
* Add python scripts to extract debug info using LLDB and do comparison.Devang Patel2010-12-072-0/+207
| | | | llvm-svn: 121079
* Add a simple breakpoint location printer. This will be used by upcoming ↵Devang Patel2010-12-071-1/+59
| | | | | | "debug info in optimized code" quality test harness to set breakpoints at "interesting" locations. llvm-svn: 121078
* Sorry for such a large commit. The summary is that only MachO cares about theRafael Espindola2010-12-0715-206/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | actuall addresses in a .o file, so it is better to let the MachO writer compute it. This is good for two reasons. First, areas that shouldn't care about addresses now don't have access to it. Second, the layout of each section is independent. I should use this in a subsequent commit to speed it up. Most of the patch is just removing the section address computation. The two interesting parts are the change on how we handle padding in the end of sections and how MachO can get the address of a-b when a and b are in different sections. Since now the expression evaluation normally doesn't know the section address, it will think that a-b needs relocation and let the MachO writer know. Once it has computed the section addresses, it calls back the expression evaluation with the section addresses to resolve these expressions. The remaining problem is the handling of padding. Currently it will create a special alignment fragment at the end. Since that fragment doesn't update the alignment of the section, it needs the real address to be computed. Since now the layout will not compute a-b with a and b in different sections, the only effect that the special alignment fragment has is update the address size of the section. This can also be done by the MachO writer. llvm-svn: 121076
* Add fixup for Thumb1 BL/BLX instructions.Jim Grosbach2010-12-067-17/+80
| | | | llvm-svn: 121072
* Implement jump threading of 'indirectbr' by keeping track of whether we're ↵Frits van Bommel2010-12-062-46/+141
| | | | | | looking for ConstantInt*s or BlockAddress*s. llvm-svn: 121066
* Undefined value in reg 0 may need a marker to identify end of source range.Devang Patel2010-12-061-4/+2
| | | | | | This will be used to truncate live range of DBG_VALUE instruction by register allocator and friends. llvm-svn: 121061
* If dbg_declare() or dbg_value() is not lowered by isel then emit DEBUG ↵Devang Patel2010-12-0614-311/+241
| | | | | | message instead of creating DBG_VALUE for undefined value in reg0. llvm-svn: 121059
* Use references to simplify the code a bit.Rafael Espindola2010-12-064-18/+15
| | | | llvm-svn: 121050
* Adding bug fix that was suppose to be part of 121044.Wesley Peck2010-12-061-6/+6
| | | | | | patch contributed by Jack Whitham! llvm-svn: 121049
* Fixed reversed operands for IDIV and CMP instructions in MBlaze backend.Wesley Peck2010-12-063-28/+28
| | | | | | | | Use BRAD instead of BRD for indirect branches in MBlaze backend. patch contributed by Jack Whitham! llvm-svn: 121044
* Refactor ELFObjectWriter.Jason W Kim2010-12-061-216/+106
| | | | | | | + ARM/X86/MBlaze now share a common RecordRelocation + ARM/X86/MBlaze arch specific routines are limited to GetRelocType() llvm-svn: 121043
* replace a linear scan with a symtab lookup, reduce indentation.Chris Lattner2010-12-061-38/+38
| | | | | | No functionality change. llvm-svn: 121042
* use getSymbolOffset.Rafael Espindola2010-12-061-1/+1
| | | | llvm-svn: 121041
* Use a stronger predicate here, pointed out by DuncanChris Lattner2010-12-061-1/+1
| | | | llvm-svn: 121040
* add some DEBUG statements.Chris Lattner2010-12-061-3/+14
| | | | llvm-svn: 121038
* Fix a 16-bit immediate value detection bug in the MBlaze delay slot filler.Wesley Peck2010-12-062-49/+87
| | | | | | | | Address more hazards in the MBlaze delay slot filler. patch contributed by Jack Whitham! llvm-svn: 121037
* Another use of getSymbolOffset.Rafael Espindola2010-12-061-4/+8
| | | | llvm-svn: 121034
OpenPOWER on IntegriCloud