- May 02, 2017
-
-
Pavel Labath authored
Summary: If we have symbol information in a separate file, we need to be very careful about presenting a unified section view of module to the rest of the debugger. ObjectFileELF had code to handle that, but it was being overly cautious -- the section->GetFileSize()!=0 meant that the unification would fail for sections which do not occupy any space in the object file (e.g., .bss). In my case, that manifested itself as not being able to display the values of .bss variables properly as the section associated with the variable did not have it's load address set (because it was not present in the unified section list). I test this by making sure the unified section list and the variables refer to the same section. Reviewers: eugene, zturner Subscribers: tberghammer, lldb-commits, mgorny Differential Revision: https://reviews.llvm.org/D32434 llvm-svn: 301917
-
Daniel Jasper authored
It leads to clang crashing, e.g. on this short code fragment (added to test/SemaCXX/warn-thread-safety-parsing.cpp): class SomeClass { public: void foo() { auto l = [this] { auto l = [] EXCLUSIVE_LOCKS_REQUIRED(mu_) {}; }; } Mutex mu_; }; llvm-svn: 301916 -
Simon Pilgrim authored
llvm-svn: 301915
-
Haojian Wu authored
Reviewers: ioeric Reviewed By: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D32741 llvm-svn: 301914
-
Daniel Marjamaki authored
Differential Revision: https://reviews.llvm.org/D31650 llvm-svn: 301913
-
Simon Pilgrim authored
Use getConstantOperandVal where possible. llvm-svn: 301912
-
Simon Pilgrim authored
llvm-svn: 301911
-
Simon Pilgrim authored
PR31088 demonstrated that we were assuming that only integers require promotion from <1 x iX> types, when in fact float types may require it as well - in this case half floats. This patch adds support for extension/truncation for both integer and float types. Differential Revision: https://reviews.llvm.org/D32391 llvm-svn: 301910
-
Pierre Gousseau authored
llvm-svn: 301909
-
Pavel Labath authored
Summary: UniqueCStringMap "sorts" the entries for fast lookup, but really it only cares about uniqueness. ConstString can be compared by pointer alone, rather than with strcmp, resulting in much faster comparisons. Change the interface to take ConstString instead, and propagate use of the type to the callers where appropriate. Reviewers: #lldb, clayborg Reviewed By: clayborg Subscribers: labath, jasonmolenda, lldb-commits Differential Revision: https://reviews.llvm.org/D32316 Patch by Scott Smith <scott.smith@purestorage.com>. llvm-svn: 301908
-
Simon Pilgrim authored
The existing code only looks at half of the tree when matching bswap + rol patterns ending in an OR tree (as opposed to a cascade). Patch originally introduced by Jim Lewis. Submitted on the behalf of Dinar Temirbulatov. Differential Revision: https://reviews.llvm.org/D32039 llvm-svn: 301907
-
Emilio Cobos Alvarez authored
llvm-svn: 301906
-
Diana Picus authored
Emit and use the TableGen instruction selector for ARM. At the moment, this allows us to remove the hand-written code for selecting G_SDIV and G_UDIV. Future commits will focus on increasing the code coverage for it and removing more dead code from the current instruction selector. llvm-svn: 301905
-
Pierre Gousseau authored
Differential Revision: https://reviews.llvm.org/D31457 llvm-svn: 301904
-
Pavel Labath authored
Summary: It is simply unused, and the header for it is private, so there should be no external dependencies. Reviewers: #lldb, zturner Reviewed By: zturner Subscribers: zturner, tberghammer, jingham, lldb-commits Differential Revision: https://reviews.llvm.org/D32503 Patch by Scott Smith <scott.smith@purestorage.com>. llvm-svn: 301903
-
Emilio Cobos Alvarez authored
Differential Revision: https://reviews.llvm.org/D32566 llvm-svn: 301902
-
Craig Topper authored
I think this method is probably too complex to be inlined. llvm-svn: 301901
-
Craig Topper authored
This makes setBit/clearBit more consistent with setBits which is already inlined. llvm-svn: 301900
-
Xinliang David Li authored
Makes code more readable. The function will also be used by the partial inlining's cost analysis. llvm-svn: 301899
-
NAKAMURA Takumi authored
MicrosoftRecordLayoutBuilder doesn't have ability of -Wpadded. FIXME: Would other diag be available here? llvm-svn: 301898
-
Peter Collingbourne authored
If there is a bug in the LTO implementation that causes it to fail to provide an expected symbol definition, the linker should report an undefined symbol error. Unfortunately, we were failing to do so if the symbol definition was weak, as the undefine() function was turning the definition into a weak undefined symbol, which resolves to zero if the symbol remains undefined. This patch causes us to set the binding to STB_GLOBAL when we undefine a symbol. I can't see a good way to test this. The behaviour should only be observable if there is a bug in the LTO implementation. Differential Revision: https://reviews.llvm.org/D32731 llvm-svn: 301897
-
Rui Ueyama authored
llvm-svn: 301896
-
Rui Ueyama authored
It didn't have to be a member function of Driver. This patch makes that function a file-scoped non-member function. llvm-svn: 301895
-
Xinliang David Li authored
Differential Revision: http://reviews.llvm.org/D32666 llvm-svn: 301894
-
Dylan McKay authored
A recent commit I made made it so that we only did this for signal or interrupt handlers. This broke normal functions. llvm-svn: 301893
-
Nemanja Ivanovic authored
Fixes PR30730. This is a re-commit of a pulled commit. The commit was pulled because some software projects contained uses of Altivec vectors that violated alignment requirements. Known issues have now been fixed. Committing on behalf of Lei Huang. Differential Revision: https://reviews.llvm.org/D26861 llvm-svn: 301892
-
Nick Lewycky authored
The fix is that ExprEvaluatorBase::VisitInitListExpr should handle transparent exprs instead of exprs with one element. Fixing that uncovers one testcase failure because the AST for "constexpr _Complex float test2 = {1};" is wrong (the _Complex prvalue should not be const-qualified), and a number of test failures in test/OpenMP where the captured stmt contains an InitListExpr that is in syntactic form. llvm-svn: 301891 -
Ahmed Bougacha authored
r288279 mistakenly added it to all arches, but it's only available from v8.1 onwards. The testcase is awkward, because (I suspect) of PR32873. Spotted by inspection. llvm-svn: 301890
-
Kostya Serebryany authored
llvm-svn: 301889
-
Kostya Serebryany authored
llvm-svn: 301888
-
Dylan McKay authored
Because it was a callee-saved register, we automatically generated code to spill and unspill its original value so that it is restored after the function returns. The problem is that this code was being generated before the epilogue. The epilogue itself uses the Y register, which could be prematurely restored by the CSR restoration process. This removes R29R28 from the CSR list and changes the prologue/epilogue code to handle it explicitly. llvm-svn: 301887
-
George Burgess IV authored
This change caused buildbot failures, apparently because we're not passing around types that InstSimplify is used to seeing. I'm not overly familiar with InstSimplify, so I'm reverting this until I can figure out what exactly is wrong. llvm-svn: 301885
-
Paul Robinson authored
Rename parameters and locals to CamelCase, doxygenize the header, and run clang-format on the whole thing. llvm-svn: 301883
-
Zachary Turner authored
Differential Revision: https://reviews.llvm.org/D32716 llvm-svn: 301882
-
Dylan McKay authored
This is a temporary measure while we figure out a way to get the frame pointer working correctly. llvm-svn: 301881
-
George Burgess IV authored
In particular (since it wouldn't fit nicely in the summary): (select (icmp eq V 0) P (getelementptr P V)) -> (getelementptr P V) Differential Revision: https://reviews.llvm.org/D31435 llvm-svn: 301880
-
Simon Pilgrim authored
[X86] Reduce code for setting operations actions by merging into loops across multiple types/ops. NFCI. llvm-svn: 301879
-
Xin Tong authored
llvm-svn: 301878
-
Davide Italiano authored
llvm-svn: 301877
-
Peter Collingbourne authored
llvm-svn: 301852
-