summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Added a unittest for APFloat::getSmallestNormalized.Michael Gottesman2013-05-301-0/+30
| | | | llvm-svn: 182897
* Added code to the unittest for APFloat::getSmallest to double check that we ↵Michael Gottesman2013-05-301-2/+6
| | | | | | | | | consider the result to be denormal. I additionally changed certain checks to use EXPECT_FALSE instead of a boolean complement with EXPECT_TRUE. llvm-svn: 182896
* [libclang] When indexing a @synthesize, don't consider that it defines a ↵Argyrios Kyrtzidis2013-05-292-2/+32
| | | | | | | | getter/setter if one is already defined by the user. Fixes rdar://13925258 llvm-svn: 182895
* Add a unittest for APFloat::getSmallest.Michael Gottesman2013-05-291-0/+26
| | | | llvm-svn: 182894
* <rdar://problem/13956179>Greg Clayton2013-05-291-16/+3
| | | | | | | | Cleaned up the thread updating code in the OperatingSystemPython class. It doesn't need to clear the "new_thread_list" anymore as it is always empty. It also now assigns the "core_thread_list" to "new_thread_list" if no threads are detected through python. llvm-svn: 182893
* Remove unused variable.Greg Clayton2013-05-291-1/+0
| | | | llvm-svn: 182892
* Document -fno-sanitize-recover and -fsanitize-undefined-trap-on-error and ↵Richard Smith2013-05-291-6/+18
| | | | | | attempt to explain the difference between them. llvm-svn: 182890
* [lld][elf] Add --dynamic-linker option to the ELF linker.Shankar Easwaran2013-05-295-8/+45
| | | | | | | | | Users can override the default value of the dynamic linker to be set to the one that appears in the command line. The path can even be empty!. Added a test for the option. llvm-svn: 182889
* Fixing problems with thread create during step test.Andrew Kaylor2013-05-291-8/+6
| | | | llvm-svn: 182888
* Disabling watchpoint test with intermittent failure.Andrew Kaylor2013-05-291-0/+1
| | | | llvm-svn: 182887
* Fixes error when splitting block comments.Manuel Klimek2013-05-292-2/+37
| | | | | | | | When trying to fall back to search from the end onwards, we would still find leading whitespace if the leading whitespace went on after the end of the line. llvm-svn: 182886
* Order CALLSEQ_START and CALLSEQ_END nodes.Andrew Trick2013-05-2916-52/+80
| | | | | | | | | | | | Fixes PR16146: gdb.base__call-ar-st.exp fails after pre-RA-sched=source fixes. Patch by Xiaoyi Guo! This also fixes an unsupported dbg.value test case. Codegen was previously incorrect but the test was passing by luck. llvm-svn: 182885
* Split off casts to void* for -Wint-to-pointer-cast to subgroup ↵Ted Kremenek2013-05-294-3/+31
| | | | | | | | | | | | | -Wint-to-void-pointer-cast. This change is motivated from user feedback that some APIs use void* as an opaque "context" object that may not really be a pointer. Such users want an ability to turn off the warning for casts to void* while preserving the warning for other cases. Implements <rdar://problem/14016721>. llvm-svn: 182884
* X86: Fix Defs/Uses for insts that imp-def/imp-use both an A-register and EFLAGS.Ahmed Bougacha2013-05-291-66/+74
| | | | | | | | | | | | | This corrects a problem where x86 instructions that implicitly define/use both an A-register (RAX, EAX, ..) and EFLAGS were declared as only defining/using EFLAGS, because the outer "let Defs/Uses = [EFLAGS]" in the various multiclasses overrides the "let Defs/Uses = [areg]" in BinOpAI. The instructions deriving from BinOpAI were moved out of the "let Defs", and a BinOpAI_FF class was created, for instructions that implicitly define and use EFLAGS and the A-register (SBC, ADC). llvm-svn: 182883
* Add another test case for r182814.David Majnemer2013-05-291-0/+2
| | | | llvm-svn: 182882
* Turn CLANG_ENABLE_{ARCMT,REWRITER,STATIC_ANALYZER} into proper options so thatRoman Divacky2013-05-294-15/+57
| | | | | | users can disable those. Just like in autoconf generated makefiles. llvm-svn: 182881
* [analyzer] Accept references to variables declared "extern void" (C only).Jordan Rose2013-05-294-3/+33
| | | | | | | | | | | | | | | In C, 'void' is treated like any other incomplete type, and though it is never completed, you can cast the address of a void-typed variable to do something useful. (In C++ it's illegal to declare a variable with void type.) Previously we asserted on this code; now we just treat it like any other incomplete type. And speaking of incomplete types, we don't know their extent. Actually check that in TypedValueRegion::getExtent, though that's not being used by any checkers that are on by default. llvm-svn: 182880
* Don't assume the registers will be enumerated sequentially.Chad Rosier2013-05-291-2/+5
| | | | llvm-svn: 182879
* Add colored diagnostics when building LLVM with cmake + ninja + clangArnaud A. de Grandmaison2013-05-291-0/+7
| | | | | | When invoked from Ninja, clang does not detect that it can use colors : see https://github.com/martine/ninja/issues/174 llvm-svn: 182878
* Enable FastISel on ARM for Linux and NaClJF Bastien2013-05-2925-15/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | FastISel was only enabled for iOS ARM and Thumb2, this patch enables it for ARM (not Thumb2) on Linux and NaCl. Thumb2 support needs a bit more work, mainly around register class restrictions. The patch punts to SelectionDAG when doing TLS relocation on non-Darwin targets. I will fix this and other FastISel-to-SelectionDAG failures in a separate patch. The patch also forces FastISel to retain frame pointers: iOS always keeps them for backtracking (so emitted code won't change because of this), but Linux was getting much worse code that was incorrect when using big frames (such as test-suite's lencod). I'll also fix this in a later patch, it will probably require a peephole so that FastISel doesn't rematerialize frame pointers back-to-back. The test changes are straightforward, similar to: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130513/174279.html They also add a vararg test that got dropped in that change. I ran all of test-suite on A15 hardware with --optimize-option=-O0 and all the tests pass. llvm-svn: 182877
* Don't reach into the middle of TargetMachine and cache one of its ivars.Bill Wendling2013-05-296-11/+13
| | | | | | Not only does this break encapsulation, it's gross. llvm-svn: 182876
* Error out if the expression for a breakpointSean Callanan2013-05-291-0/+6
| | | | | | | | | condition doesn't return a result, instead of blindly trying to use that result. <rdar://problem/14009519> llvm-svn: 182875
* Remove unused field.Rafael Espindola2013-05-292-5/+1
| | | | llvm-svn: 182874
* For "expr", say what the timeout units are in the help string.Jim Ingham2013-05-291-1/+1
| | | | llvm-svn: 182873
* Teach ReMaterialization to be more cunning about subregistersTim Northover2013-05-293-27/+74
| | | | | | | | | | | | | | | | This allows rematerialization during register coalescing to handle more cases involving operations like SUBREG_TO_REG which might need to be rematerialized using sub-register indices. For example, code like: v1(GPR64):sub_32 = MOVZ something v2(GPR64) = COPY v1(GPR64) should be convertable to: v2(GPR64):sub_32 = MOVZ something but previously we just gave up in places like this llvm-svn: 182872
* [libclang] For "@import .." code-completion results, associate a ↵Argyrios Kyrtzidis2013-05-292-6/+6
| | | | | | CXCursor_ModuleImportDecl cursor instead of CXCursor_NotImplemented. llvm-svn: 182871
* [ms-cxxabi] Implement MSVC virtual base adjustmentReid Kleckner2013-05-296-43/+203
| | | | | | | | | | | | While we can't yet emit vbtables, this allows us to find virtual bases of objects constructed in other TUs. This make iostream hello world work, since basic_ostream virtually inherits from basic_ios. Differential Revision: http://llvm-reviews.chandlerc.com/D795 llvm-svn: 182870
* Simplify logic by using the appropriate functions.Adrian Prantl2013-05-292-3/+2
| | | | llvm-svn: 182869
* Replaced 'bool .* = 0;' with '... = false;'Timur Iskhodzhanov2013-05-291-2/+2
| | | | llvm-svn: 182868
* LTO+Debug Info: revert r182791.Manman Ren2013-05-294-171/+13
| | | | | | | | | | | | Since the testing case uses ref_addr, which requires version 3+ to work, we will solve the dwarf version issue first. This patch also causes failures in one of the bots. I will update the patch accordingly in my next attempt. rdar://13926659 llvm-svn: 182867
* [ms-cxxabi] Fix r182865 to have an actual Itanium-style key functionReid Kleckner2013-05-291-1/+7
| | | | | | | Peter pointed out that C::f() is not a key function. C's key function is actually C::~C(). llvm-svn: 182866
* [ms-cxxabi] There are no key functions in the Microsoft C++ ABIReid Kleckner2013-05-293-11/+25
| | | | | | | | | | | MSVC's class data is always comdat, so clang's should always be linkonce_odr in LLVM IR. Reviewers: pcc Differential Revision: http://llvm-reviews.chandlerc.com/D838 llvm-svn: 182865
* Tooling: Call back for both begin and end of sourcesEdwin Vane2013-05-292-25/+50
| | | | | | | | | | | | newFrontendActionFactory() took a pointer to a callback to call when a source file was done being processed by an action. This revision updates the callback to include an ante-processing callback as well. Callback-providing class renamed and callback functions themselves renamed. Functions are no longer pure-virtual so users aren't forced to implement both callbacks if one isn't needed. llvm-svn: 182864
* Tidy some register classes for ARM and ThumbJF Bastien2013-05-292-3/+3
| | | | | | | | | | | | | | | | | | Tidy up three places where the register class for ARM and Thumb wasn't restrictive enough: - No PC dest for reg-reg add/orr/sub. - No PC dest for shifts. - No PC or SP for Thumb2 reg-imm add. I encountered this while combining FastISel with -verify-machineinstrs. These instructions defined registers whose classes weren't restrictive enough, and the uses failed verification. They're also undefined in the ISA, or would produce code that FastISel wouldn't want. This doesn't fix the register class narrowing issue (where uses should restrict definitions), and isn't thorough, but it's a small step in the right direction. llvm-svn: 182863
* [asan] Fix r182858.Sergey Matveev2013-05-291-4/+0
| | | | llvm-svn: 182862
* Use a non-recursive implementation to reconstruct line breaks.Manuel Klimek2013-05-291-16/+17
| | | | | | | | | Now that the TokenAnnotator does not require stack space anymore, reconstructing the lines has become the limiting factor. This patch fixes that problem, allowing large files with multiple megabytes of single unwrapped lines to be formatted. llvm-svn: 182861
* Refactors to provide two variants for evaluation of text_list:Ashok Thirumurthi2013-05-292-6/+70
| | | | | | | | - The original test now passes on Linux with clang because a breakpoint is hit prior to evaluation of text_list, which improves text coverage. - The new test fails because 4 steps are requested, and only two occur prior to evaluation of text_list. --- Note that the loss of every second "next" command can be reproduced using lldb manually with this script. llvm-svn: 182860
* The second step in the token refactoring.Manuel Klimek2013-05-296-582/+513
| | | | | | | | | | Gets rid of AnnotatedToken, putting everything into FormatToken. FormatTokens are created once, and only referenced by pointer. This enables multiple future features, like having tokens shared between multiple UnwrappedLines (while there's still work to do to fully enable that). llvm-svn: 182859
* [asan] Fix r182854: run the unpoison_tls test only on Linux.Sergey Matveev2013-05-291-0/+0
| | | | llvm-svn: 182858
* Fix MSVC W3 compiler warningsTimur Iskhodzhanov2013-05-299-16/+16
| | | | llvm-svn: 182857
* Add return missing in r182855.Daniel Jasper2013-05-292-0/+9
| | | | llvm-svn: 182856
* Leave some macros on their own lineDaniel Jasper2013-05-292-1/+35
| | | | | | | | | | | | | | | | | | | If an identifier is on its own line and it is all upper case, it is highly likely that this is a macro that is meant to stand on a line by itself. Before: class A : public QObject { Q_OBJECT A() {} }; Ater: class A : public QObject { Q_OBJECT A() {} }; llvm-svn: 182855
* [asan] Make ASan report the correct thread address ranges to LSan.Sergey Matveev2013-05-294-10/+74
| | | | | | This CL enables thread support in LSan when used on top of ASan. llvm-svn: 182854
* [sanitizer] Change the way GetThreadStackAndTls() obtains the thread ↵Sergey Matveev2013-05-293-26/+45
| | | | | | | | | | descriptor address. Instead of using arch_prctl(ARCH_GET_FS), read the address from the tread descriptor itself. This lets us avoid sandboxing issues. Also, GetThreadStackAndTls() can now be implemented on i386. llvm-svn: 182853
* [sanitizer] Fix getaddrinfo interceptor to use the actual returned sockaddr ↵Evgeniy Stepanov2013-05-294-3/+13
| | | | | | size. llvm-svn: 182852
* [nolibc] Unweak SymbolizerPrepareForSandboxing and move it to ↵Peter Collingbourne2013-05-296-42/+72
| | | | | | | | | | libc-independent part. Fixes the Go build. Differential Revision: http://llvm-reviews.chandlerc.com/D877 llvm-svn: 182851
* SparcFrameLowering.cpp: Mark verifyLeafProcRegUse() as UNUSED. ↵NAKAMURA Takumi2013-05-291-1/+1
| | | | | | [-Wunused-function] llvm-svn: 182850
* Add option to always break template declarations.Daniel Jasper2013-05-294-2/+25
| | | | | | | | | | | | | | With option enabled (e.g. in Google-style): template <typename T> void f() {} With option disabled: template <typename T> void f() {} Enabling this for Google-style and Chromium-style, not sure which other styles would prefer that. llvm-svn: 182849
* Fix MSVC warnings at the -W2 levelTimur Iskhodzhanov2013-05-292-2/+4
| | | | llvm-svn: 182848
* [SystemZ] Two tests missing from previous commitRichard Sandiford2013-05-292-0/+218
| | | | llvm-svn: 182847
OpenPOWER on IntegriCloud