summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert r237339 as sanitizer-ppc64-linux1 does not like it.Yaron Keren2015-05-141-7/+6
| | | | | | | | | | | | | | | | | | | Complains: /home/buildbots/sanitizerslave1/sanitizer-ppc64-1/build/llvm/tools/clang/tools/c-index-test/c-index-test.c:829:30: error: format specifies type 'long' but the argument has type 'long long' [-Werror,-Wformat] I, TAK, clang_Cursor_getTemplateArgumentValue(Cursor, I)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I'm not sure now how this should be fixed. %lld is non-standard and not accepted by mingw on Windows while PRId64 is bad for this bot. Is long long longer than 64 bits here? if not, why is PRId64 incompatible with it? something seems wrong. Probably all the datatypes should be replaced to unsigned or uint64_t depending upin requirements instead of the non standard long long. llvm-svn: 237346
* TableGen: Avoid undefined behaviour by doing this shift in int64Justin Bogner2015-05-141-1/+1
| | | | | | | | Found by ubsan. This was taking a bool and left shifting by 32 - the result is 64 bit, so we should really do the math in a type it fits in. llvm-svn: 237345
* [MS ABI] Add support for /Zc:sizedDeallocDavid Majnemer2015-05-142-0/+12
| | | | llvm-svn: 237344
* [TableGen] Remove an unnecessary outer 'if' around 3 separate inner ifs. No ↵Craig Topper2015-05-141-29/+25
| | | | | | | | functional change intended. The outer if had 3 separate conditions ORed together and then the inner ifs detected which of the three conditions it was by using only a portion of the specific condition. Just put the whole condition in each inner if and remove the outer if. llvm-svn: 237343
* [TableGen] Simplify some code. NFCCraig Topper2015-05-141-9/+4
| | | | llvm-svn: 237342
* [TableGen] Remove ListInit::size() in favor of getSize() which does the same ↵Craig Topper2015-05-142-3/+2
| | | | | | thing and is already used in most places. NFC. llvm-svn: 237341
* [TableGen] Replace some calls to ListInit::getSize() with ListInit::empty() ↵Craig Topper2015-05-144-7/+7
| | | | | | if it was just comparing to 0. NFC. llvm-svn: 237340
* Replace non-standard %lld printf usage with PRId64.Yaron Keren2015-05-141-6/+7
| | | | | | See also r180024. llvm-svn: 237339
* Fix buildbotsDavid Majnemer2015-05-141-1/+1
| | | | llvm-svn: 237338
* [MS ABI] __declspec(thread) behaves like thread_local in MSVC 2015David Majnemer2015-05-142-5/+21
| | | | | | | MSVC 2015 changed __declspec(thread) to make it behave like C++11's thread_local keyword instead of acting similarly to __thread. llvm-svn: 237337
* [AST] hasAttr followed by getAttr isn't efficientDavid Majnemer2015-05-141-2/+5
| | | | | | Just use getAttr because we are interested in the attribute's contents. llvm-svn: 237336
* [clang-cl] Add /Qvec and /Qvec- to control vectorizationDavid Majnemer2015-05-142-0/+12
| | | | llvm-svn: 237335
* cmake: Use -fno-sanitize-recover=all - the old spelling is deprecatedJustin Bogner2015-05-141-2/+2
| | | | llvm-svn: 237334
* clang/test/Frontend/dependency-gen-escaping.c: Tweak r237296, to let '/' and ↵NAKAMURA Takumi2015-05-141-3/+7
| | | | | | '\\' distinguishd, to unbreak "--host=linux --target=msvc". llvm-svn: 237333
* Generalize future keyword compat diagnostics.Richard Smith2015-05-144-28/+52
| | | | | | | | | | | | This, in preparation for the introduction of more new keywords in the implementation of the C++ language, generalizes the support for future keyword compat diagnostics (e.g., diag::warn_cxx11_keyword) by extending the applicability of the relevant property in IdentifierTable with appropriate renaming. Patch by Hubert Tong! llvm-svn: 237332
* [modules] Rearrange preprocessor module visibility handling, no observable ↵Richard Smith2015-05-143-31/+51
| | | | | | change intended. llvm-svn: 237331
* [Builtins] Wire half-precision conversions through cc_kext makefiles.Ahmed Bougacha2015-05-141-0/+3
| | | | | | Kernel side of r237329. llvm-svn: 237330
* [Builtins] Wire half-precision conversions through Darwin makefiles.Ahmed Bougacha2015-05-143-3/+12
| | | | | | | | | Follow-up to r237161, modeled after r236805. Note that arm64 is omitted on purpose, as the conversions are supported natively there. llvm-svn: 237329
* [TestAttachDenied] Use a file instead of a pipe for synchronization.Siva Chandra2015-05-142-19/+35
| | | | | | | | | | | | | | | | | | | Summary: One cannot use mknod or mkfifo on user Android devices. This commit changes the use of pipe to a file to synchronize between the inferior and the test. Test Plan: dotest.py -P TestAttachDenied Reviewers: ovyalov, chaoren Reviewed By: chaoren Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D9768 llvm-svn: 237328
* Don't omit the constant when computing a cross-section relative relocation.Andy Ayers2015-05-142-1/+98
| | | | | | Differential Revision: http://reviews.llvm.org/D9692 llvm-svn: 237327
* Add missing #include, found by modules build.Richard Smith2015-05-141-0/+1
| | | | llvm-svn: 237326
* [modules] Work around PR23521 to fix -O0 modules bootstrap.Richard Smith2015-05-141-1/+8
| | | | llvm-svn: 237325
* [CodeGen] Use standard -not gnueabi- naming for f16 libcalls on Darwin.Ahmed Bougacha2015-05-142-3/+11
| | | | | | | | Other targets probably should as well. Since r237161, compiler-rt has both, but I don't see why anything other than gnueabi would use a gnueabi naming scheme. llvm-svn: 237324
* [Builtins] Implement f2h/h2f by jumping to trunc/extend.Ahmed Bougacha2015-05-142-4/+8
| | | | | | | | | | | | Follow-up to r237161; seems like we can't use aliases, but we can do better than duplicating the bodies, especially when that body, after inlining, isn't as small as it looks. Better approaches welcome. Perhaps the best thing is just to have an #ifndef __APPLE__ over the GNUEABI names, since they're not used there. llvm-svn: 237323
* Implement an objc tagged-pointer info command that will provide information ↵Enrico Granata2015-05-143-20/+166
| | | | | | about what LLDB thinks an ObjC tagged pointer represents llvm-svn: 237322
* [modules] Fix a #include cycle when building a module for our builtin headers.Richard Smith2015-05-145-7/+25
| | | | | | | | | | xmmintrin.h includes emmintrin.h and vice versa if SSE2 is enabled. We break this cycle for a modules build, and instead make the xmmintrin.h module re-export the immintrin.h module. Also included is a fix for an assert in the serialization code if a module exports another module that was declared later in the same module map. llvm-svn: 237321
* Fix a #include cycle in the libclang headers. "Eventually" is now.Richard Smith2015-05-142-3/+4
| | | | llvm-svn: 237320
* Added XTIMEOUT for TestAttachDenied.pyVince Harron2015-05-131-0/+1
| | | | llvm-svn: 237319
* Revert r237046. See the testcase on the thread where r237046 was committed.Nick Lewycky2015-05-136-67/+59
| | | | llvm-svn: 237317
* Add mips64el trap opcode to PlatformFreeBSD as wellEd Maste2015-05-131-0/+7
| | | | llvm-svn: 237315
* YAML: Implement block scalar parsing.Alex Lorenz2015-05-1315-58/+362
| | | | | | | | | | | | | | | | | | | | | This commit implements the parsing of YAML block scalars. Some code existed for it before, but it couldn't parse block scalars. This commit adds a new yaml node type to represent the block scalar values. This commit also deletes the 'spec-09-27' and 'spec-09-28' tests as they are identical to the test file 'spec-09-26'. This commit introduces 3 new utility functions to the YAML scanner class: `skip_s_space`, `advanceWhile` and `consumeLineBreakIfPresent`. Reviewers: Duncan P. N. Exon Smith Differential Revision: http://reviews.llvm.org/D9503 llvm-svn: 237314
* Restore breaks lost in shuffling GetSoftwareBreakpointTrapOpcodeEd Maste2015-05-131-0/+3
| | | | llvm-svn: 237313
* [opaque pointer type] Use the value type of the GlobalVariable rather than ↵David Blaikie2015-05-131-1/+1
| | | | | | accessing it through the pointee's type llvm-svn: 237312
* [opaque pointer type] Use GlobalVariable::getValueType rather than accessing ↵David Blaikie2015-05-131-1/+1
| | | | | | it through the GV's pointee type llvm-svn: 237311
* [X86] Fix PR23271 - RIP-relative decoding bug in disassembler.Douglas Katzman2015-05-132-9/+46
| | | | | | Differential Revision: http://reviews.llvm.org/D9110 llvm-svn: 237310
* Construct ArrayRef<const T*> from vector<T>Pete Cooper2015-05-133-2/+21
| | | | | | | | | | | | ArrayRef already has a SFINAE constructor which can construct ArrayRef<const T*> from ArrayRef<T*>. This adds methods to do the same directly from SmallVector and std::vector. This avoids an intermediate step through the use of makeArrayRef. Also update the users of this in LICM and SROA to remove the now unnecessary makeArrayRef call. Reviewed by David Blaikie. llvm-svn: 237309
* [lib/Fuzzer] update docs about test corpuses in gitKostya Serebryany2015-05-131-0/+24
| | | | llvm-svn: 237308
* InstrProf: Fix display of large numbers in llvm-covJustin Bogner2015-05-135-58/+62
| | | | | | | | llvm-cov was truncating numbers that were larger than a particular fixed width, which is as confusing as it is useless. Instead, we use engineering notation with SI prefix for magnitude. llvm-svn: 237307
* Add AArch64 and MIPS breakpoint opcodes and sort casesEd Maste2015-05-131-6/+18
| | | | | | New opcodes from PlatformLinux.cpp llvm-svn: 237306
* Break \# in a depfile the same way as gcc.Paul Robinson2015-05-132-25/+22
| | | | | | | | Backslash followed by # in a filename should have both characters escaped, if you do it the way GNU Make wants. GCC doesn't, so we do it the way GCC does rather than the way GNU Make wants. llvm-svn: 237304
* Initial FreeBSD/arm live debugging supportEd Maste2015-05-132-0/+10
| | | | | | | Patch by Tom Rix, except using the RegisterContextFreeBSD_arm files added in r235305 instead. llvm-svn: 237303
* Rearrange PlatformFreeBSD to match PlatformLinuxEd Maste2015-05-131-134/+134
| | | | | | No functional change, but this simplifies diffs of the two. llvm-svn: 237302
* Add llvm::all_of which wraps std::all_of.Pete Cooper2015-05-132-5/+10
| | | | | | | | | | This version doesn't need begin/end but can instead just take a type which has begin/end methods. Use this to replace an eligible foreach loop in LoopInfo found by David Blaikie in r237224. Reviewed by David Blaikie. llvm-svn: 237301
* Fix typo on Instruction::insert{After,Before}(). NFCJonathan Roelofs2015-05-131-4/+4
| | | | llvm-svn: 237300
* Make GNUInline consistent with whether we use traditional GNU inline semantics.Peter Collingbourne2015-05-136-7/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we were setting LangOptions::GNUInline (which controls whether we use traditional GNU inline semantics) if the language did not have the C99 feature flag set. The trouble with this is that C++ family languages also do not have that flag set, so we ended up setting this flag in C++ modes (and working around it in a few places downstream by also checking CPlusPlus). The fix is to check whether the C89 flag is set for the target language, rather than whether the C99 flag is cleared. This also lets us remove most CPlusPlus checks. We continue to test CPlusPlus when deciding whether to pre-define the __GNUC_GNU_INLINE__ macro for consistency with GCC. There is a change in semantics in two other places where we weren't checking both CPlusPlus and GNUInline (FunctionDecl::doesDeclarationForceExternallyVisibleDefinition and FunctionDecl::isInlineDefinitionExternallyVisible), but this change seems to put us back into line with GCC's semantics (test case: test/CodeGen/inline.c). While at it, forbid -fgnu89-inline in C++ modes, as GCC doesn't support it, it didn't have any effect before, and supporting it just makes things more complicated. Differential Revision: http://reviews.llvm.org/D9333 llvm-svn: 237299
* InstrProf: Treat functions with a coverage map but no profile as unreachedJustin Bogner2015-05-132-2/+18
| | | | | | | | | | If we have a coverage mapping but no profile data for a function, calling it mismatched is misleading. This can just as easily be unreachable code that was stripped from the binary. Instead, treat these the same as functions where we have an explicit "zero" coverage map by setting the count to zero for each mapped region. llvm-svn: 237298
* MC: clang-format MCSymbol.h, NFCDuncan P. N. Exon Smith2015-05-131-142/+130
| | | | llvm-svn: 237297
* Fix dependency file escaping.Paul Robinson2015-05-132-5/+65
| | | | | | | | | | | | | | When writing a dependency (.d) file, if space or # is immediately preceded by one or more backslashes, escape the backslashes as well as the space or # character. Otherwise leave backslash alone. This straddles the fence between BSD Make (which does no escaping at all, and does not support space or # in filespecs) and GNU Make (which does support escaping, but will fall back to the filespec as-written if the escaping doesn't match an existing file). Differential Revision: http://reviews.llvm.org/D9208 llvm-svn: 237296
* ARM: remove possible vestiges of the legacy JIT???Tim Northover2015-05-132-11/+6
| | | | | | | | There's no need to manually pass modifier strings around to tell an operand how to print now, that information is encoded in the operand itself since the MC layer came along. llvm-svn: 237295
* ARM: remove custom jump table UIDTim Northover2015-05-1310-82/+53
| | | | | | | | We were creating and propagating two separate indices for each jump table (from back in the mists of time). However, the generic index used by other backends is sufficient to emit a unique symbol so this was unneeded. llvm-svn: 237294
OpenPOWER on IntegriCloud