summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* DeclVisitor is not used here.Yaron Keren2014-05-211-1/+0
| | | | llvm-svn: 209285
* [msan] Chained origins re-design.Evgeniy Stepanov2014-05-2122-291/+753
| | | | | | | | | | | | | | | | | Generalize StackDepot and create a new specialized instance of it to efficiently (i.e. without duplicating stack trace data) store the origin history tree. This reduces memory usage for chained origins roughly by an order of magnitude. Most importantly, this new design allows us to put two limits on stored history data (exposed in MSAN_OPTIONS) that help avoid exponential growth in used memory on certain workloads. See comments in lib/msan/msan_origin.h for more details. llvm-svn: 209284
* [lsan] disable lsan if wordsize is not 64Kostya Serebryany2014-05-211-1/+1
| | | | llvm-svn: 209283
* [asan] Fix x86 asm instrumentation to preserve flags.Evgeniy Stepanov2014-05-214-24/+67
| | | | | | | | | This change also enables asm instrumentation in asan tests that was accidentally disabled yearlier, and adds a sanity test for that. Patch by Yuri Gorshenin. llvm-svn: 209282
* [sanitizer] fix linux_dirent for SANITIZER_X32; based on patch by H.J. LuKostya Serebryany2014-05-211-0/+5
| | | | llvm-svn: 209281
* [asan] Fix x86-32 asm instrumentation to preserve flags.Evgeniy Stepanov2014-05-211-2/+1
| | | | | | Patch by Yuri Gorshenin. llvm-svn: 209280
* [sanitizer] define SANITIZER_X32 and use it in ThreadDescriptorSize; ↵Kostya Serebryany2014-05-212-1/+9
| | | | | | partially based on patch by H.J. Lu llvm-svn: 209279
* Cast pointers to uptr when calling internal_syscallKostya Serebryany2014-05-211-2/+3
| | | | | | | | | For Linux/x86-64, pointers passed to internal_syscall should be casted to uptr first. Otherwise, they won't be properly extended to 64-bit for x32. Patch by H.J. Lu llvm-svn: 209278
* Use 64-bit pointer to unwind stack for x86-64Kostya Serebryany2014-05-212-7/+14
| | | | | | | | X32 uses ILP32 data model in 64-bit hardware mode. This patch always uses 64-bit pointer to unwind stack for x86-64. Patch by H.J. Lu llvm-svn: 209277
* Preprocessor: support defined() with operator names for MS compatibilityAlp Toker2014-05-219-59/+94
| | | | | | | | | Also flesh out missing tests, improve diagnostic QOI and fix a couple of corner cases found in the process. Fixes PR10606. llvm-svn: 209276
* [C++11] Use 'nullptr'. Parser edition.Craig Topper2014-05-2113-314/+329
| | | | llvm-svn: 209275
* [PECOFF] Discard .debug sections.Rui Ueyama2014-05-214-7/+14
| | | | llvm-svn: 209274
* MC: mark COFF .drectve section as REMOVESaleem Abdulrasool2014-05-212-1/+18
| | | | | | | | | The .drectve section should be marked as IMAGE_SCN_LNK_REMOVE. This matches what the MSVC toolchain does and accurately reflects that this section should not be emitted into the final binary. This section is merely information for the linker, comprising of additional linker directives. llvm-svn: 209273
* [C++11] Use 'nullptr'. CodeGen edition.Craig Topper2014-05-2146-854/+895
| | | | llvm-svn: 209272
* [PECOFF] Make COFFObjectReader thread-safe.Rui Ueyama2014-05-211-0/+3
| | | | llvm-svn: 209271
* ReExported symbols can point to a library that doesn't actuallyJim Ingham2014-05-215-30/+102
| | | | | | | | | contain the symbol, but just reexports wholesale from another library. Handle this case. <rdar://problem/16977589> llvm-svn: 209270
* [modules] Add module maps for LLVM. These are not quite ready for prime-timeRichard Smith2014-05-2111-0/+203
| | | | | | | yet, but only a few more Clang patches need to land. (I have 'ninja check' passing locally.) llvm-svn: 209269
* utils/CmpDriver: add brief documentation to indicate what this doesAlp Toker2014-05-211-0/+5
| | | | llvm-svn: 209268
* ARM: correct bundle generation for MOV32T relocationsSaleem Abdulrasool2014-05-214-10/+34
| | | | | | | | | | | | | | | | | | | | | | | Although the previous code would construct a bundle and add the correct elements to it, it would not finalise the bundle. This resulted in the InternalRead markers not being added to the MachineOperands nor, more importantly, the externally visible defs to the bundle itself. So, although the bundle was not exposing the def, the generated code would be correct because there was no optimisations being performed. When optimisations were enabled, the post register allocator would kick in, and the hazard recognizer would reorder operations around the load which would define the value being operated upon. Rather than manually constructing the bundle, simply construct and finalise the bundle via the finaliseBundle call after both MIs have been emitted. This improves the code generation with optimisations where IMAGE_REL_ARM_MOV32T relocations are emitted. The changes to the other tests are the result of the bundle generation preventing the scheduler from hoisting the moves across the loads. The net effect of the generated code is equivalent, but, is much more identical to what is actually being lowered. llvm-svn: 209267
* SourceManager: Use setMainFileID() consistentlyAlp Toker2014-05-216-31/+16
| | | | | | | | | | | Eliminate createMainFileID() / createMainFileIDForMemBuffer() utility functions. These didn't add much convenience and conflated two distinct operations. This change makes things easier to follow by providing a consistent interface and getting rid of a bunch of cast-to-voids. llvm-svn: 209266
* [modules] Add initial module map for libc++.Richard Smith2014-05-211-0/+471
| | | | llvm-svn: 209265
* [objcmt] Make sure we don't edit the return type to add 'instancetype' if ↵Argyrios Kyrtzidis2014-05-212-4/+18
| | | | | | | | the return type is already that. rdar://16961577 llvm-svn: 209264
* This command line option is only used in one place. Move it there andEric Christopher2014-05-213-4/+4
| | | | | | rename it to something more descriptive. llvm-svn: 209263
* Add a comment here.Eric Christopher2014-05-211-0/+1
| | | | llvm-svn: 209262
* Update for paired llvm commit with AsmVerbose.Eric Christopher2014-05-211-6/+1
| | | | llvm-svn: 209261
* Remove test. Replacing it with a backend test with the optimized IR.Eric Christopher2014-05-211-15/+0
| | | | llvm-svn: 209260
* Move this test to the backend from the frontend.Eric Christopher2014-05-201-0/+50
| | | | llvm-svn: 209259
* Move the verbose asm option to be part of the options struct andEric Christopher2014-05-207-33/+20
| | | | | | set appropriately. llvm-svn: 209258
* libclang: Give each VirtualFileOverlay unit test its own nameJustin Bogner2014-05-201-173/+176
| | | | llvm-svn: 209257
* XFAIL ptrace test on armGreg Fitzgerald2014-05-203-2/+9
| | | | | | | | | | | | | | | | | | The patch adds better target_triple and target_arch defaults for lit tests, which allows us to XFAIL tests based on architecture. Was: target_triple = LLVM_DEFAULT_TARGET_TRIPLE target_arch = HOST_ARCH Now: target_triple = COMPILER_RT_TEST_TARGET_TRIPLE , otherwise LLVM_DEFAULT_TARGET_TRIPLE target_arch = first item in COMPILER_RT_TEST_TARGET_TRIPLE Differential Revision: http://reviews.llvm.org/D3855 llvm-svn: 209256
* Make this test emit llvm IR rather than assembly.Eric Christopher2014-05-201-1/+1
| | | | llvm-svn: 209255
* [PECOFF] Acquire mutex before accessing shared objects.Rui Ueyama2014-05-201-0/+1
| | | | | | | | | | | addResolvableSymbols() queues input files, and readAllSymbols() reads from them. In practice it's currently safe because they are called from a single thread. But it's not guaranteed. Also, acquiring the same mutex is needed not to see inconsistent memory contents that is allowed in the C++ memory model. llvm-svn: 209254
* Update MachOObjectFile::getSymbolAddress so it returns UnknownAddressOrSizeKevin Enderby2014-05-203-8/+22
| | | | | | | | | | | | for undefined symbols, so it matches what COFFObjectFile::getSymbolAddress does. This allows llvm-nm to print spaces instead of 0’s for the value of undefined symbols in Mach-O files. To make this change other uses of MachOObjectFile::getSymbolAddress are updated to handle when the Value is returned as UnknownAddressOrSize. Which is needed to keep two of the ExecutionEngine tests working for example. llvm-svn: 209253
* Fix test added in r209242: llc shouldn't create files in source treeAlexey Samsonov2014-05-201-1/+1
| | | | llvm-svn: 209252
* Revert "DebugInfo: Assume all subprogram DIEs have been created before any ↵David Blaikie2014-05-201-5/+5
| | | | | | | | | | | | | | abstract subprograms are constructed." This reverts commit r209178. This seems to be asserting in an LTO build on some internal Apple buildbots. No upstream reproduction (and I don't have an LLVM-aware gold built right now to reproduce it personally) but it's a small patch & the failure's semi-plausible so I'm going to revert first while I try to reproduce this. llvm-svn: 209251
* VirtualFileSystem: Fix false positives in YAMLVFSWriter::containedInJustin Bogner2014-05-202-1/+61
| | | | | | | | Checking if a path starts with another path isn't sufficient for determining if one is contained within the heirarchy of the other. We need to ensure that the substring ends at a directory boundary. llvm-svn: 209250
* [ubsan] fix vptr test on ARMGreg Fitzgerald2014-05-201-1/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D3751 llvm-svn: 209249
* Run common and profile tests in cross-compiled builds.Greg Fitzgerald2014-05-202-2/+2
| | | | | | Route target_cflags to common and profile tests llvm-svn: 209248
* Reduce string duplicationAlp Toker2014-05-201-7/+2
| | | | | | | If we're so keen on saving a dynamic allocation to add the trailing space, we might as well do it in style. llvm-svn: 209247
* RAV reunification: merge Lambda body visitation to DRAVAlp Toker2014-05-202-10/+28
| | | | llvm-svn: 209246
* RAV reunification: merge DISPATCH_STMT() macro back to standard RAVAlp Toker2014-05-202-4/+10
| | | | | | Also add the missing undef in both files. llvm-svn: 209245
* RAV reunification: merge r190728Alp Toker2014-05-201-1/+1
| | | | llvm-svn: 209244
* [PECOFF] Do not use anonymous namespace in a header.Rui Ueyama2014-05-201-6/+6
| | | | llvm-svn: 209243
* [ARM64] PR19792: Fix cycle in DAG after performPostLD1CombineAdam Nemet2014-05-202-1/+46
| | | | | | | | | | | | | | | | | | | Povray and dealII currently assert with "Overran sorted position" in AssignTopologicalOrder. The problem is that performPostLD1Combine can introduce cycles. Consider: (insert_vector_elt (INSERT_SUBREG undef, (load (add %vreg0, Constant<8>), undef), <= A TargetConstant<2>), (load %vreg0, undef), <= B Constant<1>) This is turned into a LD1LANEpost node. However the address in A is not a valid user of the post-incremented address of B in LD1LANEpost. llvm-svn: 209242
* VirtualFileSystem: Add YAMLVFSWriter to generate VFS mapping filesJustin Bogner2014-05-203-141/+155
| | | | | | | | | This moves the logic to write a JSON VFS mapping from the C api into VirtualFileSystem, so that we can use it internally. No functional change. llvm-svn: 209241
* Unbreak the sanitizer buildbots after r209226 due to SROA issue described in ↵David Blaikie2014-05-201-4/+7
| | | | | | | | | | | | | | | http://reviews.llvm.org/D3714 Undecided whether this should include a test case - SROA produces bad dbg.value metadata describing a value for a reference that is actually the value of the thing the reference refers to. For now, loosening the assert lets this not assert, but it's still bogus/wrong output... If someone wants to tell me to add a test, I'm willing/able, just undecided. Hopefully we'll get SROA fixed soon & we can tighten up this assertion again. llvm-svn: 209240
* Update for llvm change to avoid having global flag setting in TargetMachine.Eric Christopher2014-05-201-3/+2
| | | | llvm-svn: 209239
* Move the function and data section flags into the options struct andEric Christopher2014-05-206-61/+69
| | | | | | | | | | make the functions to set them non-static. Move and rename the llvm specific backend options to avoid conflicting with the clang option. Paired with a backend commit to update. llvm-svn: 209238
* Update .arcconfig to point to reviews.llvm.orgReid Kleckner2014-05-201-1/+1
| | | | | | | | | | Mostly a test review and commit. Reviewers: tfiala Differential Revision: http://reviews.llvm.org/D3834 llvm-svn: 209237
* Revert r209235 as it broke two tests:Kevin Enderby2014-05-203-15/+7
| | | | | | | | Failing Tests (2): LLVM :: ExecutionEngine/MCJIT/stubs-sm-pic.ll LLVM :: ExecutionEngine/MCJIT/stubs.ll llvm-svn: 209236
OpenPOWER on IntegriCloud