summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MIR Serialization: Serialize the jump table index operands.Alex Lorenz2015-07-158-6/+233
| | | | | Reviewers: Duncan P. N. Exon Smith llvm-svn: 242358
* MIR Serialization: Serialize the jump table info.Alex Lorenz2015-07-155-1/+212
| | | | | | | | | | | | | | The jump table info is serialized using a YAML mapping that contains its kind and a YAML sequence of jump table entries. A jump table entry is a YAML mapping that has an ID and an inline YAML sequence of machine basic block references. The testcase 'CodeGen/MIR/X86/jump-table-info.mir' doesn't have any instructions because one of them contains a jump table index operand. The jump table index operands will be serialized in a follow up patch, and the appropriate instructions will be added to this testcase. Reviewers: Duncan P. N. Exon Smith llvm-svn: 242357
* Add a test for r242281 from an old patch of mine.Sean Silva2015-07-151-0/+37
| | | | | | This isn't thorough, but should serve as a sanity check. llvm-svn: 242356
* Remove a private member of BranchProbabilityInfo which is not used at all.Cong Hou2015-07-151-3/+0
| | | | | | The member to be removed is LoopInfo *LI. llvm-svn: 242355
* llvm-ar: Don't write the directory in the string table.Rafael Espindola2015-07-152-4/+13
| | | | | | | We were already doing the right thing for short file names, but not long ones. llvm-svn: 242354
* COFF: Fix offset in x86 delay-load thunks.Rui Ueyama2015-07-152-12/+66
| | | | llvm-svn: 242353
* Added the ability to get JSON thread stop info with thread ID and stop info ↵Greg Clayton2015-07-153-62/+124
| | | | | | | | | | only in the normal stop reply packets using the new "jthreads" key value pair. This allows stepping operations that don't ever do a public stop to get all the info they need without having to send a jThreadsInfo packet since those tend to be large. This patch will be followed by a patch that will detect when we do a public stop, and when that happens we will send a jThreadsInfo packet at that time to get all expedited registers and memory. llvm-svn: 242352
* adding tests for various dtor decl typesNaomi Musgrave2015-07-151-4/+59
| | | | | | | | | | Reviewers: eugenis, kcc Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D11189 llvm-svn: 242351
* [probile] Fix memory leak introduced in r241824.Alexey Samsonov2015-07-151-0/+1
| | | | llvm-svn: 242350
* Create a wrapper pass for BranchProbabilityInfo.Cong Hou2015-07-157-70/+100
| | | | | | | | This new wrapper pass is useful when we want to do branch probability analysis conditionally (e.g. only in PGO mode) but don't want to add one more pass dependence. http://reviews.llvm.org/D11241 llvm-svn: 242349
* Silence GCC -Wparenthesis warningDavid Majnemer2015-07-151-3/+2
| | | | llvm-svn: 242348
* For new archive member we only need to store the full path.Rafael Espindola2015-07-154-18/+13
| | | | | | | We were storing both the path and the file name, which was redundant and easy to get confused up with. llvm-svn: 242347
* [clang-cl] Use the Windows response file tokenizerReid Kleckner2015-07-153-42/+83
| | | | | | | | | | | | | | | | | | | | We were still using the Unix response file tokenizer for all driver modes. This was difficult to get right in the beginning because there is a circular dependency. The Driver class also can't officially determine its mode until it can see all possible --driver-mode= flags, and those flags could come from the response file. Now we use the Windows parsing algorithm if the program name looks like clang-cl, or if the --driver-mode=cl flag is present on the main command line. Fixes PR23709. Reviewers: hans Differential Revision: http://reviews.llvm.org/D11229 llvm-svn: 242346
* [LoopUnswitch] Add an else clause to IsTrivialUnswitchCondition() when ↵Chen Li2015-07-151-1/+2
| | | | | | | | | | | | | | | | | checking HeaderTerm instruction type Summary: This is a trivial code change with no functionality effect. When LoopUnswitch determines trivial unswitch condition, it checks whether the loop header's terminator instruction is a branch instruction or switch instruction since trivial unswitch condition can only apply to these two instruction types. The current code does not fail the check directly on other instruction types, but check the nullness of LoopExitBB variable instead. The added else clause makes the check fail immediately on other instruction types and makes the code more obvious. Reviewers: reames Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11239 llvm-svn: 242345
* [Makefiles] One more library rename to align with CMakeKeno Fischer2015-07-152-4/+4
| | | | | | | | This one I accidentally missed last time because I confused it with the lldbUtility library. After this, all makefile libraries should have the same names as their CMake counterparts. llvm-svn: 242344
* COFF: Implement x86 delay-load thunks.Rui Ueyama2015-07-152-19/+81
| | | | llvm-svn: 242343
* COFF: Fix mangled dllexported names.Rui Ueyama2015-07-156-23/+29
| | | | | | | | | If a symbol is exported as /export:foo, and foo is resolved as a mangled name (_foo@<number> or ?foo@@Y...), that mangled name should be written to the export table. Previously, we wrote the original name to the export table. llvm-svn: 242342
* test-release.sh: Run both .o files through sed before comparing themHans Wennborg2015-07-151-3/+4
| | | | | | | | | | On some systems (e.g. Mac OS X), sed will add a newline to the end of the output if there wasn't one already. This would cause false cmp errors since the .o file from Phase 2 was passed through sed and the one from Phase 3 wasn't. Work around this by passing both through sed. llvm-svn: 242341
* TargetRegisterInfo: Provide a way to check assigned registers in ↵Matthias Braun2015-07-158-10/+19
| | | | | | | | | | getRegAllocationHints() Pass a const reference to LiveRegMatrix to getRegAllocationHints() because some targets can prodive better hints if they can test whether a physreg has been used for register allocation yet. llvm-svn: 242340
* MIR Serialization: Serialize references from the stack objects to named allocas.Alex Lorenz2015-07-156-13/+61
| | | | | | | | | This commit serializes the references to the named LLVM alloca instructions from the stack objects in the machine frame info. This commit adds a field 'Name' to the struct 'yaml::MachineStackObject'. This new field is used to store the name of the alloca instruction when the alloca is present and when it has a name. llvm-svn: 242339
* Add a "debugger tuning" concept that allows us to fine-tune how wePaul Robinson2015-07-154-11/+116
| | | | | | | | | | | emit debug info, according to the preferences of the different debuggers used on various targets. Darwin and FreeBSD default to tuning for LLDB; PS4 defaults to tuning for the SCE (Sony Computer Entertainment) debugger. All others default to GDB. Differential Revision: http://reviews.llvm.org/D8506 llvm-svn: 242338
* Fix mergefunc infinite loopJF Bastien2015-07-152-2/+46
| | | | | | | | | | | | | | | Self-referential constants containing references to a merged function no longer cause the MergeFunctions pass to infinite loop. Also adds a reproduction IR which would otherwise fail, which was isolated from a similar issue in Chromium. Author: jrkoenig Reviewers: nlewycky, jfb Subscribers: llvm-commits, nlewycky, jfb Differential Revision: http://reviews.llvm.org/D11208 llvm-svn: 242337
* Simplify a few uses of remove_filename by using parent_path instead.Rafael Espindola2015-07-153-7/+4
| | | | llvm-svn: 242334
* Remove shell-specific code from TestLoadUnload Makefile.Chaoren Lin2015-07-151-5/+7
| | | | | | | | | | Reviewers: clayborg, sivachandra Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11202 llvm-svn: 242332
* Switch the release script to build with CMake by default (PR21561)Hans Wennborg2015-07-151-48/+66
| | | | | | | | | | | | | | | | | | | | It retains the possibility to use the autoconf build with a command-line option ('-use-autoconf'), and uses that by default on Darwin since compiler-rt requires it on that platform. This commit also removes the "Release-64" flavour and related logic. The script would previously do two builds unless the '-no-64bit' flag was passed, but on my machine and from those I asked this always ended up producing two 64-bit builds, causing much confusion. It also removes the -build-triple option, which caused the --build= flag to get passed to ./configure. This was presumably intended for cross-compiling, but none of the release testers use it. If someone does want to pass it, they can use '-configure-flags --build=foo' instead. Differential Revision: http://reviews.llvm.org/D10715 llvm-svn: 242331
* Handle the error of trying to convert a regular archive to a thin one.Rafael Espindola2015-07-154-2/+31
| | | | | | While at it, test that we can add to a thin archive. llvm-svn: 242330
* Finally, with no users for shell-preserves-root, remove it from lit.cfg.Yaron Keren2015-07-151-4/+0
| | | | llvm-svn: 242329
* [Static Analyzer] Do not fail silently, when the analyzer is invoked from ↵Gabor Horvath2015-07-151-1/+6
| | | | | | tooling lib, an analyzer plugin is loaded, but the runtime linker fails to link. llvm-svn: 242326
* Erase REQUIRES: shell-preserves-root from remaining tests, see r242312.þYaron Keren2015-07-159-23/+0
| | | | llvm-svn: 242323
* Rename doFunction() in BFI to calculate() and change its parameters from ↵Cong Hou2015-07-153-12/+12
| | | | | | | | pointers to references. http://reviews.llvm.org/D11196 llvm-svn: 242322
* Erase REQUIRES: shell-preserves-root from more tests, see r242312.Yaron Keren2015-07-155-15/+0
| | | | llvm-svn: 242321
* Analyze recursive PHI nodes in BasicAATobias Edler von Koch2015-07-152-0/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch allows phi nodes like %x = phi [ %incptr, ... ] [ %var, ... ] %incptr = getelementptr %x, 1 to be analyzed by BasicAliasAnalysis. In aliasPHI, we can detect incoming values that are recursive GEPs with a constant offset. Instead of trying to analyze a recursive GEP (and failing), we now ignore it and instead set the size of the memory referenced by the PHINode to UnknownSize. This represents all the possible memory locations the pointer represented by the PHINode could be advanced to by the GEP. For now, this new behavior is turned off by default to allow debugging of performance degradations seen with SPEC/x86 and Hexagon benchmarks. The flag -basicaa-recphi turns it on. Reviewers: hfinkel, sanjoy Subscribers: tobiasvk_caf, sanjoy, llvm-commits Differential Revision: http://reviews.llvm.org/D10368 llvm-svn: 242320
* Use accept instead of accept4 for Android.Chaoren Lin2015-07-152-2/+23
| | | | | | | | | | | | | | | Summary: The accept4 syscall is missing on older ARM Android kernels, and the accept() call is implemented with the accept4 syscall, so we'll need to call the accept syscall directly. Reviewers: vharron, tberghammer, labath Subscribers: ovyalov, chaoren, labath, tberghammer, aemerson, lldb-commits Differential Revision: http://reviews.llvm.org/D10887 llvm-svn: 242319
* Default to linking lldb-server statically for Android.Chaoren Lin2015-07-152-6/+15
| | | | | | | | | | Reviewers: vharron, tberghammer Subscribers: chaoren, labath, tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D10858 llvm-svn: 242318
* Allow any comment to be a trailing comment when -fparse-all-comments is on.James Dennett2015-07-152-7/+132
| | | | | | | | | | | | | | | | | | | | | | | | This helps with freeform documentation styles, where otherwise code like enum class E { E1, // D1 E2 // D2 }; would result in D1 being associated with E2. To properly associate E1 with D1 and E2 with D2, this patch allows all raw comments C such that C.isParseAllComments() to participate in trailing comment checks inside getRawCommentForDeclNoCache. This takes care of linking the intended documentation with the intended decls. There remains an issue with code like: foo(); // DN int x; To prevent DN from being associated with x, this patch adds a new test on preceding-line comments C (where C.isParseAllComments() and also C's kind is RCK_OrdinaryBCPL or RCK_OrdinaryC) that checks whether C is the first non-whitespace thing on C's starting line. Patch from Luke Zarko <zarko@google.com>, D11069 reviewed by rsmith. llvm-svn: 242317
* clang-format: Fix return type breaking with overloaded operator functionsBirunthan Mohanathas2015-07-153-15/+86
| | | | | | Differential Revision: http://reviews.llvm.org/D11177 llvm-svn: 242316
* -disable-llvm-optzns in one clang test.Evgeniy Stepanov2015-07-151-2/+2
| | | | | | | The intent is to test Clang codegen at -O1, and not the LLVM optimization pipeline. llvm-svn: 242315
* Actually requiring shell disables the test on Windows whereasYaron Keren2015-07-152-5/+0
| | | | | | | previously requiring shell-preserves-root did not, so do not require anything. llvm-svn: 242314
* [PPC64] Update tests for vec_sldBill Schmidt2015-07-151-1/+145
| | | | | | | | | | | Revision 224297 modified the behavior of vec_sld for little endian so that LLVM will generate the correct corresponding vsldoi instruction. I neglected to update the existing tests, which continued to pass because they were not specific enough. This patch adds enough specificity to the tests to make them useful for BE and LE testing of vec_sld. llvm-svn: 242313
* Since r179283, internal shell is default on windows and so shell-preserves-rootYaron Keren2015-07-152-2/+2
| | | | | | | | | | | | | | | is true on MSYS bash although this requires: used to disable tests on MSYS bash. Nevertheless, all tests requiring shell-preserves-root do pass except for Driver/darwin-sdkroot.c. It will require a patch, either by disabling it on Windows or by fixing shell-preserves-root to really be true only on MSYS and making darwin-sdkroot.c its only user. In any case, all other tests requiring shell-preserves-root do not really require it so I'm replacing REQUIRES: shell-preserves-root with REQUIRES: shell in two tests first. llvm-svn: 242312
* Revert "Refactor optimizeUncoalescable logic"Bruno Cardoso Lopes2015-07-151-246/+127
| | | | | | | | | | Likely broke compilation on ARM: http://lab.llvm.org:8011/builders/clang-native-arm-lnt/builds/13054 This reverts commit 0b7824464fbe3d3f386e2d4aef6a431422709e53. llvm-svn: 242311
* Revert "Look through PHIs to find additional register sources"Bruno Cardoso Lopes2015-07-154-378/+83
| | | | | | | | | | Likely broke compilation on ARM: http://lab.llvm.org:8011/builders/clang-native-arm-lnt/builds/13054 This reverts commit 131ce4a838c081516cbfed039fc986b33e3979d6. llvm-svn: 242310
* Run clang-format on Tools.h, the indentation is inconsistentReid Kleckner2015-07-151-392/+378
| | | | llvm-svn: 242309
* Test commit.Cong Hou2015-07-151-1/+0
| | | | | | This is a test commit (one blank line deleted). llvm-svn: 242308
* [Targets] Define __BOOL_DEFINED for Windows targets in C++ modeDavid Majnemer2015-07-152-0/+4
| | | | | | | | | | MSVC 4.2 didn't have bool as a builtin type but MSVC 5.0 does. When they added it, they added a macro (__BOOL_DEFINED) which allows build scripts and the like to know if they should provide their own bool. Clang always supports bool as a builtin type in C++ mode. llvm-svn: 242307
* Fix -data-info-line when source includes column number.Dawn Perchik2015-07-151-1/+1
| | | | | | | | | | | | This fixes an off-by-one bug in CMICmdCmdDataInfoLine::Acknowledge. Given: LineEntry: \[0x0000000100000f37-0x0000000100000f45\): /path/to/file:123:1 -data-info-line would report the line as 12, omitting the last digit. Reviewed by: ki.stfu, abidh Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11209 llvm-svn: 242306
* [NativeProcessLinux] Integrate MainLoopPavel Labath2015-07-159-811/+276
| | | | | | | | | | | | | | | | Summary: This commit integrates MainLoop into NativeProcessLinux. By registering a SIGCHLD handler with the llgs main loop, we can get rid of the special monitor thread in NPL, which saves as a lot of thread ping-pong when responding to client requests (e.g. qThreadInfo processing time has been reduced by about 40%). It also makes the code simpler, IMHO. Reviewers: ovyalov, clayborg, tberghammer, chaoren Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11150 llvm-svn: 242305
* Delete declared but not implemented functions.Rafael Espindola2015-07-151-2/+0
| | | | llvm-svn: 242304
* Add the ability to AST match a variable declaration that is an exception ↵Aaron Ballman2015-07-154-3/+35
| | | | | | variable. llvm-svn: 242303
* Debug Info: Add basic support for external types references.Adrian Prantl2015-07-159-3/+100
| | | | | | | | | | | | | | This is a necessary prerequisite for bootstrapping the emission of debug info inside modules. - Adds a FlagExternalTypeRef to DICompositeType. External types must have a unique identifier. - External type references are emitted using a forward declaration with a DW_AT_signature([DW_FORM_ref_sig8]) based on the UID. http://reviews.llvm.org/D9612 llvm-svn: 242302
OpenPOWER on IntegriCloud