summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* During SelectionDAG building explicitly set a node to constant zero when theQuentin Colombet2013-06-185-5/+49
| | | | | | | | | | | | value is zero. This allows optmizations to kick in more easily. Fix some test cases so that they remain meaningful (i.e., not completely dead coded) when optimizations apply. <rdar://problem/14096009> superfluous multiply by high part of zero-extended value. llvm-svn: 184222
* Fixed a typo and naming convention.John Thompson2013-06-182-4/+4
| | | | llvm-svn: 184221
* Mips ELF: Mark object file as ABI compliant Jack Carter2013-06-184-12/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | When producing objects that are abi compliant we are marking neither the object file nor the assembly file correctly and thus generate warnings. We need to set the EF_CPIC flag in the ELF header when generating direct object. Note that the warning is only generated when compiling without PIC. When compiling with clang the warning will be suppressed by supplying: -Wa,-mno-shared -Wa,-call_nonpic Also the following directive should also be added: .option pic0 when compiling without PIC, This eliminates the need for supplying: -mno-shared -call_nonpic on the assembler command line. Patch by Douglas Gilmore llvm-svn: 184220
* Remove uniqueID from PathV1.h.Rafael Espindola2013-06-183-11/+1
| | | | llvm-svn: 184219
* Use llvm::sys::fs::GetUniqueID.Rafael Espindola2013-06-181-15/+22
| | | | llvm-svn: 184218
* Add a GetUniqueID that will replace the uniqueID of PathV1.h.Rafael Espindola2013-06-183-0/+28
| | | | llvm-svn: 184217
* Fix a missing pointer deref that was uncovered by one of the buildbots.Adrian Prantl2013-06-181-1/+1
| | | | llvm-svn: 184216
* <rdar://problem/12717717>Enrico Granata2013-06-186-26/+98
| | | | | | | Modifying our data formatters matching algorithm to ensure that "const X*" is treated as equivalent to "X*" Also, a couple improvements to the "lldb types" logging llvm-svn: 184215
* Correctly compute the index of the first string format argument when decidingEli Friedman2013-06-182-1/+11
| | | | | | whether to emit a -Wformat-security warning. <rdar://problem/14178260>. llvm-svn: 184214
* Reduce indentation.David Blaikie2013-06-181-53/+55
| | | | llvm-svn: 184213
* This patch fixes the issue where our command-line tab completer would ↵Enrico Granata2013-06-181-13/+18
| | | | | | | | | | | | | | | | | sometimes replicate commands e.g. (lldb) pl<TAB> Available completions: platform plugin platform plugin Thanks to Matthew Sorrels for doing work and testing on this issue llvm-svn: 184212
* PR14503: Don't assert if a constexpr constructor temploid instantiates to aRichard Smith2013-06-183-0/+27
| | | | | | | constructor that does not initialize all members, and that constructor is used to initialize a global. llvm-svn: 184211
* Convert most uses of PathV1.h in ToolRunner.cpp.Rafael Espindola2013-06-181-25/+35
| | | | llvm-svn: 184210
* Removing the lldb-perf file group from our Xcode projectEnrico Granata2013-06-181-69/+0
| | | | | | This is in a separate project now so this duplication is unnecessary and some referenced files were also dangling after a rename llvm-svn: 184209
* Objective-C: Fixes a typo correction bug where aFariborz Jahanian2013-06-183-4/+6
| | | | | | | selector would be correted to identical selector name in certain corner cases. // rdar://7853549 llvm-svn: 184208
* Add support for encoding the HLE XACQUIRE and XRELEASE prefixes.Stefanus Du Toit2013-06-183-0/+22
| | | | | | | | For decoding, keep the current behavior of always decoding these as their REP versions. In the future, this could be improved to recognize the cases where these behave as XACQUIRE and XRELEASE and decode them as such. llvm-svn: 184207
* Add a version of unique_file that return just the file name.Rafael Espindola2013-06-184-20/+19
| | | | llvm-svn: 184206
* CodeGen: Have 'this'-returning constructors and destructors to take ↵Stephen Lin2013-06-1813-229/+230
| | | | | | | | | | advantage of the new backend 'returned' attribute. The backend will now use the generic 'returned' attribute to form tail calls where possible, as well as avoid save-restores of 'this' in some cases (specifically the cases that matter for the ARM C++ ABI). This patch also reverts a prior front-end only partial implementation of these optimizations, since it's no longer required. llvm-svn: 184205
* Return a std::string from PrependMainExecutablePath.Rafael Espindola2013-06-181-6/+7
| | | | llvm-svn: 184204
* Remove PathV1.h use from BugDriver.cpp.Rafael Espindola2013-06-181-3/+2
| | | | llvm-svn: 184203
* Remove use of PathV1.h from ExecutionDriver.cpp.Rafael Espindola2013-06-181-24/+37
| | | | llvm-svn: 184202
* Scan the successor blocks and use the PHI nodes as a hint for possible chain ↵Nadav Rotem2013-06-181-6/+40
| | | | | | roots. llvm-svn: 184201
* Add a return value to make this function more useful.Nadav Rotem2013-06-182-2/+4
| | | | llvm-svn: 184200
* Fix buildbot failure.Fariborz Jahanian2013-06-181-1/+1
| | | | llvm-svn: 184199
* Remove usage of PathV1.h from OptimizerDriver.cpp.Rafael Espindola2013-06-181-26/+32
| | | | llvm-svn: 184198
* cpp11-migrate: Transforms honour header modification flagEdwin Vane2013-06-1818-58/+206
| | | | | | | | | | Transforms will now make changes to headers if header modifications have been enabled. FIXME: Only UseNullptr contains a cursory header modification test. Other transforms should have them too. llvm-svn: 184197
* Convert some uses of eraseFromDisk.Rafael Espindola2013-06-181-3/+3
| | | | llvm-svn: 184196
* Objective-C [qoi]: privide typo correction for selectorsFariborz Jahanian2013-06-188-23/+54
| | | | | | | | in addition of receiver having static type, but also when receiver has dynamic type (of 'id' variety) as well as when receiver is of 'Class' type vareity. // rdar://7853549 llvm-svn: 184195
* cpp11-migrate: Transform now responsible for applying replacementsEdwin Vane2013-06-1816-199/+204
| | | | | | | | | | | | | | | | | | | | | | | | To make it possible for replacements made to headers as part of transforming one translation unit to not be visible to the transform of other translation units, Transform now handles replacement application as part of its end-of-source handling. Several things were simplified as a result: - The duplicated code in every transform for applying replacements is now gone and replaced with one location in Transform. - RefactoringTool is no longer used since Transform houses the Replacements structure. - RewriterContainer is now a private implementation detail of Transform (also renamed to RewriterManager since its behaviour is slightly different now with respect to lifetime of objects). - There's now no distinction between input and output file state. Misc notes: - Interface changes reflected in unit tests. - Replacements for files other than the main file are assumed to be for headers and stored as such. llvm-svn: 184194
* Don't use PathV1.h in tools/bugpoint/Miscompilation.cpp.Rafael Espindola2013-06-183-30/+49
| | | | llvm-svn: 184193
* Remove option emitter from clang-tblgenReid Kleckner2013-06-185-292/+3
| | | | | | | The CMake build was still using it because I forgot to s/CLANG/LLVM/ in the tablegen() call. The Makefile build is already using llvm-tblgen. llvm-svn: 184192
* Basic support for parsing Mach-O universal binaries in LLVMObject libraryAlexey Samsonov2013-06-1817-4/+312
| | | | llvm-svn: 184191
* [asan] fix a rare failure in fast unwinder, found by asan/clang bootstrapKostya Serebryany2013-06-181-0/+1
| | | | llvm-svn: 184190
* [lsan] Set current_thread_tid correctly for main thread.Sergey Matveev2013-06-181-0/+1
| | | | llvm-svn: 184189
* Remove duplicated file and directory.Rafael Espindola2013-06-181-34/+0
| | | | llvm-svn: 184188
* [sanitizer] Fix Android build.Evgeniy Stepanov2013-06-183-12/+12
| | | | llvm-svn: 184187
* Don't convert object_error's enum to and from int.Rafael Espindola2013-06-182-16/+16
| | | | | | | This allows the compiler to see the enum and warn about it. While in here, fix a switch to not use a default and fix style violations. llvm-svn: 184186
* [sanitizer] Remove a set of deprecated ioctls.Evgeniy Stepanov2013-06-183-13/+0
| | | | llvm-svn: 184185
* [sanitizer] Replace ext2_ ioctls with generic fs_ ioctls.Evgeniy Stepanov2013-06-183-13/+13
| | | | | | | They are actually the same, but ext2_fs.h header is not available in userspace with newer kernels. llvm-svn: 184184
* [sanitizer] Symbolic ioctl names.Evgeniy Stepanov2013-06-184-414/+1184
| | | | | | | | | | Replace hardcoded ioctl request ids with symbolic names. Disable certain ioctls on platforms where such names are not found in the system headers. Fix a bug in ioctl_lookup. Reenable ioctl test on Mac. llvm-svn: 184183
* ARM: fix literal load with positive offset encodingAmaury de la Vieuville2013-06-184-6/+27
| | | | | | | | | | | | When using a positive offset, literal loads where encoded as if it was negative, because: - The sign bit was not assigned to an operand - The addrmode_imm12 operand was not encoding the sign bit correctly This patch also makes the assembler look at the .w/.n specifier for loads. llvm-svn: 184182
* ARM: add operands pre-writeback variants when neededAmaury de la Vieuville2013-06-184-40/+77
| | | | llvm-svn: 184181
* ARM: fix thumb literal loads decodingAmaury de la Vieuville2013-06-184-31/+293
| | | | | | | | This fixes two previous issues: - Negative offsets were not correctly disassembled - The decoded opcodes were not the right one llvm-svn: 184180
* ARM: thumb stores cannot use PC as dest registerAmaury de la Vieuville2013-06-182-0/+74
| | | | llvm-svn: 184179
* Hopefully fix the MSVS build after r184105Timur Iskhodzhanov2013-06-181-0/+1
| | | | llvm-svn: 184178
* Update to new API.Bill Wendling2013-06-181-1/+1
| | | | llvm-svn: 184177
* Update to pass in pointers intead of references.Bill Wendling2013-06-182-2/+2
| | | | llvm-svn: 184176
* Use pointers to the MCAsmInfo and MCRegInfo.Bill Wendling2013-06-1830-199/+195
| | | | | | | | | Someone may want to do something crazy, like replace these objects if they change or something. No functionality change intended. llvm-svn: 184175
* Fix nondeterminism in .gcno file generation.Nick Lewycky2013-06-181-9/+25
| | | | llvm-svn: 184174
* Remove dead prototype.Bill Wendling2013-06-181-2/+0
| | | | llvm-svn: 184173
OpenPOWER on IntegriCloud