- Aug 14, 2015
-
-
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
-
Rafael Espindola authored
llvm-svn: 244941
-
Reid Kleckner authored
llvm-svn: 244940
-
Rafael Espindola authored
llvm-svn: 244939
-
Rafael Espindola authored
llvm-svn: 244938
-
Jingyue Wu authored
We used to be over-conservative about preserving inbounds. Actually, the second GEP (which applies the constant offset) can inherit the inbounds attribute of the original GEP, because the resultant pointer is equivalent to that of the original GEP. For example, x = GEP inbounds a, i+5 => y = GEP a, i // inbounds removed x = GEP inbounds y, 5 // inbounds preserved llvm-svn: 244937 -
Yaron Keren authored
llvm-svn: 244936
-
Yaron Keren authored
llvm-svn: 244935
-
Rafael Espindola authored
This is a bit more c++ code, but: * It is less machine code: lld's text is 44688 bytes smaller. * It should be a bit more efficient in the non native endian case. * It should be a bit more efficient on architectures with slow unaligned access. llvm-svn: 244934
-
Naomi Musgrave authored
Summary: Poisoning applied to only class members, and before dtors for base class invoked Implement poisoning of only class members in dtor, as opposed to also poisoning fields inherited from base classes. Members are poisoned only once, by the last dtor for a class. Skip poisoning if class has no fields. Verify emitted code for derived class with virtual destructor sanitizes its members only once. Removed patch file containing extraneous changes. Reviewers: eugenis, kcc Differential Revision: http://reviews.llvm.org/D11951 Simplified test cases for use-after-dtor Summary: Simplified test cases to focus on one feature at time. Tests updated to align with new emission order for sanitizing callback. Reviewers: eugenis, kcc Differential Revision: http://reviews.llvm.org/D12003 llvm-svn: 244933
-
David Majnemer authored
Archive files wouldn't lead to us reprocessing the section relocations for the new object files. llvm-svn: 244932
-