summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* clang-cl: ignore /cgthreads (PR21894)Hans Wennborg2014-12-132-0/+3
| | | | llvm-svn: 224201
* clang-cl: Make /Gd ignored instead of unsupportedHans Wennborg2014-12-132-1/+2
| | | | | | | /Gd is the default calling convention setting, so we don't need to take any action. llvm-svn: 224200
* clang-cl: Add unsupported /Gv option (PR21892)Hans Wennborg2014-12-132-0/+2
| | | | | | We don't currently support any of the calling convention options. llvm-svn: 224199
* Revert "[ARM] Combine base-updating/post-incrementing vector load/stores."Renato Golin2014-12-136-421/+27
| | | | | | | | | This reverts commit r223862, as it created a regression on the test-suite on test MultiSource/Benchmarks/Ptrdist/anagram by scrambling the order in which the words are shown. We'll investigate the issue and re-apply when safe. llvm-svn: 224198
* Fix Doxygen command misspellings.Benjamin Kramer2014-12-132-3/+3
| | | | | | Found by -Wdocumentation. llvm-svn: 224197
* Silencing a -Wsign-compare warning; NFC.Aaron Ballman2014-12-131-1/+2
| | | | llvm-svn: 224195
* Silencing a *lot* of -Wsign-compare warnings; NFC.Aaron Ballman2014-12-131-1/+2
| | | | llvm-svn: 224194
* Parse: MS property members cannot have an in-class initializerDavid Majnemer2014-12-134-5/+12
| | | | | | | | | We would crash trying to treat a property member as a field. These shoudl be forbidden anyway, reject programs which contain them. This fixes PR21840. llvm-svn: 224193
* [ELF] Clean up OPT_INPUT handler. NFC.Rui Ueyama2014-12-131-33/+31
| | | | llvm-svn: 224192
* Make YAML files own MemoryBuffer.Rui Ueyama2014-12-131-5/+2
| | | | | | | YAML files have references such as StringRef to the underlying MemoryBuffer, so we shouldn't deallocate the buffer. llvm-svn: 224191
* Move definitions to the correct file.Rui Ueyama2014-12-132-15/+16
| | | | llvm-svn: 224190
* Sema: Constexpr functions must have return statements which have an exprDavid Majnemer2014-12-133-4/+23
| | | | | | | | | | | | | | | clang lets programmers be pretty cavalier when it comes to void return statements in functions which have non-void return types. However, we cannot be so forgiving in constexpr functions: evaluation will go off the rails very quickly. Instead, keep the return statement in the AST but mark the function as invalid. Doing so gives us nice diagnostics while making constexpr evaluation halt. This fixes PR21859. llvm-svn: 224189
* Make the platform process connect path less chatty.Stephane Sezer2014-12-132-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: If a stream contains an empty string, no need to append it to the output (otherwise we end up with a blank line). Also, no need to print a status message when the state changes to connected, as this string brings no information -- "Process 0" does not mean anything to the user, and the process being connected has no meaning either. Test Plan: Connect to a remote linux platform mode daemon with `platform select remote-linux` followed by `platform connect ...`, create a target and run it, observe the output. Also, run the full test suite (dosep.py). Before: (lldb) [...] connect, etc. (lldb) r Process 0 connected Process 5635 launched: '/Users/sas/Source/test' (x86_64) Process 5635 stopped After: (lldb) [...] connect, etc. (lldb) r Process 5635 launched: '/Users/sas/Source/test' (x86_64) Process 5635 stopped Reviewers: tfiala, vharron, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D6593 llvm-svn: 224188
* Use range-based for loops.Craig Topper2014-12-131-52/+35
| | | | llvm-svn: 224187
* Rename argument strings of codegen passes to avoid collisions with command lineAkira Hatanaka2014-12-134-5/+5
| | | | | | | | | | | | | | | | | | | | options. This commit changes the command line arguments (PassInfo::PassArgument) of two passes, MachineFunctionPrinter and MachineScheduler, to avoid collisions with command line options that have the same argument strings. This bug manifests when the PassList construct (defined in opt.cpp) is used in a tool that links with codegen passes. To reproduce the bug, paste the following lines into llc.cpp and run llc. #include "llvm/IR/LegacyPassNameParser.h" static llvm::cl::list<const llvm::PassInfo*, bool, llvm::PassNameParser> PassList(llvm::cl::desc("Optimizations available:")); rdar://problem/19212448 llvm-svn: 224186
* NFC: Minor formatting fixWill Wilson2014-12-131-1/+1
| | | | llvm-svn: 224185
* Pretty print support for template arg enum constantsWill Wilson2014-12-133-3/+38
| | | | llvm-svn: 224184
* Fix two small bugs in typo correction. One assertion failure building member ↵Nick Lewycky2014-12-133-1/+28
| | | | | | | | expressions because the lookup finds a different name than the original, fixed by updating the LookupResult's name with the name of the found decl. Second is that we also diagnose delayed typo exprs in the index of an array subscript expression. The testcase shows a third bug with a FIXME in it. llvm-svn: 224183
* Use the newer python syntax for exceptionsJustin Bogner2014-12-131-1/+1
| | | | | | | We've dropped support for python 2.5, so now we can use the forward compatible "except ... as" syntax. llvm-svn: 224182
* Use the newer python syntax for exceptionsJustin Bogner2014-12-132-2/+2
| | | | | | | We've dropped support for python 2.5, so now we can use the forward compatible "except ... as" syntax. llvm-svn: 224181
* Update to new bindings.Peter Collingbourne2014-12-132-55/+49
| | | | llvm-svn: 224180
* Go bindings: introduce Value.ConstantAsMetadata.Peter Collingbourne2014-12-133-0/+10
| | | | llvm-svn: 224179
* Go bindings: introduce llvm.TemporaryMDNode.Peter Collingbourne2014-12-133-0/+13
| | | | llvm-svn: 224178
* Go bindings: introduce Metadata.ReplaceAllUsesWith.Peter Collingbourne2014-12-133-0/+16
| | | | llvm-svn: 224177
* Go bindings: expose the Metadata type.Peter Collingbourne2014-12-136-266/+338
| | | | | | | Also modifies SetCurrentDebugLocation to take individual arguments rather than an MDNode. llvm-svn: 224176
* Go bindings: remove contextless metadata bindings.Peter Collingbourne2014-12-131-11/+0
| | | | llvm-svn: 224175
* Move a bunch of method implementations over to the C++ file; remove the need ↵Enrico Granata2014-12-132-86/+112
| | | | | | for a few includes. All in all, good stuff llvm-svn: 224174
* Implement feedback on r224172 in PR21899Reid Kleckner2014-12-132-15/+6
| | | | | | Based on suggestions from Kaelyn. llvm-svn: 224173
* Typo correction: Ignore temporary binding exprs after overload resolutionReid Kleckner2014-12-132-2/+27
| | | | | | | | Transformation of a CallExpr doesn't always result in a new CallExpr. Fixes PR21899. llvm-svn: 224172
* Tests will timeout if they exceed time limit.Vince Harron2014-12-131-11/+63
| | | | | | | | | | | | | | | | Default time limit is 5 minutes. Override the default timeout of 5 minutes with LLDB_TEST_TIMEOUT. LLDB_TEST_TIMEOUT=10m Override the timeout for individual tests with LLDB_[TESTNAME]_TIMEOUT. E.g., LLDB_TESTCONCURRENTEVENTS_TIMEOUT=2m Set to "0" to run without timeout. Submitted for Chaoren Lin llvm-svn: 224171
* SyntheticChildrenFrontEnd::* should also be built when python is disabledKeno Fischer2014-12-131-35/+35
| | | | | | | | | | | | | | | | | Summary: This moves - SyntheticChildrenFrontEnd::CreateValueObjectFromExpression - SyntheticChildrenFrontEnd::CreateValueObjectFromAddress - SyntheticChildrenFrontEnd::CreateValueObjectFromData outside the `#ifndef LLDB_DISABLE_PYTHON` since it doesn't seem to depend on python being available and indeed breaks the build when python is disabled. Reviewers: granata.enrico Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D6646 llvm-svn: 224170
* [PowerPC] Add a DAGToDAG peephole to remove unnecessary zero-extsHal Finkel2014-12-124-5/+342
| | | | | | | | | | | | | | | | | | | | On PPC64, we end up with lots of i32 -> i64 zero extensions, not only from all of the usual places, but also from the ABI, which specifies that values passed are zero extended. Almost all 32-bit PPC instructions in PPC64 mode are defined to do *something* to the higher-order bits, and for some instructions, that action clears those bits (thus providing a zero-extended result). This is especially common after rotate-and-mask instructions. Adding an additional instruction to zero-extend the results of these instructions is unnecessary. This PPCISelDAGToDAG peephole optimization examines these zero-extensions, and looks back through their operands to see if all instructions will implicitly zero extend their results. If so, we convert these instructions to their 64-bit variants (which is an internal change only, the actual encoding of these instructions is the same as the original 32-bit ones) and remove the unnecessary zero-extension (changing where the INSERT_SUBREG instructions are to make everything internally consistent). llvm-svn: 224169
* ValueTracking: Don't recurse too deeply in computeKnownBitsFromAssumeDavid Majnemer2014-12-122-0/+22
| | | | | | | | | Respect the MaxDepth recursion limit, doing otherwise will trigger an assert in computeKnownBits. This fixes PR21891. llvm-svn: 224168
* Implement the __builtin_call_with_static_chain GNU extension.Peter Collingbourne2014-12-1216-71/+275
| | | | | | | | | | | | | | | | The extension has the following syntax: __builtin_call_with_static_chain(Call, Chain) where Call must be a function call expression and Chain must be of pointer type This extension performs a function call Call with a static chain pointer Chain passed to the callee in a designated register. This is useful for calling foreign language functions whose ABI uses static chain pointers (e.g. to implement closures). Differential Revision: http://reviews.llvm.org/D6332 llvm-svn: 224167
* [ARMConstantIsland] Insert tbb/tbh optimization where previous jump table ↵Chad Rosier2014-12-122-1/+50
| | | | | | resided. llvm-svn: 224165
* Frontend: Canonicalize to native paths when dumping module dependenciesJustin Bogner2014-12-122-5/+9
| | | | | | | | | | | | Mixed path separators (ie, both / and \\) can mess up the sort order of the VFS map when dumping module dependencies, as was recently exposed by r224055 and papered over in r224145. Instead, we should simply use native paths for consistency. This also adds a TODO to add handling of .. in paths. There was some code for this before r224055, but it was untested and probably broken. llvm-svn: 224164
* Add option to turn off installation of headers.Eric Fiselier2014-12-122-5/+8
| | | | llvm-svn: 224162
* Some more cleanup of the ValueObjectConstResultImpl code. NFC.Enrico Granata2014-12-124-28/+2
| | | | llvm-svn: 224160
* Pass EC by reference to MemoryBufferMMapFile to return error code.Yaron Keren2014-12-121-1/+1
| | | | | | Patch by Kim Grasman! llvm-svn: 224159
* Fix up this test caseEnrico Granata2014-12-121-9/+9
| | | | llvm-svn: 224157
* utils: update vim syntax highlighting for LLVM IRSaleem Abdulrasool2014-12-121-17/+16
| | | | | | | Add missing externally_initialized keyword from SVN r174340. Also reflow the text. llvm-svn: 224155
* Clean up static analyzer warnings.Michael Ilseman2014-12-1211-12/+24
| | | | | | | | | Clang's static analyzer found several potential cases of undefined behavior, use of un-initialized values, and potentially null pointer dereferences in tablegen, Support, MC, and ADT. This cleans them up with specific assertions on the assumptions of the code. llvm-svn: 224154
* [Hexagon] Adding double word add/min/minu/max/maxu instructions and tests.Colin LeMahieu2014-12-122-21/+77
| | | | llvm-svn: 224153
* Revert r224149, llvm-dsymutil was already here.Nico Weber2014-12-121-1/+0
| | | | | | | | | I saw a failure on an internal bot, opened this file, saw it was missing, thought "aha!", tried to land, got an "file is out of date", synced, didn't see the file listed right above the line I added (cause I didn't add it in the right place) and landed. Apologies! llvm-svn: 224152
* Add a test case to validate that AddressOf() and GetLoadAddress() work on a ↵Enrico Granata2014-12-122-0/+43
| | | | | | ValueObjectConstResult. This test passing is the baseline of functionality we want to ensure for our const results llvm-svn: 224151
* [Hexagon] Adding J class call instructions.Colin LeMahieu2014-12-123-9/+56
| | | | llvm-svn: 224150
* Add llvm-dsymutil to test/CMakeLists.txtNico Weber2014-12-121-0/+1
| | | | | | | r224134 added this and runs it from a test, but doesn't build it with test binaries. llvm-svn: 224149
* [Sanitizer] Introduce Allocator::may_return_null bool flag.Alexey Samsonov2014-12-1214-60/+91
| | | | | | | | | | | | | | | | | | | | Summary: Turn "allocator_may_return_null" common flag into an Allocator::may_return_null bool flag. We want to make sure that common flags are immutable after initialization. There are cases when we want to change this flag in the allocator at runtime: e.g. in unit tests and during ASan activation on Android. Test Plan: regression test suite, real-life applications Reviewers: kcc, eugenis Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6623 llvm-svn: 224148
* The so-called "trivial implementation" has been with us for a few years now. ↵Enrico Granata2014-12-121-34/+0
| | | | | | It's probably safe to assume it works.. so remove the #if stuff llvm-svn: 224147
* IR: Don't track nullptr on metadata RAUWDuncan P. N. Exon Smith2014-12-122-1/+49
| | | | | | | | | | | | | | | | | The RAUW support in `Metadata` supports going to `nullptr` specifically to handle values being deleted, causing `ValueAsMetadata` to be deleted. Fix the case where the reference is from a `TrackingMDRef` (as opposed to an `MDOperand` or a `MetadataAsValue`). This is surprisingly rare -- metadata tracked by `TrackingMDRef` going to null -- but it came up in an openSUSE bootstrap during inlining. The tracking ref was held by the `ValueMap` because it was referencing a local, the basic block containing the local became dead after it had been merged in, and when the local was deleted, the tracking ref asserted in an `isa`. llvm-svn: 224146
OpenPOWER on IntegriCloud