summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add support for C++11 enum classes in llvm.Eric Christopher2012-05-234-4/+55
| | | | | | Part of rdar://11496790 llvm-svn: 157303
* Add more convenience registers to x86_64 and a simple test scenario:Johnny Chen2012-05-222-10/+28
| | | | | | | self.expect("expr -- $ax == (($ah << 8) | $al)", substrs = ['true']) llvm-svn: 157302
* address some of John Criswell's commentsNuno Lopes2012-05-221-31/+84
| | | | | | teach computeAllocSize about realloc, reallocf, and valloc llvm-svn: 157298
* ARMDisassembler.cpp: Fix utf8 char in comments.NAKAMURA Takumi2012-05-221-3/+3
| | | | llvm-svn: 157292
* Integrated a fix for an ARM disassembler crashSean Callanan2012-05-221-3/+29
| | | | | | (0xd 0xd 0xa0 0xf4, or "vld2hs.8 {d0[], d1[]}, [r0]!") llvm-svn: 157289
* Recognize the MS inheritance attributes and turn them into attributesJohn McCall2012-05-2210-20/+123
| | | | | | | | | on the RecordDecl. Persist the MS portability type attributes and ignore them in Sema rather than the parser. Patch by João Matos! llvm-svn: 157288
* Fix line endings.John McCall2012-05-221-23/+18
| | | | llvm-svn: 157287
* Fix a typo.Johnny Chen2012-05-221-1/+1
| | | | llvm-svn: 157278
* Add a test case to check that eax's content equals the lower half of rax.Johnny Chen2012-05-221-4/+36
| | | | | | Plus fix the test class name as well as wrong directory path. llvm-svn: 157277
* The RegisterInfo descriptors for the convenience registers can specify an ↵Johnny Chen2012-05-221-1/+1
| | | | | | | | | | offset to be added to the offset as derived from the value_regs field, which is useful for future expansion purposes. As of now, we have: calculated_offset_of_eax = offset_of_rax + (offset_of_eax_from_the_descriptor which is 0) llvm-svn: 157275
* Untabify and 80-col.Eric Christopher2012-05-221-17/+17
| | | | llvm-svn: 157274
* Formatting consistency.Eric Christopher2012-05-221-3/+4
| | | | llvm-svn: 157273
* Fix wrong offset of eax and friends pointed out by Greg.Johnny Chen2012-05-221-1/+1
| | | | | | rdar://problem/11487457 llvm-svn: 157272
* Also compute TopoSigs in synthetic register classes.Jakob Stoklund Olesen2012-05-222-3/+8
| | | | | | | CodeGenRegisterClass has two constructors. Both need to compute the TopoSigs BitVector. llvm-svn: 157271
* tsan: add shadow memory flush + fix few bugsDmitry Vyukov2012-05-2211-59/+60
| | | | llvm-svn: 157270
* Test that we emit a subrange type for vlas.Eric Christopher2012-05-221-0/+9
| | | | | | Part of rdar://11457152 llvm-svn: 157269
* tsan: fix sizeof sigset_tDmitry Vyukov2012-05-221-1/+1
| | | | llvm-svn: 157268
* Fixes the autoconf build.Manuel Klimek2012-05-221-2/+2
| | | | llvm-svn: 157266
* hopefully fix the CMake build. sorry for breakageNuno Lopes2012-05-221-0/+1
| | | | llvm-svn: 157264
* LSR fix: add a missing phi check during IV hoisting.Andrew Trick2012-05-222-1/+59
| | | | | | Fixes PR12898: SCEVExpander crash. llvm-svn: 157263
* wire -fbounds-checking to the new LLVM bounds checking passNuno Lopes2012-05-227-20/+35
| | | | llvm-svn: 157262
* add a new pass to instrument loads and stores for run-time bounds checkingNuno Lopes2012-05-229-62/+357
| | | | | | | | move EmitGEPOffset from InstCombine to Transforms/Utils/Local.h (a draft of this) patch reviewed by Andrew, thanks. llvm-svn: 157261
* Adds a method overwriteChangedFiles to the Rewriter. This is implemented byManuel Klimek2012-05-225-2/+235
| | | | | | | | | first writing the changed files to a temporary location and then overwriting the original files atomically. Also adds a RewriterTestContext to aid unit testing rewrting logic in general. llvm-svn: 157260
* tsan: fix makefileDmitry Vyukov2012-05-221-0/+1
| | | | | | allow to build custom configurations llvm-svn: 157259
* revert the usage of the objectsize intrinsic with 3 parameters (to match ↵Nuno Lopes2012-05-224-12/+8
| | | | | | LLVM r157255) llvm-svn: 157256
* revert my previous patches that introduced an additional parameter to the ↵Nuno Lopes2012-05-2215-276/+105
| | | | | | | | objectsize intrinsic. After a lot of discussion, we realized it's not the best option for run-time bounds checking llvm-svn: 157255
* Only erase virtregs with no uses left.Jakob Stoklund Olesen2012-05-222-4/+133
| | | | | | | | | Also make sure registers aren't erased twice if the dead def mentions the register twice. This fixes PR12911. llvm-svn: 157254
* Remove some compilation warnings.Filipe Cabecinhas2012-05-222-2/+2
| | | | llvm-svn: 157253
* tsan: reduce per-thread memory usageDmitry Vyukov2012-05-229-21/+19
| | | | llvm-svn: 157252
* Fix PR12858, a crash due to GVN's PRE not fully removing an instruction from theDuncan Sands2012-05-222-6/+45
| | | | | | | | | | | | leader table. That's because it wasn't expecting instructions to turn up as leader for a value number that is not its own, but equality propagation could create this situation. One solution is to have the leader table use a WeakVH but this slows down GVN by about 5%. Instead just have equality propagation not add instructions to the leader table, only constants and arguments. In theory this might cause GVN to run more (each time it changes something it runs again) but it doesn't seem to occur enough to cause a slow down. llvm-svn: 157251
* [asan] nuke some old unused codeKostya Serebryany2012-05-221-51/+0
| | | | llvm-svn: 157250
* [asan] increase the stack size limit to 256M (yes, that happens); also CHECK ↵Kostya Serebryany2012-05-222-8/+6
| | | | | | that the stack size is less than that on a non-main thread llvm-svn: 157249
* tsan: simple memory profilerDmitry Vyukov2012-05-229-4/+110
| | | | llvm-svn: 157248
* Replace inline asm constraint "=a" by the more general constraint "=r".Simon Atanasyan2012-05-222-2/+2
| | | | | | That extend a range of platforms support this test case. llvm-svn: 157247
* ScheduleOptimizer: Simplify some codeTobias Grosser2012-05-221-22/+10
| | | | | | We now use isl_map_equate, which makes the code a lot simpler. llvm-svn: 157246
* ScopInfo: Add parameter bounds to contextTobias Grosser2012-05-224-2/+39
| | | | | | | | Derive the maximal and minimal values of a parameter from the type it has. Add this information to the scop context. This information is needed, to derive optimal types during code generation. llvm-svn: 157245
* Replace some asserts with llvm_unreachableTobias Grosser2012-05-221-4/+4
| | | | llvm-svn: 157244
* ScopInfo: SCEVUnknowns are always parametersTobias Grosser2012-05-221-15/+1
| | | | | | | | There is no need for special code to handle SCEVUnknowns. SCEVUnkowns are always parameters and will be handled by the generic parameter handling code in visit(). llvm-svn: 157243
* Move isParallelFor into CodeGenerationTobias Grosser2012-05-223-22/+24
| | | | | | This removes another include of CLooG header files. llvm-svn: 157242
* Return a constant of the appropriate type.Filipe Cabecinhas2012-05-221-2/+2
| | | | llvm-svn: 157241
* Remove trailing semicolons.Filipe Cabecinhas2012-05-226-10/+10
| | | | llvm-svn: 157240
* [asan] use -fno-builtin to build asan-rt on MacKostya Serebryany2012-05-221-1/+1
| | | | llvm-svn: 157239
* [asan] use -fPIE -fno-builtin for building asan-rtKostya Serebryany2012-05-221-2/+2
| | | | llvm-svn: 157238
* [asan] fix one test on 32-bit Mac 10.7; enable another test on MacKostya Serebryany2012-05-222-5/+3
| | | | llvm-svn: 157237
* Fix constant used for pshufb mask when lowering v16i8 shuffles. Bug ↵Craig Topper2012-05-221-1/+1
| | | | | | introduced in r157043. Fixes PR12908. llvm-svn: 157236
* This patch adds a predicate to existing mips32 and mips64 so that thoseAkira Hatanaka2012-05-226-101/+134
| | | | | | | | | | | | | | | | | | | instruction encodings can be excluded during mips16 processing. This revision fixes the issue raised by Jim Grosbach. bool hasStandardEncoding() const { return !inMips16Mode(); } When micromips is added it will be bool StandardEncoding() const { return !inMips16Mode()&& !inMicroMipsMode(); } No additional testing is needed other than to assure that there is no regression from this patch. Patch by Reed Kotler. llvm-svn: 157234
* Truthify a comment.Richard Smith2012-05-221-2/+2
| | | | llvm-svn: 157232
* fix the quotient returned by sdivrem() for the case when LHS is negative and ↵Nuno Lopes2012-05-222-2/+31
| | | | | | | | RHS is positive based on a patch by Preston Briggs, with some modifications llvm-svn: 157231
* rdar://problem/11487457Johnny Chen2012-05-223-0/+80
| | | | | | | | Add convenience registers eax, ebx, ecx, edx, edi, esi, ebp, esp to the 'register read' command for x86_64. Add a GDBRemoteRegisterContext::Addx86_64ConvenienceRegisters() method called from ProcessGDBRemote::BuildDynamicRegisterInfo(). Servicing of eax, for example, is accomplished by delegating to rax with an adjusted offset into the register context. llvm-svn: 157230
* Fix typo.Ted Kremenek2012-05-221-1/+1
| | | | llvm-svn: 157229
OpenPOWER on IntegriCloud