summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* The --debug-only option now takes a comma separated list of debug types.Christof Douma2016-01-122-4/+10
| | | | | | | | | This means that the DEBUG_TYPE cannot take a comma anymore. All existing passes conform to this rule. Differential Revision: http://reviews.llvm.org/D15645 llvm-svn: 257466
* Fix for TestNoreturnUnwind.py on i386Ravitheja Addepally2016-01-122-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The testcase TestNoreturnUnwind.py was failing because the unwind from the vdso library was not successful for clang compiler while it was passing for gcc. It was passing for gcc since the unwind plan used was the assembly plan and the ebp register was set by the main function in case of gcc and was not used by the functions in the call flow to the vdso, whereas clang did not emit assembly prologue for main and so the assembly unwind was failing. Normally in case of failure of assembly unwind, lldb switches to EH CFI frame based unwinding, but this was not happening for the first frame. This patch tries to fix this behaviour by falling to EH CFI frame based unwinding in case of assembly unwind failure even for the first frame. The test is still marked as XFAIL since it relys on the fix of another bug. Reviewers: lldb-commits, jingham, zturner, tberghammer, jasonmolenda Subscribers: jasonmolenda Differential Revision: http://reviews.llvm.org/D15046 llvm-svn: 257465
* [analyzer] Evaluate integral casts as cast symbols if truncations are detected.Pierre Gousseau2016-01-124-2/+178
| | | | | | | | | | | | | The current workaround for truncations not being modelled is that the evaluation of integer to integer casts are simply bypassed and so the original symbol is used as the new casted symbol (cf SimpleSValBuilder::evalCastFromNonLoc). This lead to the issue described in PR25078, as the RangeConstraintManager associates ranges with symbols. The new evalIntegralCast method added by this patch wont bypass the cast if it finds the range of the symbol to be greater than the maximum value of the target type. The fix to RangeSet::pin mentioned in the initial review will be committed separately. Differential Revision: http://reviews.llvm.org/D12901 llvm-svn: 257464
* AVX512: VPMOVAPS/PD and VPMOVUPS/PD (load) intrinsic implementation.Igor Breger2016-01-127-67/+334
| | | | | | Differential Revision: http://reviews.llvm.org/D16042 llvm-svn: 257463
* PR18513: make gcc compatible layout for bit-fields with explicit aligned ↵Alexey Bataev2016-01-122-3/+193
| | | | | | | | | attribute, by Dmitry Polukhin Fix binary compatibility issue with GCC. Differential Revision: http://reviews.llvm.org/D14980 llvm-svn: 257462
* Fix infinite recursion for invalid declaration, by Dmitry PolukhinAlexey Bataev2016-01-122-1/+10
| | | | | | | Fix for a case found by fuzzing PR23057 (comment #25 https://llvm.org/bugs/show_bug.cgi?id=23057#c25). Differential Revision: http://reviews.llvm.org/D16065 llvm-svn: 257461
* Add clang::Type::Pipe to ClangASTContextPavel Labath2016-01-121-0/+3
| | | | | | | | | | | | | | Summary: Clang recently added support for an OpenCL pipe type. Adding the new type to relevant switches to avoid warnings. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D16055 llvm-svn: 257460
* Explicitly enable OBJECT library "target".Axel Naumann2016-01-121-2/+4
| | | | | | | | | | | | | With this, one can build a lib from the objects of other libs: set(SOURCES $<TARGET_OBJECTS:obj.clingInterpreter> $<TARGET_OBJECTS:obj.clingMetaProcessor> $<TARGET_OBJECTS:obj.clingUtils> ) Reviewed by Chris Bieneman - thanks! llvm-svn: 257459
* [Orc] Comment out debugging output in OrcRemoteTargetClient::reserveMem to seeLang Hames2016-01-121-13/+13
| | | | | | | whether this affects the GCC 4.7 ICE on http://lab.llvm.org:8011/builders/clang-x86_64-ubuntu-gdb-75 . llvm-svn: 257458
* Revert r257003Andrew Wilkins2016-01-126-103/+50
| | | | | | | | This revision breaks llvm-config if you set BUILD_SHARED_LIBS=on in a CMake build. Backing out until the fix is ready to land. llvm-svn: 257457
* [PGO] Add Linux specific test cases for profile runtimeXinliang David Li2016-01-125-0/+149
| | | | | | | | (second try with more strict config check) Currently, only gc-sections related tests are added. Gold linker currently is required due to PR19161 of bfd linker. llvm-svn: 257456
* [ORC] Remove extraneous '&'.Lang Hames2016-01-121-1/+1
| | | | llvm-svn: 257455
* [ORC] Replace some more 'auto' uses with std::error_code.Lang Hames2016-01-121-4/+8
| | | | | | | One of the GCC 4.7 bots doesn't seem to like auto, and is currently suffering from an ICE. I'm hoping this will help. llvm-svn: 257454
* Changes to lldb and debugserver to reduce extraneous memory readsJason Molenda2016-01-1210-65/+285
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | at each public stop to improve performance a bit. Most of the information lldb needed was already in the jThreadsInfo response; complete that information and catch a few cases where we could still fall back to getting the information via discrete memory reads. debugserver adds 'associated_with_dispatch_queue' and 'dispatch_queue_t keys to the jThreadsInfo response for all the threads. lldb needs the dispatch_queue_t value. And associated_with_dispatch_queue helps to identify which threads definitively don't have any queue information so lldb doesn't try to do memory reads to get that information just because it was absent in the jThreadsInfo response. Remove the queue information from the questionmark (T) packet. We'll get the information for all threads via the jThreadsInfo response - sending the information for the stopping thread (on all the private stops, plus the less frequent public stop) was unnecessary information being sent over the wire. SystemRuntimeMacOSX will try to get information about queues by asking the Threads for them, instead of reading memory. ProcessGDBRemote changes to recognize the new keys being sent in the jThreadsInfo response. Changes to ThreadGDBRemote to track the new information. Also, when a thread is marked as definitively not associated with a libdispatch queue, don't fall back to the system runtime to try memory reads to find the queue name / kind / ID etc. <rdar://problem/23309359> llvm-svn: 257453
* [Orc] Add overloads of RPC::handle and RPC::expect that take member functions asLang Hames2016-01-122-167/+139
| | | | | | | | | | | | | handlers. It is expected that RPC handlers will usually be member functions. Accepting them directly in handle and expect allows for the remove of a lot of lambdas an explicit error variables. This patch also uses this new feature to substantially tidy up the OrcRemoteTargetServer class. llvm-svn: 257452
* clang-format: [JS] Support exporting abstract classes.Daniel Jasper2016-01-122-0/+5
| | | | | | | | | | | Before: export abstract class X {y: number;} (and all sorts of other havoc in more complicated cases). After: export abstract class X { y: number; } llvm-svn: 257451
* [ELF][MIPS] Fix a typo in the commentSimon Atanasyan2016-01-121-1/+1
| | | | llvm-svn: 257450
* [ELF][MIPS] Prevent substitution of _gp_disp symbolSimon Atanasyan2016-01-128-4/+62
| | | | | | | | | | | | | On MIPS O32 ABI, _gp_disp is a magic symbol designates offset between start of function and gp pointer into GOT. To make seal with such symbol we add new method addIgnoredStrong(). It adds ignored symbol with global binding to prevent the symbol substitution. The addIgnored call is not enough here because this call adds a weak symbol which might be substituted by symbol from shared library. Differential Revision: http://reviews.llvm.org/D16084 llvm-svn: 257449
* [LLDB][MIPS] Fix rL255619: mips 3, 4 and 5 are 64 bit archsMohit K. Bhakkad2016-01-121-3/+3
| | | | llvm-svn: 257448
* [LLDB][MIPS] Fix ReadRegisterValue for registers with constant 32 bit size ↵Mohit K. Bhakkad2016-01-121-1/+9
| | | | | | | | | | regardless of ABI Reviewers: clayborg, tberghammer. Subscribers: jaydeep, bhushan, sagar, nitesh.jain, lldb-commits. Differential Revision: http://reviews.llvm.org/D16060 llvm-svn: 257447
* Revert r257444 : arm build bots failureXinliang David Li2016-01-125-133/+0
| | | | llvm-svn: 257446
* LoopUnroll: Move the actual unrolling logic to a standalone function. NFCJustin Bogner2016-01-121-86/+95
| | | | | | | This is pure code motion - break the actual work out of runOnLoop into a reusable standalone function. llvm-svn: 257445
* [PGO] Add Linux specific test cases for profile runtimeXinliang David Li2016-01-125-0/+133
| | | | | | | Currently, only gc-sections related tests are added. Gold linker currently is required due to PR19161 of bfd linker. llvm-svn: 257444
* Fix comment of testXinliang David Li2016-01-121-1/+1
| | | | llvm-svn: 257443
* [LLDB][MIPS] Merge emulation of similar instructions for MIPS64Bhushan D. Attarde2016-01-122-1769/+379
| | | | | | | | | | | SUMMARY: This patch merges emulation of similar instructions into a single function (wherever possible) to remove code duplication. Reviewers: clayborg Subscribers: mohit.bhakkad, sagar, jaydeep, lldb-commits Differential Revision: http://reviews.llvm.org/D16051 llvm-svn: 257442
* [LLDB][MIPS] Handle PIC calling convention for MIPS64Bhushan D. Attarde2016-01-121-0/+8
| | | | | | | | | | | | SUMMARY: This patch sets up register r25 with the address of function to be called in PrepareTrivialCall(). This is required as per MIPS PIC calling convention. Reviewers: clayborg Subscribers: mohit.bhakkad, sagar, jaydeep, lldb-commits Differential Revision: http://reviews.llvm.org/D16046 llvm-svn: 257441
* [WebAssembly] Implement a prototype instruction encoder and disassembler.Dan Gohman2016-01-127-24/+231
| | | | | | | This is using an extremely simple temporary made-up binary format, not the official binary format (which isn't defined yet). llvm-svn: 257440
* [WebAssembly] Register the MC subtarget info.Dan Gohman2016-01-121-0/+8
| | | | llvm-svn: 257439
* [WebAssembly] Define OperandTypes for decoding immediate values.Dan Gohman2016-01-122-13/+33
| | | | llvm-svn: 257438
* [ELF] FreeBSD has slightly different emulation strings for PPC.Davide Italiano2016-01-121-2/+2
| | | | | | Teach lld about them. llvm-svn: 257437
* [WebAssembly] Define a custom segment type for function definitions.Dan Gohman2016-01-121-1/+4
| | | | | | | | Since function definitions are not loaded into the address space, PT_LOAD is inappropriate. PT_WEBASSEMBLY_FUNCTIONS is used to identify where the function definitions are so that they can be processed at program startup time. llvm-svn: 257436
* [libFuzzer] when a new unit is discovered using a dictionary, print all used ↵Kostya Serebryany2016-01-124-30/+35
| | | | | | dictionary entries llvm-svn: 257435
* [libFuzzer] add various debug prints. Also don't mutate based on a cmp trace ↵Kostya Serebryany2016-01-121-5/+28
| | | | | | like (a eq a) or (a neq a) llvm-svn: 257434
* [WebAssembly] Use TSFlags instead of keeping a list of special-case opcodes.Dan Gohman2016-01-124-15/+54
| | | | llvm-svn: 257433
* Simplify. NFC.Rui Ueyama2016-01-122-7/+3
| | | | llvm-svn: 257432
* OrcRemoteTargetServer.h: Suppress a warning. [-Wunused-variable]NAKAMURA Takumi2016-01-121-0/+1
| | | | | FIXME: It may return ErrorOr. llvm-svn: 257431
* lli: Fix warnings. [-Wsign-compare]NAKAMURA Takumi2016-01-121-2/+2
| | | | llvm-svn: 257430
* Get rid of ARM_ELF_SYM_IS_THUMB flag.Stephane Sezer2016-01-121-4/+0
| | | | | | | | | | | | | | Summary: This was used with the old ARM vs. Thumb detection code but is not required anymore. Reviewers: tberghammer, clayborg Subscribers: fjricci, aemerson, lldb-commits, rengolin Differential Revision: http://reviews.llvm.org/D16099 llvm-svn: 257429
* CXX_FAST_TLS calling convention: performance improvement for x86-64.Manman Ren2016-01-128-43/+117
| | | | | | | This is the same change on x86-64 as r255821 on AArch64. rdar://9001553 llvm-svn: 257428
* LoopUnroll: Make canUnrollCompletely static - it doesn't use any state. NFCJustin Bogner2016-01-121-11/+5
| | | | llvm-svn: 257427
* LoopUnroll: Clean up the maze of initialization for unroll parameters. NFCJustin Bogner2016-01-121-199/+141
| | | | | | | | | | The layering of where the various loop unroll parameters are initialized and overridden here was very confusing, making it pretty difficult to tell just how the various sources interacted. Instead, we put all of the initialization logic together in a single function so that it's obvious what overrides what. llvm-svn: 257426
* CXX_FAST_TLS calling convention: performance improvement for ARM.Manman Ren2016-01-129-11/+111
| | | | | | | This is the same change on ARM as r255821 on AArch64. rdar://9001553 llvm-svn: 257424
* [libFuzzer] extend the weak memcmp/strcmp/strncmp interceptors to receive ↵Kostya Serebryany2016-01-123-18/+31
| | | | | | the result of the computations. With that, don't do any mutations if memcmp/etc returned 0 llvm-svn: 257423
* Put the definition of _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK in the ↵Marshall Clow2016-01-121-5/+5
| | | | | | right place. llvm-svn: 257422
* Remove dead code.Rui Ueyama2016-01-121-2/+0
| | | | llvm-svn: 257421
* [IRMover] Don't copy personality, etc unless creating defTeresa Johnson2016-01-123-0/+27
| | | | | | | | | | | | | | Function::copyAttributesFrom will copy the personality function, prefix data and prolog data from the source function to the new function, and is invoked when the IRMover copies the function prototype. This puts a reference to a constant in the source module on a function in the dest module, which causes an error when deleting the source module after importing, since the personality function in the source module still has uses (this would presumably also be an issue for the prologue and prefix data). Remove the copies added to the dest copy when creating the new prototype, as they are mapped properly when/if we link the function body. llvm-svn: 257420
* [Orc] XFAIL a few remote-jit test cases that I missed in r257391.Lang Hames2016-01-113-2/+3
| | | | llvm-svn: 257419
* Merge two small functions. NFC.Rui Ueyama2016-01-111-12/+9
| | | | llvm-svn: 257418
* CXX_FAST_TLS calling convention: Add support for ARM on Darwin.Manman Ren2016-01-115-0/+60
| | | | | | rdar://9001553 llvm-svn: 257417
* [WebAssembly] Define WebAssembly-specific relocation codes.Dan Gohman2016-01-1121-52/+112
| | | | | | | | Currently WebAssembly has two kinds of relocations; data addresses and function addresses. This adds ELF relocations for them, as well as an MC symbol kind to indicate which type of relocation is needed. llvm-svn: 257416
OpenPOWER on IntegriCloud