- Aug 28, 2013
-
-
David Blaikie authored
llvm-svn: 189504
-
Peter Collingbourne authored
Differential Revision: http://llvm-reviews.chandlerc.com/D1505 llvm-svn: 189503
-
Peter Collingbourne authored
Differential Revision: http://llvm-reviews.chandlerc.com/D1504 llvm-svn: 189502
-
Rui Ueyama authored
Re-submitting r189416 with fix for Windows build on where strcasecmp is not defined. llvm-svn: 189501
-
Samuel Benzaquen authored
Summary: Add support for eachOf/allOf/anyOf variadic matchers in the dynamic layer. These function require some late binding behavior for the type conversions, thus changes in VariadicValue's MatcherList. Second try. This time with a fix for C++11 builds. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D1536 llvm-svn: 189500
-
Hal Finkel authored
When unrolling is disabled in the pass manager, the loop vectorizer should also not unroll loops. This will allow the -fno-unroll-loops option in Clang to behave as expected (even for vectorizable loops). The loop vectorizer's -force-vector-unroll option will (continue to) override the pass-manager setting (including -force-vector-unroll=0 to force use of the internal auto-selection logic). In order to test this, I added a flag to opt (-disable-loop-unrolling) to force disable unrolling through opt (the analog of -fno-unroll-loops in Clang). Also, this fixes a small bug in opt where the loop vectorizer was enabled only after the pass manager populated the queue of passes (the global_alias.ll test needed a slight update to the RUN line as a result of this fix). llvm-svn: 189499
-
Manman Ren authored
Seperate the parts related to uuid from debug-info-template.cpp to debug-info-uuid.cpp since Itanium mangler does not have support for mangling uuid yet. Remove -fms-extensions from RUN line of debug-info-template.cpp. RUN line of debug-info-uuid.cpp has -fms-extensions and -cxx-abi microsoft. llvm-svn: 189498
-
Kevin Enderby authored
with a debug build) with this buggy .indirect_symbol directive usage: % cat test.s x: .indirect_symbol _y The assertion is because it is trying to get the symbol index for the symbol _y when it is writing out the indirect symbol table. This line of code in MachObjectWriter::WriteObject() : Write32(Asm.getSymbolData(*it->Symbol).getIndex()); And while there is a symbol _y it does not have any getSymbolData set which is only done in MachObjectWriter::BindIndirectSymbols() for pointer sections or stub sections. I added a check and an error in there to catch this in case something slips through. But to get a better error the parser should detect when a .indirect_symbol directive is used and it is not in a pointer section or stub section. To make that work I moved the handling of the indirect symbol out of the target independent AsmParser code into the DarwinAsmParser code that can check for the proper Mach-O section types. rdar://14825505 llvm-svn: 189497
-
Hans Wennborg authored
llvm-svn: 189496
-
David Blaikie authored
With the added debug assertions this fix is covered by existing Clang tests. (& found some other issues, also fixed) llvm-svn: 189495
-
David Blaikie authored
In the transition from declaration (with some members) to definition, we were overwriting the list of members with the empty list when attaching template parameters. The fix is in llvm::DICompositeType::addMember (along with asserts that cause this bug to be covered by existing Clang test cases), including adding some asserts to catch this sort of issue which found issues fixed in this commit. llvm-svn: 189494
-
Edwin Vane authored
For users of libclangReplace, this patch affords the ability to apply replacements in memory instead of writing to disk. Differential Revision: http://llvm-reviews.chandlerc.com/D1519 llvm-svn: 189493
-
Jordan Rose authored
When casting the address of a FunctionTextRegion to bool, or when adding constraints to such an address, use a stand-in symbol to represent the presence or absence of the function if the function is weakly linked. This is groundwork for possible simple availability testing checks, and can already catch mistakes involving inverted null checks for weakly-linked functions. Currently, the implementation reuses the "extent" symbols, originally created for tracking the size of a malloc region. Since FunctionTextRegions cannot be dereferenced, the extent symbol will never be used for anything else. Still, this probably deserves a refactoring in the future. This patch does not attempt to support testing the presence of weak /variables/ (global variables), which would likely require much more of a change and a generalization of "region structure metadata", like the current "extents", vs. "region contents metadata", like CStringChecker's "string length". Patch by Richard <tarka.t.otter@googlemail.com>! llvm-svn: 189492
-
Hans Wennborg authored
llvm-svn: 189491
-
Joey Gouly authored
Fix a few things in one swoop. # Add some negative tests. # Fix some formatting issues. # Add some missing IsThumb / ARMv8 # Fix some outs / ins mistakes. llvm-svn: 189490
-
Rafael Espindola authored
This is just enough to get "llvm-ranlib foo.a" working and tested. Making llvm-ranlib a symbolic link to llvm-ar doesn't work so well with llvm's option parsing, but ar's option parsing is mostly custom anyway. This patch also removes the -X32_64 option. Looks like it was just added in r10297 as part of implementing the current command line parsing. I can add it back (with a test) if someone really has AIX portability problems without it. llvm-svn: 189489
-
Hans Wennborg authored
llvm-svn: 189488
-
Daniel Malea authored
- should help with FreeBSD buildbot llvm-svn: 189487
-
Will Dietz authored
Fixes build on systems where 'python' is not python2. llvm-svn: 189486
-
Hafiz Abid Qadeer authored
llvm-svn: 189484
-
Tim Northover authored
The usual default of "dmb ish" (inner-shareable) isn't even a valid instruction on v6M or v7M (well, it does the same thing but software is strongly discouraged from using it) so we should emit a full-system barrier there. llvm-svn: 189483
-
Joey Gouly authored
llvm-svn: 189482
-
Tim Northover authored
Clang is now generating cleaner IR, so this removes the old variants which should be completely unused. llvm-svn: 189481
-
Tim Northover authored
The vqdmlal and vqdmlls instructions are really just a fused pair consisting of a vqdmull.sN and a vqadd.sN. This adds patterns to LLVM so that we can switch Clang's CodeGen over to generating these instead of the special vqdmlal intrinsics. llvm-svn: 189480
-
Alexey Samsonov authored
llvm-svn: 189479
-
Daniel Sanders authored
These intrinsics are legalized to V(ALL|ANY)_(NON)?ZERO nodes, are matched as SN?Z_[BHWDV]_PSEUDO pseudo's, and emitted as a branch/mov sequence to evaluate to 0 or 1. Note: The resulting code is sub-optimal since it doesnt seem to be possible to feed the result of an intrinsic directly into a brcond. At the moment it uses (SETCC (VALL_ZERO $ws), 0, SETEQ) and similar which unnecessarily evaluates the boolean twice. llvm-svn: 189478
-
Virgile Bello authored
- factorize unistd.h and stdbool.h in lldb-types.h. - Add <functional> and <string> where required. llvm-svn: 189477
-
Daniel Sanders authored
llvm-svn: 189476
-
Alexey Samsonov authored
llvm-svn: 189475
-
Alexey Samsonov authored
llvm-svn: 189474
-
Alexey Samsonov authored
llvm-svn: 189473
-
Elena Demikhovsky authored
llvm-svn: 189472
-
Daniel Sanders authored
llvm-svn: 189471
-
Hafiz Abid Qadeer authored
The change was taken from a patch by Virgile Bello. llvm-svn: 189470
-
Richard Sandiford authored
For now just handles simple comparisons of an ANDed value with zero. The CC value provides enough information to do any comparison for a 2-bit mask, and some nonzero comparisons with more populated masks, but that's all future work. llvm-svn: 189469
-
Daniel Sanders authored
The MSA control registers have been added as reserved registers, and are only used via ISD::Copy(To|From)Reg. The intrinsics are lowered into these nodes. llvm-svn: 189468
-
Daniel Sanders authored
[mips][msa] Added f[cs]af, f[cs]or, f[cs]ueq, f[cs]ul[et], f[cs]une, fsun, ftrunc_[su], hadd_[su], hsub_[su], sr[al]r, sr[al]ri llvm-svn: 189467
-
Daniel Jasper authored
Two changes: * Don't add an extra penalty on breaking the same token multiple times. Generally, we should prefer not to break, but once we break, the normal line breaking penalties apply. * Slightly increase the penalty for breaking comments. In general, the author has put some thought into how to break the comment and we should not overwrite this unnecessarily. With a 40-column column limit, formatting aaaaaa("aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa"); Leads to: Before: aaaaaa( "aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa " "aaaaaaaaaaaaaaaa"); After: aaaaaa("aaaaaaaaaaaaaaaa " "aaaaaaaaaaaaaaaa " "aaaaaaaaaaaaaaaa"); llvm-svn: 189466
-
Daniel Sanders authored
Adds a comment to the start of each test summarizing the area the test covers. llvm-svn: 189465
-
Tim Northover authored
llvm-svn: 189464
-