summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [X86] A small fix in X86/X86TargetTransformInfo.cpp: check a value type is ↵Cong Hou2015-10-281-1/+2
| | | | | | simple before calling getSimpleVT(). llvm-svn: 251538
* Make core files not crash when you load a core file into LLDB with just ↵Greg Clayton2015-10-284-24/+162
| | | | | | | | | | | | | | | "lldb -c core". To do this I added a few new ways to determine the OS from PT_NOTE notes in the ELF file: 1 - Look for "LINUX" notes which indicate "linux" should be the OS 2 - Look through the "CORE" notes with NT_FILE as the type and sniff data from the paths listed in this section. On Ubuntu they contain "/lib/x86_64-linux-gnu" which has the triple and allows us to set "linux" as the OS in the architecture returned from ObjectFileELF::GetArchitecture(). Setting the OS correctly allows us to get the triple correct so we can extract registers without asserting and killing LLDB. Also use the data from the NT_FILE to set the main executable if one isn't set in ProcessElfCore::DoLoadCore(). llvm-svn: 251537
* [ELF2] R_X86_64_64 plt relocation implemented.George Rimar2015-10-283-19/+15
| | | | | | | | | | This little patch is a final point in fix for https://llvm.org/bugs/show_bug.cgi?id=25175. It`s make sample from issue description to work with -O0 optimization flag (with -O0 it generates R_X86_64_64 plt relocation). Differential revision: http://reviews.llvm.org/D14153 llvm-svn: 251536
* [AliasAnalysis] Take into account readnone attribute for the function argumentsIgor Laevsky2015-10-282-0/+14
| | | | | | Differential Revision: http://reviews.llvm.org/D13992 llvm-svn: 251535
* WebAssembly: disable some loop-idiom recognitionJF Bastien2015-10-282-1/+56
| | | | | | | memset/memcpy aren't fully supported yet. We should invert this test once they are supported. llvm-svn: 251534
* Move lldb/test to lldb/packages/Python/lldbsuite/test.Zachary Turner2015-10-281492-2037/+2066
| | | | | | | | | | | This is the conclusion of an effort to get LLDB's Python code structured into a bona-fide Python package. This has a number of benefits, but most notably the ability to more easily share Python code between different but related pieces of LLDB's Python infrastructure (for example, `scripts` can now share code with `test`). llvm-svn: 251532
* SamplePGO - Clear per-function data after applying a profile.Diego Novillo2015-10-281-4/+21
| | | | | | | | | | The pass was keeping around a lot of per-function data (visited blocks, edges, dominance, etc) that is just taking up memory for no reason. In fact, from function to function it could potentially confuse the propagator since some maps are indexed by line offsets which can be common between functions. llvm-svn: 251531
* Avoid using `..` in paths for include dirs.Stephane Sezer2015-10-281-1/+1
| | | | | | | | | | | | | | | Summary: This breaks when using a symlink from llvm/tools/lldb to the lldb source tree, instead of cloning directly as a child. With this change, we can build properly, even when using links. Reviewers: dawn, brucem, zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D14089 llvm-svn: 251530
* Adapt to lit change in llvm r251478-r251481Matthias Braun2015-10-281-8/+13
| | | | | | Sorry for the breakage. llvm-svn: 251529
* Move global classes into anonymous namespaces. NFC.Benjamin Kramer2015-10-282-2/+4
| | | | llvm-svn: 251528
* Don't codesign lldbserver if debugserver codesigning is disabled, because itSean Callanan2015-10-281-1/+1
| | | | | | probably won't work. llvm-svn: 251527
* [ELF2] R_X86_64_COPY relocation implementedGeorge Rimar2015-10-288-5/+143
| | | | | | Differential revision: http://reviews.llvm.org/D14090. llvm-svn: 251526
* [AliasAnalysis] Take into account readonly attribute for the function argumentsIgor Laevsky2015-10-282-0/+29
| | | | | | | | | | In getArgModRefInfo we consider all arguments as having MRI_ModRef. However for arguments marked with readonly attribute we can return more precise answer - MRI_Ref. Differential Revision: http://reviews.llvm.org/D13992 llvm-svn: 251525
* [analyzer] Make inclusion/exclusion of checkers less ambiguous.Anton Yartsev2015-10-281-6/+10
| | | | | | | | A checker may be enabled/disabled multiple times via -enable-checker and -disable-checker scan-build arguments. Currently the conflicting and repetitive arguments are passed to the analyzer as is. With this patch only the last enable/disable of a particular checker is accepted and passed to the analyzer. This change is mostly done for the upcoming 'config for scan-build' patch when multiple inclusions/exclusions of a checker are expected to be more common. llvm-svn: 251524
* [ELF2/AArch64] Add support for R_AARCH64_PREL64.Davide Italiano2015-10-282-0/+15
| | | | llvm-svn: 251523
* Fix build break on OS X from cleanup check-in.Todd Fiala2015-10-281-0/+5
| | | | | | I'll track down why our CI is not sending out emails on build breaks. llvm-svn: 251522
* Typo.Chad Rosier2015-10-281-1/+1
| | | | llvm-svn: 251521
* Change test to just define NULL instead of #including stddef.h. In someDaniel Jasper2015-10-281-1/+1
| | | | | | | test environments, even that builtin header isn't available. Also, this makes it more consistent with the C++ version of this test. llvm-svn: 251520
* [Driver] Ignore -G option in both new and old ELF linkerSimon Atanasyan2015-10-282-0/+4
| | | | | | | This is optimization option that make sense for MIPS targets. We can safely ignore it now. llvm-svn: 251519
* Reapply: [LIR] Add support for creating memsets from loops with a negative ↵Chad Rosier2015-10-282-24/+112
| | | | | | | | stride. The simple fix is to prevent forming memcpy from loops with a negative stride. llvm-svn: 251518
* [GlobalOpt] Add newlines to DEBUG messagesJames Molloy2015-10-281-4/+4
| | | | | | | | I think these were affected by a change way back when to stop printing newlines in Value::dump() by default. This change simply allows the debug output to be readable. NFC. llvm-svn: 251517
* [ARM] Allow SP in rGPR, starting from ARMv8Artyom Skrobov2015-10-288-67/+137
| | | | | | | | | | | | | | | | | Summary: This patch handles assembly and disassembly, but not codegen, as of yet. Additionally, it fixes a bug whereby SP and PC as shifted-reg operands were treated as predictable in ARMv7 Thumb; and it enables the tests for invalid and unpredictable instructions to run on both ARMv7 and ARMv8. Reviewers: jmolloy, rengolin Subscribers: aemerson, rengolin, llvm-commits Differential Revision: http://reviews.llvm.org/D14141 llvm-svn: 251516
* Put global classes into the appropriate namespace.Benjamin Kramer2015-10-286-6/+13
| | | | | | | Most of the cases belong into an anonymous namespace. No functionality change intended. llvm-svn: 251515
* Put global classes into the appropriate namespace.Benjamin Kramer2015-10-288-2/+20
| | | | | | | Most of the cases belong into an anonymous namespace. No functionality change intended. llvm-svn: 251514
* Revert "[LIR] Add support for creating memsets from loops with a negative ↵Chad Rosier2015-10-282-72/+24
| | | | | | | | stride." This reverts commit r251512. This is causing LNT/chomp to fail. llvm-svn: 251513
* [LIR] Add support for creating memsets from loops with a negative stride.Chad Rosier2015-10-282-24/+72
| | | | | | http://reviews.llvm.org/D14125 llvm-svn: 251512
* Add newline to test. NFC.Chad Rosier2015-10-281-1/+1
| | | | llvm-svn: 251511
* [mips][microMIPS] Implement PAUSE, RDHWR, RDPGPR, SDBBP, SSNOP, SYNC, SYNCI ↵Hrvoje Varga2015-10-289-15/+191
| | | | | | | | and WAIT instructions Differential Revision: http://reviews.llvm.org/D12628 llvm-svn: 251510
* [Orc] Remove unnecessary semicolon. NFC.Vasileios Kalintiris2015-10-281-2/+2
| | | | llvm-svn: 251509
* [GlobalsAA] An indirect global that is initialized is not fair gameJames Molloy2015-10-283-2/+34
| | | | | | | | When checking if an indirect global (a global with pointer type) is only assigned by allocation functions, first check if the global is itself initialized. If it is, it's not only assigned by allocation functions. This fixes PR25309. Thanks to David Majnemer for reducing the test case! llvm-svn: 251508
* When running clang with an arm triple such as '--target=thumbv7m-none-eabi'Alexandros Lamprineas2015-10-282-6/+25
| | | | | | | | | | | | that has a thumb only CPU by default (cortex-m3), and when using the assembler, the default thumb state of the CPU does not get passed via the triple to LLVM: $ clang -target thumbv7m-none-eabi -c -v test.s clang -cc1as ... -triple armv7m-none--eabi ... test.s Differential Revision: http://reviews.llvm.org/D14121 llvm-svn: 251507
* OrcJITTests: Prune unused libdeps.NAKAMURA Takumi2015-10-281-2/+0
| | | | llvm-svn: 251506
* Changes for Bug 17384Ravitheja Addepally2015-10-284-8/+42
| | | | | | | | | | | | | | | | | | | | | | | Summary: Virtual dynamic shared objects, or vdso files were not loaded for Linux OS.In Bug 17384 the call stack could not be unwinded from functions residing in the vdso object. This commit adds support for loading such files by reading the Aux vectors since a vdso is invisibily mapped to the inferiors address space and the actual file is not present in the filesystem. The presence of the vdso is detected by inspecting the Aux vector for AT_SYSINFO_EHDR tag. Reviewers: lldb-commits, ovyalov, tberghammer Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D14118 llvm-svn: 251505
* OrcJITTests: Update libdeps.NAKAMURA Takumi2015-10-281-0/+1
| | | | llvm-svn: 251504
* clang-tools-extra/test/clang-tidy/modernize-redundant-void-arg.c: Use ↵NAKAMURA Takumi2015-10-281-1/+1
| | | | | | <stddef.h> provided by clang, instead of <stdio.h>. llvm-svn: 251503
* [ELF2] Move sorting and data to the GNU hash table section.Igor Kudrin2015-10-282-64/+63
| | | | | | | | | It is the GNU hash table section that should be reaponsible for storing its own data and applying its requirements for the order to dynamic symbols. Differential Revision: http://reviews.llvm.org/D14084 llvm-svn: 251502
* Reflow comment.Eric Christopher2015-10-281-6/+4
| | | | llvm-svn: 251501
* [X86] Make some for loops over MVTs more explicit (and shorter) by just ↵Craig Topper2015-10-281-42/+7
| | | | | | mentioning all the relevant types in an initializer list. NFC llvm-svn: 251500
* [tidy] Remove stray iostream include from test.Benjamin Kramer2015-10-281-1/+1
| | | | | | | It is unused and we cannot rely on standard headers being present while executing tests. llvm-svn: 251499
* Revert r251492 "[IndVarSimplify] Rewrite loop exit values with their Chen Li2015-10-283-147/+1
| | | | | | initial values from loop preheader", because it broke some bots. llvm-svn: 251498
* [Driver] Accept both -m <emulation> and -m<emulation>Simon Atanasyan2015-10-284-2/+6
| | | | | | | | | GNU linkers accept both variants and at least for MIPS target gcc passes joined variant of the '-m' option. Differential Revision: http://reviews.llvm.org/D14133 llvm-svn: 251497
* Refine r251469 to give better (and more localizable) diagnosticsJohn McCall2015-10-2812-70/+121
| | | | | | for all the reasons that ARC makes things implicitly unavailable. llvm-svn: 251496
* Fix a -Wpessimizing-move warning.Craig Topper2015-10-281-1/+1
| | | | llvm-svn: 251495
* Use range-based for loops and use initializer list to remove a small static ↵Craig Topper2015-10-281-7/+5
| | | | | | array. NFC llvm-svn: 251494
* Driver: support -fuse-ld= on cross windowsSaleem Abdulrasool2015-10-283-2/+5
| | | | | | | Update the linker selection to support the `-fuse-ld=` option for selecting a linker. llvm-svn: 251493
* [IndVarSimplify] Rewrite loop exit values with their initial values from ↵Chen Li2015-10-283-1/+147
| | | | | | | | | | | | | | | | | loop preheader Summary: This patch adds support to check if a loop has loop invariant conditions which lead to loop exits. If so, we know that if the exit path is taken, it is at the first loop iteration. If there is an induction variable used in that exit path whose value has not been updated, it will keep its initial value passing from loop preheader. We can therefore rewrite the exit value with its initial value. This will help remove phis created by LCSSA and enable other optimizations like loop unswitch. Reviewers: sanjoy Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13974 llvm-svn: 251492
* [PGO] Indexed Prof Reader refactoring (NFC)Xinliang David Li2015-10-282-49/+90
| | | | | | | | | | Change InstrProfReaderIndex from typedef into a wrapper class with helper methods. This makes the index profile reader code more readable. It also hides the implementation detail of the index format and make it more flexible to allow support different (or more than one) format in the future. llvm-svn: 251491
* Remove templates from CostTableLookup functions. All instantiations had the ↵Craig Topper2015-10-284-76/+47
| | | | | | | | same type. This also lets us remove the versions of the functions that took a statically sized array as we can rely on ArrayRef implicit conversion now. llvm-svn: 251490
* [PowerPC] Replace cntlz[.] with cntlzw[.]Hal Finkel2015-10-287-19/+24
| | | | | | | | | | | | | | | | | | | cntlz is the old POWER mnemonic. cntlzw is the PowerPC mnemonic. This change fixes an issue when -no-integrated-as: The opcode cntlz is unrecognized by gas Alias the POWER mnemonic cntlz[.] to the PowerPC mnemonic cntlzw[.] This is done for because the POWER cntlz mnemonic has be used by LLVM for a very long time. We need to make sure that assembly programs that are using the cntlz[.] do not break with this change. Change PowerPC tests to reflect the insn change from cntlz to cntlzw. Add assembly test to verify cntlz[.] is encoded correctly. Patch by Tom Rix! llvm-svn: 251489
* [ValueTracking] Expose `implies` via ValueTracking, NFCSanjoy Das2015-10-283-50/+51
| | | | | | | | | | | | Summary: This will allow a later patch to `JumpThreading` use this functionality. Reviewers: reames Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13971 llvm-svn: 251488
OpenPOWER on IntegriCloud