summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a MCAsmInfoELF class and factor some code into it.Rafael Espindola2013-10-1623-32/+68
| | | | | | We had a MCAsmInfoCOFF, but no common class for all the ELF MCAsmInfos before. llvm-svn: 192760
* dos2unix on quoted-names.llHans Wennborg2013-10-161-20/+20
| | | | llvm-svn: 192759
* MC: Better handling of tricky symbol and section namesHans Wennborg2013-10-168-24/+62
| | | | | | | | | | | | | | | | | Because of win32 mangling, we produce symbol and section names with funny characters in them, most notably @ characters. MC would choke on trying to parse its own assembly output. This patch addresses that by: - Making @ trigger quoting of symbol names - Also quote section names in the same way - Just parse section names like other identifiers (to allow for quotes) - Don't assume @ signifies a symbol variant if it is in a string. Differential Revision: http://llvm-reviews.chandlerc.com/D1945 llvm-svn: 192758
* Move .ident handling to MCStreamer.Rafael Espindola2013-10-1611-27/+61
| | | | | | | | No functionality change, but exposes the API so that codegen can use it too. Patch by Katya Romanova. llvm-svn: 192757
* Fixing build warning/errorAndrew Kaylor2013-10-161-2/+3
| | | | llvm-svn: 192756
* Simplify zero initialization of DIEAttrs variable.David Blaikie2013-10-161-2/+1
| | | | llvm-svn: 192755
* Adding padding to the .eh_frame section in RuntimeDyldAndrew Kaylor2013-10-161-1/+15
| | | | llvm-svn: 192754
* Adding support for deregistering EH frames with MCJIT.Andrew Kaylor2013-10-1610-7/+118
| | | | | | Patch by Yaron Keren llvm-svn: 192753
* Fix typoMatt Arsenault2013-10-151-1/+1
| | | | llvm-svn: 192752
* Fix missing C++ mode thing in headerMatt Arsenault2013-10-151-1/+1
| | | | llvm-svn: 192751
* Enable MI Sched for x86.Andrew Trick2013-10-1567-280/+341
| | | | | | | | | | | | | | | | | | | | | | | | | | This changes the SelectionDAG scheduling preference to source order. Soon, the SelectionDAG scheduler can be bypassed saving a nice chunk of compile time. Performance differences that result from this change are often a consequence of register coalescing. The register coalescer is far from perfect. Bugs can be filed for deficiencies. On x86 SandyBridge/Haswell, the source order schedule is often preserved, particularly for small blocks. Register pressure is generally improved over the SD scheduler's ILP mode. However, we are still able to handle large blocks that require latency hiding, unlike the SD scheduler's BURR mode. MI scheduler also attempts to discover the critical path in single-block loops and adjust heuristics accordingly. The MI scheduler relies on the new machine model. This is currently unimplemented for AVX, so we may not be generating the best code yet. Unit tests are updated so they don't depend on SD scheduling heuristics. llvm-svn: 192750
* Make sure we're not attempting to construct a subprogram DIEEric Christopher2013-10-151-16/+18
| | | | | | | | twice and just look up the value. Fix the one case where we were trying to create a subprogram DIE and we should already have had one. Reflow formatting in collectDeadVariables while fixing. llvm-svn: 192749
* Add an assert that we have a scope that matters for methodsEric Christopher2013-10-151-1/+4
| | | | | | | and remove a call to getNonCompileUnitScope as a method shouldn't be in the compile unit scope. llvm-svn: 192748
* Clean up, formatting, comments. No functional change.Eric Christopher2013-10-151-100/+88
| | | | llvm-svn: 192747
* Test that we can merge together explicit and partial specializations fromRichard Smith2013-10-155-0/+35
| | | | | | merged declarations of a class template. llvm-svn: 192746
* Support/FileSystem.h: Remove a trailing comma in enum file_magic::Impl.NAKAMURA Takumi2013-10-151-1/+1
| | | | llvm-svn: 192745
* Use ASSERT_EQ rather than ASSERT_TRUE for better unit test failures.David Blaikie2013-10-151-3/+3
| | | | | | | Also minor using namespace move so it's not hard-up against the function definition and outside the namespace as is usual. llvm-svn: 192744
* R600/SI: Remove some leftover MI dump callVincent Lejeune2013-10-152-2/+0
| | | | llvm-svn: 192743
* Path: Recognize Windows compiled resource file.Rui Ueyama2013-10-155-2/+14
| | | | | | | | | | | | | | Some background: One can pass compiled resource files (.res files) directly to the linker on Windows. If a resource file is given, the linker will run "cvtres" command in background to convert the resource file to a COFF file to link it. What I'm trying to do with this patch is to make the linker to recognize the resource file by file magic, so that it can run cvtres command. Differential Revision: http://llvm-reviews.chandlerc.com/D1943 llvm-svn: 192742
* <rdar://problem/15235492>Enrico Granata2013-10-154-6/+23
| | | | | | | | | Extend DummySyntheticProvider to actually use debug-info vended children as the source of information Make Python synthetic children either be valid, or fallback to the dummy, like their C++ counterparts This allows LLDB to actually stop bailing out upon encountering an invalid synthetic children provider front-end, and still displaying the non synthetized ivar info llvm-svn: 192741
* C++ modules: merging for enumerations and enumerators with multiple definitionsRichard Smith2013-10-157-1/+76
| | | | | | (eg through template instantiations in multiple modules). llvm-svn: 192740
* Teach the AST dumper to dump the canonical declaration for a mergeable ↵Richard Smith2013-10-151-9/+16
| | | | | | declaration. llvm-svn: 192739
* Remove this regression test now that PR17578 is fixed (r192674). The fix is toYunzhong Gao2013-10-151-14/+0
| | | | | | reject this test case at the Sema stage, so no CodeGen test should be needed. llvm-svn: 192738
* Separating ELF and MachO stub info functions for RuntimeDyldAndrew Kaylor2013-10-153-23/+39
| | | | llvm-svn: 192737
* Reflow slightly.Eric Christopher2013-10-151-2/+2
| | | | llvm-svn: 192736
* Reformat.Eric Christopher2013-10-151-2/+1
| | | | llvm-svn: 192735
* [AArch64] Add support for NEON scalar signed saturating absolute value andChad Rosier2013-10-153-0/+69
| | | | | | scalar signed saturating negate instructions. llvm-svn: 192734
* [AArch64] Add support for NEON scalar signed saturating absolute value andChad Rosier2013-10-156-1/+201
| | | | | | scalar signed saturating negate instructions. llvm-svn: 192733
* Fixing some host==target assumptions in RuntimeDyldAndrew Kaylor2013-10-152-3/+6
| | | | llvm-svn: 192732
* Remove some dead code. (DarwinGDBCompat was retired in r189903).Adrian Prantl2013-10-152-13/+2
| | | | llvm-svn: 192731
* Struct byval: fix a copy-paste error for thumb2.Manman Ren2013-10-152-5/+44
| | | | | | PR17309 llvm-svn: 192730
* Add constant evaluation support for __builtin_isinf, __builtin_isfinite,Richard Smith2013-10-152-0/+76
| | | | | | __builtin_isnan, and __builtin_isnormal. Patch by Karthik Bhat! Tests by me. llvm-svn: 192729
* Add llvm_unreachable to pacify GCC's dropping off non-void function warning.Benjamin Kramer2013-10-151-1/+4
| | | | | | + 80 cols fix. llvm-svn: 192728
* ms-compat: Fix taking the address of a member of a dependent baseReid Kleckner2013-10-154-6/+60
| | | | | | | | | | | | | | | | | | | | | | If unqualified id lookup fails while parsing a class template with a dependent base, clang with -fms-compatibility will pretend the user prefixed the name with 'this->' in order to delay the lookup. However, if there was a unary ampersand, Sema::ActOnDependentIdExpression() will create a DependentDeclRefExpr, which is not what we wanted at all. Fix this by building the CXXDependentScopeMemberExpr directly instead. In order to be fully MSVC compatible, we would have to defer all attempts at name lookup to instantiation time. However, until we have real problems with system headers that can't be parsed, we'll put off implementing that. Fixes PR16014. Reviewers: rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D1892 llvm-svn: 192727
* string.h and clang headers are apparently no longer necessary for SBType to ↵Enrico Granata2013-10-151-6/+0
| | | | | | compile llvm-svn: 192725
* Unbreak the build on OSX by defining Initialize() and Terminate() for the ↵Enrico Granata2013-10-151-2/+2
| | | | | | Windows platform plugin llvm-svn: 192724
* Add missing dependency for clang-modernize.Rui Ueyama2013-10-151-1/+1
| | | | | | | Clang-modernize uses clang-apply-replacements internally but its CMakefile.txt lacked the dependency. llvm-svn: 192723
* Fix PR17546Michael Liao2013-10-152-6/+11
| | | | | | | | | | - Type of index used in extract_vector_elt or insert_vector_elt supposes to be TLI.getVectorIdxTy() which is pointer type on most targets. It'd better to truncate (or zero-extend in case it's changed later) it to mask element type to guarantee they are matching instead of asserting that. llvm-svn: 192722
* Fix PR16807Michael Liao2013-10-152-6/+34
| | | | | | | | | | - Lower signed division by constant powers-of-2 to target-independent DAG operators instead of target-dependent ones to support them better on targets where vector types are legal but shift operators on that types are illegal. E.g., on AVX, PSRAW is only available on <8 x i16> though <16 x i16> is a legal type. llvm-svn: 192721
* [libclang] For an unscoped enum include the enumerators in the top-level ↵Argyrios Kyrtzidis2013-10-151-0/+12
| | | | | | | | code-completion hash since they enter the top-level namespace. rdar://14703327 llvm-svn: 192720
* ObjectiveC driver. Scrap -fno-objc-legacy-dispatch for NeXTFariborz Jahanian2013-10-154-9/+6
| | | | | | | runtime. It will be silently ignored and regardless of deployment target. // rdar://14803286 llvm-svn: 192719
* [libclang] When querying for the availability of an enumerator, pick up the ↵Argyrios Kyrtzidis2013-10-152-40/+85
| | | | | | | | availability from the enum declaration. rdar://14789001. llvm-svn: 192718
* LoopVectorize: Properly reflect PODness in comments.Benjamin Kramer2013-10-151-4/+4
| | | | llvm-svn: 192717
* [lsan] Fix bug when discovering indirectly leaked objects.Sergey Matveev2013-10-152-0/+20
| | | | | | | If an object contains pointers to itself, that doesn't make it indirectly leaked. D'oh! llvm-svn: 192716
* tsan: introduce __tsan_default_options() functionDmitry Vyukov2013-10-151-24/+41
| | | | | | | The function allows to statically setup default values for flags. The interafece matches what asan/msan provide. llvm-svn: 192715
* Patch enabling lldb command line driver to run on windows.Deepak Panickal2013-10-1512-114/+932
| | | | | | | | | | | | | | | CHANGES: - Thread locking switched from pthreads to C++11 standard library. - Abstracted platform specific header includes into 'platform.h'. - Create editline emulator for windows. - Emulated various platform dependant functions on windows. TODO: - User input currently handled by gets_s(), work started on better handler: see _WIP_INPUT_METHOD define blocks in 'ELWrapper.cpp'. Aim is to handle 'tab' auto completion on windows. - Tidy up 'getopt.inc' from lldbHostCommon to serve as LLDB Drivers getopt windows implementation. llvm-svn: 192714
* ModuleAssistant: Fix warning, don't return bool as a pointer.Will Dietz2013-10-151-1/+1
| | | | | | No functionality change intended. llvm-svn: 192713
* Don't depend on alias to declarations.Rafael Espindola2013-10-151-0/+3
| | | | | | Accepting them is a bug (pr17535), not a feature. llvm-svn: 192712
* tsan: be silent if verbosity=0Dmitry Vyukov2013-10-153-13/+21
| | | | | | | Currently tests fail with: Check failed: 'AAA' == 'AAA ==26017==Could not detach from thread 361395 (errno 3).' llvm-svn: 192711
* clang-format: No empty line after 'public:'Tobias Grosser2013-10-156-7/+0
| | | | llvm-svn: 192710
OpenPOWER on IntegriCloud