summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixed a logic error in Module::ResolveSymbolContextForAddress(). Asking an ↵Greg Clayton2013-09-181-2/+2
| | | | | | address if its offet is greater than zero doesn't actually correctly tell us wether the address is section offset or not. A symbol could be the first symbol in a section and its offset can be zero. Also, a non-section offset lldb_private::Address can have a NULL section and calling GetOffset() will return the absolute address. To really test if an address is section offset clients should use Address::IsSectionOffset(). Also simplified the code that backs the address up by one to use the Address::Slide() function. llvm-svn: 190955
* Apply ProcessMonitor changes from r190820 to FreeBSDEd Maste2013-09-182-111/+33
| | | | llvm-svn: 190954
* [analyzer] Don't even try to convert floats to booleans for now.Jordan Rose2013-09-182-0/+16
| | | | | | | | | | | We now have symbols with floating-point type to make sure that (double)x == (double)x comes out true, but we still can't do much with these. For now, don't even bother trying to create a floating-point zero value; just give up on conversion to bool. PR14634, C++ edition. llvm-svn: 190953
* Remove empty dir.Galina Kistanova2013-09-180-0/+0
| | | | llvm-svn: 190952
* [PECOFF] Fix base relocation block alignmentRui Ueyama2013-09-181-2/+5
| | | | | | | | | | | Base relocation block should be aligned on a 32-bit boundary. While the PECOFF spec mentions only aligning the blocks, and not padding them, link.exe seems to add an extra IMAGE_REL_I386_ABSOLUTE entry (just a zeroed WORD) in order to pad the blocks. Patch by Ron Ofir. llvm-svn: 190951
* Check for #include in extern and namespace blocks.John Thompson2013-09-188-24/+278
| | | | llvm-svn: 190950
* [PECOFF] Make helper functions private.Rui Ueyama2013-09-181-21/+21
| | | | llvm-svn: 190949
* Remove empty dir.Galina Kistanova2013-09-180-0/+0
| | | | llvm-svn: 190948
* ObjectiveC migrator: Infer property in the presenseFariborz Jahanian2013-09-183-8/+97
| | | | | | | of methods annotated with attributes. // rdar://14987909 llvm-svn: 190947
* Make DynamicLibrary use ManagedStatic. This is pretty simple and should just ↵Filip Pizlo2013-09-182-28/+10
| | | | | | | | | | work as advertised - but it does have the caveat that calls to DynamicLibrary::AddSymbol will "reset" if you shutdown llvm and try to come back for seconds. This is a subtle behavior change, but I'm assuming that nobody is affected by it. llvm-svn: 190946
* SymbolVendor/ELF is actually referenced by default by lib/Makefile on allDaniel Malea2013-09-181-7/+2
| | | | | | | | | | | platforms and called in lldb.cpp while it is built only on some, excluding OSX. There is no reason to not build it then by default on all platforms. This fixes build on OSX using llvm configure & make scripts. Patch (2 of 2) by Adam Strzelecki! llvm-svn: 190945
* Respect SDKROOT in lldb MakefileDaniel Malea2013-09-181-2/+4
| | | | | | | | - If it is not defined (empty) everything remain as it was before. Patch (1 of 2) by Adam Strzelecki! llvm-svn: 190944
* ObjectiveC migrator: placing another check forFariborz Jahanian2013-09-181-0/+3
| | | | | | | 'deprecated' container before doing the 'instancetype' inference. llvm-svn: 190943
* Warning cleanup.Michael Sartain2013-09-181-6/+5
| | | | llvm-svn: 190942
* More XCore TTI cleanup -- remove an unused private field flagged byChandler Carruth2013-09-181-4/+2
| | | | | | -Wunused-private-field with Clang. llvm-svn: 190941
* Name the XCore target-specific subdirectories canonically.Chandler Carruth2013-09-184-0/+0
| | | | llvm-svn: 190940
* [asan] call __asan_stack_malloc_N only if use-after-return detection is ↵Kostya Serebryany2013-09-181-1/+22
| | | | | | enabled with the run-time option llvm-svn: 190939
* A couple of tests, in llvm/test/Transforms/*/xcore, are XCore-specific. They ↵NAKAMURA Takumi2013-09-182-0/+6
| | | | | | should be excluded when XCore is not built. llvm-svn: 190938
* Target/XCore/CMakeLists.txt: Add XCoreTargetTransformInfo.cpp.NAKAMURA Takumi2013-09-181-0/+1
| | | | llvm-svn: 190937
* Prevent LoopVectorizer and SLPVectorizer running if the target has no vector ↵Robert Lytton2013-09-189-0/+172
| | | | | | | | | | registers. XCore target: Add XCoreTargetTransformInfo This is where getNumberOfRegisters() resides, which in turn returns the number of vector registers (=0). llvm-svn: 190936
* Simplify clang-format-diff.py using new clang-format options.Daniel Jasper2013-09-181-59/+26
| | | | | | clang-format's -lines parameter makes this significantly easier. llvm-svn: 190935
* Re-add tests from r179291 which were accidentally removed by r181177.Andrea Di Biagio2013-09-181-0/+28
| | | | llvm-svn: 190934
* [tsan] No-op implementation of AnnotateMemoryIsInitialized.Evgeniy Stepanov2013-09-181-0/+3
| | | | llvm-svn: 190933
* [asan] add a run-time option detect_stack_use_after_return, add verbosity ↵Kostya Serebryany2013-09-187-5/+26
| | | | | | output for fake stack llvm-svn: 190932
* [ARMv8] Add builtins for CRC instructions.Joey Gouly2013-09-185-0/+130
| | | | | | Patch by Bradley Smith! llvm-svn: 190931
* [SystemZ] Add unsigned compare-and-branch instructionsRichard Sandiford2013-09-1833-156/+2234
| | | | | | | | | | | | | | | For some reason I never got around to adding these at the same time as the signed versions. No idea why. I'm not sure whether this SystemZII::BranchC* stuff is useful, or whether it should just be replaced with an "is normal" flag. I'll leave that for later though. There are some boundary conditions that can be tweaked, such as preferring unsigned comparisons for equality with [128, 256), and "<= 255" over "< 256", but again I'll leave those for a separate patch. llvm-svn: 190930
* 'svn add' the test cases.Joey Gouly2013-09-185-0/+92
| | | | llvm-svn: 190929
* [ARMv8] Add CRC instructions.Joey Gouly2013-09-184-1/+96
| | | | | | Patch by Bradley Smith! llvm-svn: 190928
* Added new Host/Atomic.h to replace use of <atomic> in LLDB headers.Virgile Bello2013-09-183-10/+58
| | | | llvm-svn: 190927
* Recommited:Stepan Dyatkovskiy2013-09-182-65/+15
| | | | | | | | | | | | | | | | | | | | | | | | | Fix for PR16752. Second commit. PR16752: 'mode' attribute for unusual targets doesn't work properly Description: Troubles could be happened due to some assumptions in handleModeAttr function (see SemaDeclAttr.cpp). For example, it assumes that 32 bit integer is 'int', while it could be 16 bit only. Instead of asking target: 'which type do you want to use for int32_t ?' it just hardcodes general opinion. That doesn't looks pretty correct. Please consider the next solution: 1. In Basic/TargetInfo add getIntTypeByWidth and getRealTypeByWidth methods. Methods asks target for proper type for given bit width. 2. Fix handleModeAttr according to new methods in TargetInfo. Fixes: 1st Commit (Done): Add new methods for TargetInfo: getRealTypeByWidth and getIntTypeByWidth for ASTContext names are almost same(invokes new methods from TargetInfo): getIntTypeForBitwidth and getRealTypeForBitwidth 2nd Commit (Current): Fix SemaDeclAttr, handleModeAttr function. Also test/Sema/attr-mode.c was fixed. 'XC' mode test was disabled for PPC64 machines. llvm-svn: 190926
* Add support for poly16 vtst and vtstqAmaury de la Vieuville2013-09-183-2/+26
| | | | | | | vtst and vtstq currently support poly8 types, but they should also work on poly16. llvm-svn: 190925
* Visual Studio 2013 compilation support: added some #ifdef _MSC_VER for ↵Virgile Bello2013-09-185-3/+24
| | | | | | unsupported code in MSVC. llvm-svn: 190924
* Revert r190921. It broke Windows.Filip Pizlo2013-09-181-7/+25
| | | | | | I'll roll it back in when I have a chance to look at it in detail. llvm-svn: 190923
* Add new libm LIBBUILTIN definitions, synchronizing with __builtin_*Hal Finkel2013-09-182-105/+693
| | | | | | | | | | | | For all libm __builtin_* functions that are defined, this adds the corresponding LIBBUILTIN definitions (tagged, as necessary, with "e" instead of "c" when the function may set errno). Note that this changes the current definitions for lrint and fma (unfortunately). The Linux man page documents that these don't set errno, but the POSIX standard says that they should. llvm-svn: 190922
* Make DynamicLibrary use ManagedStatic. This is pretty simple and should just ↵Filip Pizlo2013-09-181-25/+7
| | | | | | | | | | work as advertised - but it does have the caveat that calls to DynamicLibrary::AddSymbol will "reset" if you shutdown llvm and try to come back for seconds. This is a subtle behavior change, but I'm assuming that nobody is affected by it. llvm-svn: 190921
* Prevent extra calls to ToggleFeature for Feature64Bit and FeatureCMOV if ↵Craig Topper2013-09-181-2/+2
| | | | | | they've already been enabled. The extra call ends up clearing the bit in FeatureBits since its a 'toggle'. Can't prove that anything was broken because of this since I don't think the FeatureBits for these are used. llvm-svn: 190920
* Fix X86 subtarget to not overwrite the autodetected features by calling ↵Craig Topper2013-09-183-1/+9
| | | | | | InitMCProcessorInfo right after detecting them. Instead add a new function that only updates the scheduling model and call that. llvm-svn: 190919
* Revert accidental commit I had to make to get the test case in PR17268 to ↵Craig Topper2013-09-181-1/+1
| | | | | | still work correctly. llvm-svn: 190917
* Lift alignment restrictions for load/store folding on ↵Craig Topper2013-09-184-13/+12
| | | | | | VINSERTF128/VEXTRACTF128. Fixes PR17268. llvm-svn: 190916
* Add the intrinsic __builtin_convertvectorHal Finkel2013-09-1830-0/+476
| | | | | | | | | | | | | | | | | | LLVM supports applying conversion instructions to vectors of the same number of elements (fptrunc, fptosi, etc.) but there had been no way for a Clang user to cause such instructions to be generated when using builtin vector types. C-style casting on vectors is already defined in terms of bitcasts, and so cannot be used for these conversions as well (without leading to a very confusing set of semantics). As a result, this adds a __builtin_convertvector intrinsic (patterned after the OpenCL __builtin_astype intrinsic). This is intended to aid the creation of vector intrinsic headers that create generic IR instead of target-dependent intrinsics (in other words, this is a generic _mm_cvtepi32_ps). As noted in the documentation, the action of __builtin_convertvector is defined in terms of the action of a C-style cast on each vector element. llvm-svn: 190915
* Remove unnecessary comment regarding AsTypeExpr base classHal Finkel2013-09-181-1/+1
| | | | llvm-svn: 190914
* Fix accepts-invalid if a variable template explicit instantiation is missing anRichard Smith2013-09-184-11/+26
| | | | | | argument list, but could be instantiated with argument list of <>. llvm-svn: 190913
* Fix ObjC @encode for C++ classes w/virtual bases.Eli Friedman2013-09-182-1/+12
| | | | | | PR17142. llvm-svn: 190912
* -ast-dump support for variable templates.Richard Smith2013-09-181-0/+48
| | | | llvm-svn: 190911
* If a variable template specialization with an incomplete array type isRichard Smith2013-09-183-23/+64
| | | | | | referenced, try to instantiate its definition in order to complete the type. llvm-svn: 190910
* Add comment about exporting clang::driver::ArgStringList,Hans Wennborg2013-09-182-2/+3
| | | | | | | | | | as suggested by Jordan on IRC. Also, use the unqualified name in Job.cpp. And while we're here, refer to StringRef with the unqualified name, because we have a using directive for that too. llvm-svn: 190909
* Claim compatibility with VS 2012 by defaultReid Kleckner2013-09-181-2/+2
| | | | | | | | | | | | This will define _MSC_VER to 1700 by default and avoid linker errors from /failifmismatch linker directives in the C++ standard headers. Most people trying out the Visual Studio integration are using 2012, since that's the only version that clang-format works with. This way they don't have to pass funky -Xclang -fmsc-version=1700 flags just to link against the standard C++ runtime. llvm-svn: 190908
* Revert r190902 and r190906Hans Wennborg2013-09-182-7/+7
| | | | | | The first one broke the build, and the latter one made it worse. llvm-svn: 190907
* Revert "Move using directive from Job.h to Job.cpp" (r190902)Hans Wennborg2013-09-182-4/+6
| | | | | | | | | | Seems like it was intentional to export ArgStringList as driver::ArgStringList, and e.g. examples/clang-interpreter/main.cpp uses it this way. However, exporting it with a typedef seems like a more common way to do it. llvm-svn: 190906
* ifndef NDEBUG-out an asserts-only constant committed in r190863David Blaikie2013-09-181-0/+2
| | | | llvm-svn: 190905
OpenPOWER on IntegriCloud