- May 05, 2019
-
-
Michal Gorny authored
llvm-svn: 359977
-
Simon Pilgrim authored
llvm-svn: 359976
-
Simon Pilgrim authored
Ideally getTreeCost() should be const as well but non-const Type creation would need to be addressed first. llvm-svn: 359975
-
Simon Pilgrim authored
llvm-svn: 359974
-
Simon Pilgrim authored
llvm-svn: 359973
-
- May 04, 2019
-
-
Cameron McInally authored
llvm-svn: 359970
-
Sanjay Patel authored
This is a subset of the original commit from rL359879 which was reverted because it could crash when using the 'RemovedInstructions' structure that enables delayed deletion of dead instructions. The motivating compile-time win does not require that change though. We should get most of that win from this change alone. Using/updating a dominator tree to match math overflow patterns may be very expensive in compile-time (because of the way CGP uses a DT), so just handle the single-block case. See post-commit thread for rL354298 for more details: http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20190422/646276.html Differential Revision: https://reviews.llvm.org/D61075 llvm-svn: 359969
-
Nicolas Lesser authored
llvm-svn: 359968
-
Hamza Sood authored
Differential Revision: https://reviews.llvm.org/D36527 llvm-svn: 359967
-
Nicolas Lesser authored
In r359949 several AST node constructors were modified without the corresponding change in lldb, which caused build failures. llvm-svn: 359966
-
Fangrui Song authored
This restores part of the good change reverted by r359830. llvm-svn: 359965
-
Richard Smith authored
* __VA_OPT__ is expanded if the *expanded* __VA_ARGS__ is non-empty, not if the original argument contained no tokens. * Placemarkers at the start and end of __VA_OPT__ are retained just long enough to paste them with adjacent ## operators. We never paste "across" a discarded placemarker. llvm-svn: 359964
-
Stanislav Mekhanoshin authored
llvm-svn: 359963
-
Richard Smith authored
where either the modification or the other access is unreachable. llvm-svn: 359962
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D61536 llvm-svn: 359961
-
Richard Trieu authored
When a FunctionProtoType is in the original type in a DecayedType, the decayed type is a PointerType which points back the original FunctionProtoType. The visitor for ODRHashing will attempt to process both Type's, doing double work. By chaining together multiple DecayedType's and FunctionProtoType's, this would result in 2^N Type's visited only N DecayedType's and N FunctionProtoType's exsit. Another bug where VisitDecayedType and VisitAdjustedType did redundant work doubled the work at each level, giving 4^N Type's visited. This patch removed the double work and detects when a FunctionProtoType decays to itself to only check the Type once. This lowers the exponential runtime to linear runtime. Fixes https://bugs.llvm.org/show_bug.cgi?id=41625 llvm-svn: 359960
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D61527 llvm-svn: 359959
-
Richard Smith authored
state when it's encountered while evaluating a constexpr function. We attempt to follow GCC trunk's behavior here, but it is somewhat inscrutible, so our behavior is only approximately the same for now. Specifically, we only permit modification of objects whose lifetime began within the operand of the __builtin_constant_p. GCC appears to have effectively the same restriction, but also some unknown restriction based on where and how the local state of the constexpr function is mentioned within the operand (see added testcases). llvm-svn: 359958
-
Petr Hosek authored
When user specifies non-existent directory to -fcrash-diagnostics-dir, create it rather than failing with an error as would be the case before. Differential Revision: https://reviews.llvm.org/D61542 llvm-svn: 359954
-
Richard Smith authored
support; those turn on different modules modes. The real C++ modules support is behind -std=c++2a like the rest of C++20. llvm-svn: 359953
-
Richard Smith authored
Also: use the "svn" color for "explicit(bool)" rather than the "full" color. llvm-svn: 359951
-
Lang Hames authored
These operations were already used in eh-frame registration, and are likely to be used in other runtime registrations, so this commit moves them into a header where they can be re-used. llvm-svn: 359950
-
Nicolas Lesser authored
this patch adds support for the explicit bool specifier. Changes: - The parsing for the explicit(bool) specifier was added in ParseDecl.cpp. - The storage of the explicit specifier was changed. the explicit specifier was stored as a boolean value in the FunctionDeclBitfields and in the DeclSpec class. now it is stored as a PointerIntPair<Expr*, 2> with a flag and a potential expression in CXXConstructorDecl, CXXDeductionGuideDecl, CXXConversionDecl and in the DeclSpec class. - Following the AST change, Serialization, ASTMatchers, ASTComparator and ASTPrinter were adapted. - Template instantiation was adapted to instantiate the potential expressions of the explicit(bool) specifier When instantiating their associated declaration. - The Add*Candidate functions were adapted, they now take a Boolean indicating if the context allowing explicit constructor or conversion function and this boolean is used to remove invalid overloads that required template instantiation to be detected. - Test for Semantic and Serialization were added. This patch is not yet complete. I still need to check that interaction with CTAD and deduction guides is correct. and add more tests for AST operations. But I wanted first feedback. Perhaps this patch should be spited in smaller patches, but making each patch testable as a standalone may be tricky. Patch by Tyker Differential Revision: https://reviews.llvm.org/D60934 llvm-svn: 359949
-
Richard Smith authored
specializations for variable templates. llvm-svn: 359947
-
Saleem Abdulrasool authored
This was added to support FreeBSD. The inclusion of this header increases the size of `lldb-server` due to MCJIT being forcefully preserved. Conditionalise the inclusion to shared builds of LLVM which will allow for MCJIT to be stripped if unnecessary when performing static linking of tools. This shaves off ~28% of the binary size for lldb-server when linked with gold using `-ffunction-sections` and `-fdata-sections`. llvm-svn: 359944
-
Owen Pan authored
Fixes PR41213 Differential Revision: https://reviews.llvm.org/D61276 llvm-svn: 359943
-
Alexander Kornienko authored
The test shouldn't try to create `a.out` in the current directory, which can be read-only (and it is in our test setup). llvm-svn: 359942
-
Sanjay Patel authored
llvm-svn: 359941
-
Jessica Paquette authored
This saves us some unnecessary copies. If the inputs to a G_SELECT are floating point, we should use fcsel rather than csel. Changes here are... - Teach selectCopy about s1-to-s1 copies across register banks. - AArch64RegisterBankInfo about G_SELECT in general. - Teach the instruction selector about the FCSEL instructions. Also add two tests: - select-select.mir to show that we get the expected FCSEL - regbank-select.mir (unfortunately named) to show the register banks on G_SELECT are properly preserved And update fast-isel-select.ll to show that we do the same thing as other instruction selectors in these cases. llvm-svn: 359940
-
Craig Topper authored
Make the git-llvm script work on older git versions that don't support git rev-parse --git-common-dir. Not all versions of git support git rev-parse --git-common-dir. Rather than erorr or print any kind of useful error, they just print back '--git-common-dir' instead of a directory. The git-llvm script ends up taking this '--git-common-dir' as a diretory name to use. Not sure exactly what happens after that, but the end result is that the 'git llvm push' ends up looking like it pushed your commits, but really did nothing. This patch makes the script detect the bogus directory name for --git-common-dir and falls back to using --git-dir instead. llvm-svn: 359939
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D61534 llvm-svn: 359938
-
Stanislav Mekhanoshin authored
Also add some missing metadata in the streamer. Differential Revision: https://reviews.llvm.org/D61531 llvm-svn: 359937
-
Cameron McInally authored
Match both FNeg(X) and FSub(+-0.0, X) in FNeg_match Differential Revision: https://reviews.llvm.org/D61520 llvm-svn: 359936
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D61529 llvm-svn: 359935
-
Mandeep Singh Grang authored
Summary: Refer the ABI doc at: https://docs.microsoft.com/en-us/cpp/build/arm64-windows-abi-conventions?view=vs-2019#return-values Related clang patch: D60349 Reviewers: rnk, efriedma, TomTan, ssijaric Reviewed By: rnk, efriedma Subscribers: mstorsjo, javed.absar, kristof.beyls, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D60348 llvm-svn: 359934
-
Mandeep Singh Grang authored
Summary: Related llvm patch: D60348. Patch co-authored by Sanjin Sijaric. Reviewers: rnk, efriedma, TomTan, ssijaric, ostannard Reviewed By: efriedma Subscribers: dmajor, richard.townsend.arm, ostannard, javed.absar, kristof.beyls, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D60349 llvm-svn: 359932
-
Raphael Isemann authored
Ran clang-format on the added test file and use the new StringRef comparison over the temporary ConstStrings. Also aligned the end of one of the code string literals. llvm-svn: 359931
-
Jonas Devlieghere authored
Before this change the test would always pass if the path to the test contained the number 11 in it. Thanks to Ted for pointing this out. llvm-svn: 359930
-
Jonas Devlieghere authored
Now that the new website is live and everything is generated from the repository, we don't need the www folder anymore. llvm-svn: 359929
-
Jonas Devlieghere authored
This patch makes `re` an alias for `register`. Currently `re<TAB>` gives you the choice between `register` and `reproducer`. Given that you use `register` a lot more often, it should win for the common substring. Differential revision: https://reviews.llvm.org/D61469 llvm-svn: 359927
-