summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Update MachOObjectFile::getSymbolAddress so it returns UnknownAddressOrSizeKevin Enderby2014-05-203-7/+15
| | | | | | | for undefined symbols. Allowing llvm-nm to print spaces instead of 0’s for the value of undefined symbols in Mach-O files. llvm-svn: 209235
* Change gdb remote test support multi-request format.Todd Fiala2014-05-201-1/+1
| | | | | | | | The multi request-response test infrastructure support was adding the optional request suffix iteration index as decimal but it needed to be hex per spec. This change fixes that. llvm-svn: 209234
* Cleaning up some range-based for loops so that the automatic type deduction ↵Aaron Ballman2014-05-201-74/+75
| | | | | | is more explicit about pointers and const. Did some minor drive-by const correctness fixes and identifier updates as well. No functional changes. llvm-svn: 209233
* Revert r209231, "Update AttributeReference.rst."Peter Collingbourne2014-05-201-76/+2
| | | | | | According to Aaron, this is being generated on the server now. llvm-svn: 209232
* Update AttributeReference.rst.Peter Collingbourne2014-05-201-2/+76
| | | | llvm-svn: 209231
* [LSR] Canonicalize reg1 + ... + regN into reg1 + ... + 1*regN.Quentin Colombet2014-05-203-190/+385
| | | | | | | | | | | | | | This commit introduces a canonical representation for the formulae. Basically, as soon as a formula has more that one base register, the scaled register field is used for one of them. The register put into the scaled register is preferably a loop variant. The commit refactors how the formulae are built in order to produce such representation. This yields a more accurate, but still perfectible, cost model. <rdar://problem/16731508> llvm-svn: 209230
* Fix testcase from r209228Duncan P. N. Exon Smith2014-05-201-1/+1
| | | | llvm-svn: 209229
* GlobalValue: Testcase for hidden visibility and local linkageDuncan P. N. Exon Smith2014-05-201-0/+8
| | | | | | | | | | | | | | This is a testcase for r209227, a change in LLVM that automatically sets visibility to default when the linkage is changed to local (rather than asserting). What this testcase triggers is hard to reproduce otherwise: the `GlobalValue` is created (with non-local linkage), the visibility is set to hidden, and then the linkage is set to local. PR19760 llvm-svn: 209228
* GlobalValue: Automatically reset visibility when setting local linkageDuncan P. N. Exon Smith2014-05-201-2/+2
| | | | | | | | | | | | | | | r208264 started asserting in `setLinkage()` and `setVisibility()` that visibility and linkage are compatible. There are a few places in clang where visibility is set first, and then linkage later, so the assert fires. In `setLinkage()`, it's clear what the visibility *should* be, so rather than updating all the call sites just automatically fix the visibility. The testcase for this is for *clang*, so it'll follow separately in cfe. PR19760 llvm-svn: 209227
* Fix test breakage introduced in r209223.David Blaikie2014-05-201-1/+2
| | | | | | Oops, broke the broken enum constants again. llvm-svn: 209226
* Rewrite calculateDbgValueHistory to make it (hopefully) more transparent.Alexey Samsonov2014-05-203-122/+142
| | | | | | | | | | | | | | | | | | | | | | This change preserves the original algorithm of generating history for user variables, but makes it more clear. High-level description of algorithm: Scan all the machine basic blocks and machine instructions in the order they are emitted to the object file. Do the following: 1) If we see a DBG_VALUE instruction, add it to the history of the corresponding user variable. Keep track of all user variables, whose locations are described by a register. 2) If we see a regular instruction, look at all the registers it clobbers, and terminate the location range for all variables described by these registers. 3) At the end of the basic block, terminate location ranges for all user variables described by some register. Although this change shouldn't be user-visible (the contents of .debug_loc section should be the same), it changes some internal assumptions about the set of instructions used to track the variable locations. Watching the bots. llvm-svn: 209225
* Fixed spelling.Yaron Keren2014-05-201-1/+1
| | | | llvm-svn: 209224
* PR19767: DebugInfo emission of pointer constants.David Blaikie2014-05-202-2/+64
| | | | | | | | | | | | | | | | | In refactoring DwarfUnit::isUnsignedDIType I restricted it to only work on values with signedness (unsigned or signed), asserting on anything else (which did uncover some bugs). But it turns out that we do need to emit constants of signless data, such as pointer constants - only null pointer constants are known to need this so far, but it's conceivable that there might be non-null pointer constants at some point (hardcoded address offsets for device drivers?). This patch just uses 'unsigned' for signless data such as pointer constants. Arguably we could use signless representations (DW_FORM_dataN) instead, allowing a trinary result from isUnsignedDIType (signed, unsigned, signless), but this seems reasonable for now. llvm-svn: 209223
* Avoids DCE on write_registerRenato Golin2014-05-202-1/+4
| | | | llvm-svn: 209222
* Add a check for tautological bitwise comparisons to -Wtautological-compare.Jordan Rose2014-05-205-8/+77
| | | | | | | | | | | This catches issues like: if ((x & 8) == 4) { ... } if ((x | 4) != 3) { ... } Patch by Anders Rönnholm! llvm-svn: 209221
* Make the wording for the flatten docs a little clearer.Peter Collingbourne2014-05-201-2/+3
| | | | llvm-svn: 209220
* [PowerPC] PR19796: Also match ISD::TargetConstant in isIntS16ImmediateAdam Nemet2014-05-202-1/+23
| | | | | | | | | | | | | The SplitIndexingFromLoad changes exposed a latent isel bug in the PowerPC64 backend. We matched an immediate offset with STWX8 even though it only supports register offset. The culprit is the complex-pattern predicate, SelectAddrIdx, which decides that if the offset is not ISD::Constant it must be a register. Many thanks to Bill Schmidt for testing this. llvm-svn: 209219
* Fix testcase for case.Eric Christopher2014-05-201-1/+1
| | | | llvm-svn: 209218
* Implement the flatten attribute.Peter Collingbourne2014-05-207-0/+86
| | | | | | | | | | This is a GNU attribute that causes calls within the attributed function to be inlined where possible. It is implemented by giving such calls the alwaysinline attribute. Differential Revision: http://reviews.llvm.org/D3816 llvm-svn: 209217
* Clean up language and grammar.Eric Christopher2014-05-2010-12/+12
| | | | | | | Based on a patch by jfcaron3@gmail.com! PR19806 llvm-svn: 209216
* Clean up language and grammar.Eric Christopher2014-05-209-10/+10
| | | | | | | Based on a patch by jfcaron3@gmail.com! PR19806 llvm-svn: 209215
* Go via uintptr_t when casting away constness, otherwise GCC will warnJoerg Sonnenberger2014-05-201-1/+4
| | | | | | when using -Wcast-qual. llvm-svn: 209214
* Fix typosAlp Toker2014-05-202-2/+2
| | | | llvm-svn: 209213
* clang/test/SemaCXX/err_init_conversion_failed.cpp: Tweak for i686-msvc.NAKAMURA Takumi2014-05-201-1/+1
| | | | | | | | | | | For targeting i686-msvc, declarations are seen as thiscall like; void (template_test::S::*)(const int &) __attribute__((thiscall)) void (template_test::S::*)(int) __attribute__((thiscall)) It didn't affect x86_64-msvc. llvm-svn: 209212
OpenPOWER on IntegriCloud