- Aug 14, 2015
-
-
Ivan Krasin authored
Summary: The default blacklists may vary across different architectures and configurations. It was not wise to include into http://reviews.llvm.org/D11968 Reviewers: chapuni, pcc Subscribers: cfe-commits, pcc Differential Revision: http://reviews.llvm.org/D12021 llvm-svn: 244985
-
Greg Clayton authored
Don't crash when we have a .a file that contains an object with a 16 character name. Any calls to std::string::erase must be bounds checked. <rdar://problem/22260988> llvm-svn: 244984
-
David Blaikie authored
makeFilter returns Filters by value which seems to be only safe when the copy doesn't occur and RVO kicks in. Make the object safely movable to support this more reliably. llvm-svn: 244983
-
Alex Lorenz authored
This commit modifies the way the machine basic blocks are serialized - now the machine basic blocks are serialized using a custom syntax instead of relying on YAML primitives. Instead of using YAML mappings to represent the individual machine basic blocks in a machine function's body, the new syntax uses a single YAML block scalar which contains all of the machine basic blocks and instructions for that function. This is an example of a function's body that uses the old syntax: body: - id: 0 name: entry instructions: - '%eax = MOV32r0 implicit-def %eflags' - 'RETQ %eax' ... The same body is now written like this: body: | bb.0.entry: %eax = MOV32r0 implicit-def %eflags RETQ %eax ... This syntax change is motivated by the fact that the bundled machine instructions didn't map that well to the old syntax which was using a single YAML sequence to store all of the machine instructions in a block. The bundled machine instructions internally use flags like BundledPred and BundledSucc to determine the bundles, and serializing them as MI flags using the old syntax would have had a negative impact on the readability and the ease of editing for MIR files. The new syntax allows me to serialize the bundled machine instructions using a block construct without relying on the internal flags, for example: BUNDLE implicit-def dead %itstate, implicit-def %s1 ... { t2IT 1, 24, implicit-def %itstate %s1 = VMOVS killed %s0, 1, killed %cpsr, implicit killed %itstate } This commit also converts the MIR testcases to the new syntax. I developed a script that can convert from the old syntax to the new one. I will post the script on the llvm-commits mailing list in the thread for this commit. llvm-svn: 244982 -
David Blaikie authored
Wdeprecated: Make the SecKeychainBugVisitor copyable (for the clone support in the CRTP base) my removing the user-declared dtor The implicit dtor is just as good, and avoid suppressing implicit copy/move ops. llvm-svn: 244981
-
David Blaikie authored
llvm-svn: 244980
-
David Blaikie authored
Wdeprecated: BugReporterVisitors are copied for cloning (BugReporterVisitorImpl), make sure such copies are safe Make the copy/move ctors defaulted in the base class and make the derived classes final to avoid any intermediate hierarchy slicing if these types were further derived. llvm-svn: 244979
-
David Blaikie authored
Follow up r244975: The ctors of an abstract class don't need to be protected - the object isn't directly constructible/doesn't present a slicing risk llvm-svn: 244978
-
Sanjay Patel authored
llvm-svn: 244977
-
David Blaikie authored
Wdeprecated: CollectReachableSymbolsCallback are move constructed/returned by value, so make sure they're copy/moveable (return by value is in ExprEngine::processPointerEscapedOnBind and any other call to the scanReachableSymbols function template used there) Protect the special members in the base class to avoid slicing, and make derived classes final so these special members don't accidentally become public on an intermediate base which would open up the possibility of slicing again. llvm-svn: 244975
-
David Blaikie authored
Wdeprecated: RegionBindingsRef are copy constructed, make sure that's safe by removing the unnecessary user-declared copy assignment operator The user-defined copy assignment looks like it was working around the presence of a reference member (that probably doesn't change in the copy assignment cases present in the program). Rather than continuing this - just change the reference to a pointer and let all the special members be defined implicitly. llvm-svn: 244974
-
David Blaikie authored
Wdeprecated: PathPieces are copied, make them safely implicitly copyable by removing the unnecessary user declared dtor. llvm-svn: 244973
-
Rafael Espindola authored
With OutputSection being a virtual interface, each concrete OutputSection handles only one type of chunk and we don't need a base Chunk class. So for we have a class that handles input sections and one that handles the string table, but this extends naturally for other outputs (symbol table, merging of SHF_MERGE sections, etc.). llvm-svn: 244972
-
David Blaikie authored
Removing the no-op dtor makes these objects safely implicitly copyable/movable/etc. (& tidy up the ctor, while I'm here) llvm-svn: 244971
-
NAKAMURA Takumi authored
llvm-svn: 244970
-
Rafael Espindola authored
We were creating the string table in a completely ad hoc way. Now the string table is an output section and gets its output offset set just like any other section. This opens the way for other linker created sections like the symbol table. llvm-svn: 244969
-
David Blaikie authored
Turns out the one place that relied on the implicit copy ctor was safe because it created an object in a state where the dtor was a no-op, but that's more luck that good management. Sure up the API by defining move construction and using it, which implicitly disallows the unreliable copy operations. llvm-svn: 244968
-
David Majnemer authored
No functional change is intended, just tidying up whitespace. llvm-svn: 244966
-
Zachary Turner authored
This was caused by a bug in the PTVS source file editor, which has since been fixed and awaiting a new release. For now people using this editor need to remember to manually remove this before committing a file. llvm-svn: 244963
-
Brad Smith authored
llvm-svn: 244962
-
Brad Smith authored
llvm-svn: 244961
-
Simon Pilgrim authored
D9746 added general SMAX/SMIN/UMAX/UMIN pattern matching to SelectionDAGBuilder::visitSelect. Differential Revision: http://reviews.llvm.org/D12007 llvm-svn: 244960
-
Eric Christopher authored
llvm-svn: 244959
-
David Blaikie authored
llvm-svn: 244958
-
David Blaikie authored
Partly addressed by r244843, but the explicit dtor in LambdaScopeInfo was still thwarting the implicit copy ctor. This does remove the key function from LambdaScopeInfo unfortunately, but it seems neater than having to explicitly default any special members LambdaScopeInfo needs. llvm-svn: 244957
-
David Blaikie authored
Wdeprecated: Replace deprecated throw() with LLVM_NOEXCEPT which expands to 'noexcept' where available (and throw() otherwise) llvm-svn: 244956
-
Ahmed Bougacha authored
We used to just say "invalid type suffix for instruction", which is misleading. This is because we fallback to the long-form matcher if the short-form matcher failed, losing the error information on the way. Save it, so that we can provide a little better diagnostics when the long-form matcher thinks a suffix is the cause of the error. llvm-svn: 244955
-
Tobias Grosser authored
llvm-svn: 244954
-
Alex Lorenz authored
llvm-svn: 244953
-
Naomi Musgrave authored
Summary: Fixed test in response to buildbot failures from last night. Reviewers: eugenis, kcc Differential Revision: http://reviews.llvm.org/D12018 llvm-svn: 244952
-
Zachary Turner authored
Most were already XFAIL'ed, but the reason for the XFAIL is that we don't have a suitable pexpect implementation on Windows. This isn't going to change unintentionally, so there is no reason to XFAIL them as opposed to just skip them. llvm.org/pr22274 tracks finding a suitable pexpect module for Windows, which should fix many of these issues. llvm.org/pr24452 tracks the larger issue of making the entire lldb-mi test suite work on Windows, of which finding a pexpect module is just one component. llvm-svn: 244951
-
Zachary Turner authored
https://llvm.org/pr24446 tracks getting these tests re-enabled. llvm-svn: 244950
-
Simon Pilgrim authored
Follow up to D10947 - D9746 added general SMAX/SMIN/UMAX/UMIN pattern matching to SelectionDAGBuilder::visitSelect. This patch removes the X86 implementation and improves the AVX1/AVX2 support to correctly lower 256-bit integer vectors. Differential Revision: http://reviews.llvm.org/D12006 llvm-svn: 244949
-
Chris Bieneman authored
Summary: This is a reunification of three separate reviews D11073, D11082, D11083. Having them separate was not constructive even though the patches were smaller because it led to fragmented conversations, and this is really all about one change. This patch incorporates feedback from samsonov, and refactors the hacky darwin code out of the root CMakeLists.txt and int config-ix.cmake. Reviewers: zaks.anna, bogner, kubabrecka, chandlerc, samsonov Subscribers: jevinskie, filcab, llvm-commits Differential Revision: http://reviews.llvm.org/D11820 llvm-svn: 244948
-
Davide Italiano authored
If <src> is non-zero we can safely set the flag to true, and this results in less code generated for, e.g. ffs(x) + 1 on FreeBSD. Thanks to majnemer for suggesting the fix and reviewing. Code generated before the patch was applied: 0: 0f bc c7 bsf %edi,%eax 3: b9 20 00 00 00 mov $0x20,%ecx 8: 0f 45 c8 cmovne %eax,%ecx b: 83 c1 02 add $0x2,%ecx e: b8 01 00 00 00 mov $0x1,%eax 13: 85 ff test %edi,%edi 15: 0f 45 c1 cmovne %ecx,%eax 18: c3 retq Code generated after the patch was applied: 0: 0f bc cf bsf %edi,%ecx 3: 83 c1 02 add $0x2,%ecx 6: 85 ff test %edi,%edi 8: b8 01 00 00 00 mov $0x1,%eax d: 0f 45 c1 cmovne %ecx,%eax 10: c3 retq It seems we can still use cmove and save another 'test' instruction, but that can be tackled separately. Differential Revision: http://reviews.llvm.org/D11989 llvm-svn: 244947
-
Alexey Samsonov authored
Summary: Let UBSan output flag description if 'help' options is provided. Report unrecognized flags if verbosity mode is turned on. Patch by Svetlana Ryabkova! Differential Revision: http://reviews.llvm.org/D11903 llvm-svn: 244946
-
Alex Lorenz authored
This commit extracts the code that parses the memory operand's alignment into a new method named 'parseAlignment' so that it can be reused when parsing the basic block's alignment attribute. llvm-svn: 244945
-
Simon Pilgrim authored
llvm-svn: 244944
-
Alex Lorenz authored
This commit renames the method 'diagFromLLVMAssemblyDiag' to 'diagFromBlockStringDiag'. This method will be used when converting diagnostics from other YAML block strings, and not just the LLVM module block string, so the new name should reflect that. llvm-svn: 244943
-
Rafael Espindola authored
They don't need to be aligned to page boundaries. Only segments need that. llvm-svn: 244942
-