- Feb 20, 2020
-
-
Haojian Wu authored
Summary: libindex will canonicalize references to template instantiations: - 1) reference to an explicit template specialization, report the specializatiion - 2) otherwise, report the primary template but 2) is not true for incomplete instantiations, this patch fixes this. Fixes https://github.com/clangd/clangd/issues/287 Reviewers: kadircet Subscribers: ilya-biryukov, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D74830
-
Djordje Todorovic authored
This reverts commit rGfaff707d. A failure found on an ARM 2-stage buildbot. The investigation is needed.
-
Roman Lebedev authored
Summary: As @rsmith notes in https://reviews.llvm.org/D73020#inline-672219 while that is certainly UB land, it may not be actually reachable at runtime, e.g.: ``` template<int N> void *make() { if ((N & (N-1)) == 0) return operator new(N, std::align_val_t(N)); else return operator new(N); } void *p = make<7>(); ``` and we shouldn't really error-out there. That being said, i'm not really following the logic here. Which ones of these cases should remain being an error? Reviewers: rsmith, erichkeane Reviewed By: erichkeane Subscribers: cfe-commits, rsmith Tags: #clang Differential Revision: https://reviews.llvm.org/D73996
-
Konrad Kleine authored
Summary: The logic of the sentence made more sense when "with" is replaced with "without". Reviewers: labath Subscribers: lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D74895
-
Pavel Labath authored
It's just like debug_cu_index, only for type units.
-
Andrzej Warzynski authored
Re-arrange definitions related to loads and stores so that they are grouped together. This patch implements only non-functional changes.
-
Simon Pilgrim authored
GetDemandedBits mostly just calls SimplifyMultipleUseDemandedBits now, but it does a very blunt constant simplification that SimplifyMultipleUseDemandedBits avoids. If we need to demand bits from constants we should handle this through ShrinkDemandedConstant/targetShrinkDemandedConstant. @arsenm confirmed that the sign extended immediates are better for code size. Differential Revision: https://reviews.llvm.org/D74857
-
dfukalov authored
Summary: After updating cost model in AMDGPU target (47a5c36b) the pass started to ignore some BBs since they got all instructions estimated as free. Reviewers: arsenm, chandlerc, nhaehnle Reviewed By: nhaehnle Subscribers: jvesely, wdng, nhaehnle, tpr, hiraditya, kerbowa, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D74825
-
Roman Lebedev authored
Results in slightly better UX. This actually was the initial intent, but it kinda got lost along the way.
-
Mikhail Maltsev authored
Summary: This patch adds two families of ACLE intrinsics: vqdmullbq and vqdmulltq (including vector-vector and vector-scalar variants) and the corresponding LLVM IR intrinsics llvm.arm.mve.vqdmull and llvm.arm.mve.vqdmull.predicated. Reviewers: simon_tatham, MarkMurrayARM, dmgreen, ostannard Reviewed By: MarkMurrayARM Subscribers: kristof.beyls, hiraditya, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D74845
-
serge-sans-paille authored
At least on RHEL, ar outputs on stderr a message similar to .../bin/ar: creating t.a Which creates noise during the cmake step. Get rid of it. -
Luís Marques authored
Like was done before in D67999 for `logbf`, this patch fixes the tests for the internal compiler-rt implementations of `logb` and `logbl` to consider all NaNs equivalent. Not doing so was resulting in test failures for riscv64, since the the NaNs had different signs, but the spec doesn't specify the NaN signedness or payload. Fixes bug 44244. Reviewers: rupprecht, delcypher Reviewed By: rupprecht, delcypher Differential Revision: https://reviews.llvm.org/D74826
-
Pavel Labath authored
Change the return value of SymbolFileDWARF::DebugInfo from a pointer to a reference, and remove all null checks. Previously, we were not constructing the DebugInfo object when the debug_info section was empty. Now we always construct the object but it will return an empty list of dwarf units (a thing which it already supported).
-
Tamas Petz authored
Summary: This patch adds missing tests cases for R_ARM_THM_MOVW/MOVT* relocations for the sake of completeness. Reviewers: peter.smith, MaskRay, espindola, psmith Reviewed By: MaskRay, psmith Subscribers: psmith, danielkiss, emaste, kristof.beyls, llvm-commits Tags: #llvm, #lld Differential Revision: https://reviews.llvm.org/D74827
-
Johannes Doerfert authored
-
Johannes Doerfert authored
-
Johannes Doerfert authored
-
Raphael Isemann authored
Summary: Around a third of our test sources have LLVM license headers. This patch removes those headers from all test sources and also fixes any tests that depended on the length of the license header. The reasons for this are: * A few tests verify line numbers and will start failing if the number of lines in the LLVM license header changes. Once I landed my patch for valid SourceLocations in debug info we will probably have even more tests that verify line numbers. * No other LLVM project is putting license headers in its test files to my knowledge. * They make the test sources much more verbose than they have to be. Several tests have longer license headers than the actual test source. For the record, the following tests had their line numbers changed to pass with the removal of the license header: lldb-api :: functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py lldb-shell :: Reproducer/TestGDBRemoteRepro.test lldb-shell :: Reproducer/TestMultipleTargets.test lldb-shell :: Reproducer/TestReuseDirectory.test lldb-shell :: ExecControl/StopHook/stop-hook-threads.test lldb-shell :: ExecControl/StopHook/stop-hook.test lldb-api :: lang/objc/exceptions/TestObjCExceptions.py Reviewers: #lldb, espindola, JDevlieghere Reviewed By: #lldb, JDevlieghere Subscribers: emaste, aprantl, arphaman, JDevlieghere, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D74839 -
Alexander Belyaev authored
-
serge-sans-paille authored
Use a dedicated cmake file to store the extension configured within LLVM. That way, a standalone build of clang can load this cmake file and get all the configured standalone extensions. This patch is related to https://reviews.llvm.org/D74602 Differential Revision: https://reviews.llvm.org/D74757
-
Fangrui Song authored
A future MC change may add a warning/error when a .section directive specifies incorrect sh_flags/sh_type.
-
Hideto Ueno authored
Summary: As mentioned in D71974, it is useful for must-be-executed-context to explore CFG backwardly. This patch is ported from parts of D64975. We use a dominator tree to find the previous context if a dominator tree is available. Reviewers: jdoerfert, hfinkel, baziotis, sstefan1 Reviewed By: jdoerfert Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D74817
-
Johannes Doerfert authored
-
Johannes Doerfert authored
-
Johannes Doerfert authored
We can look through calls with `returned` argument attributes when we collect subsuming positions. This allows us to get existing attributes from more places.
-
Johannes Doerfert authored
-
Matt Arsenault authored
This was checking for default operands in the current DAG instruction, rather than the correct result operand list. I'm not entirly sure how this managed to work before, but was failing for me when multiple default operands were overridden.
-
Johannes Doerfert authored
We are often interested in an assumed constant and sometimes it has to be an integer constant. Before we only looked for the latter, now we can ask for either.
-
Johannes Doerfert authored
If we propagate function pointers across function boundaries we can create new call edges. These need to be represented in the CG if we run as a CGSCC pass. In the new pass manager that is currently not handled by the CallGraphUpdater so we need to prevent the situation for now.
-
Jonas Devlieghere authored
As pointed out on lldb-commits this skipIfRemote is the better fit for the decorator.
-
Johannes Doerfert authored
We usually will ask for liveness of an argument anyway so we ended up lazily creating the attribute anyway. However, that is not always the case and even if it is we should go the eager route here. Various tests show how this can improve the outcome. One test exposed a problem with type mismatches between argument and call site argument, a fix is included. For liveness various more tests were added as well.
-
Lang Hames authored
-
Lang Hames authored
-
Johannes Doerfert authored
If a function pointer is casted into a different type the resulting expression can be a constant. If so, it can be used multiple times which cannot be handled by the AbstractCallSite constructor alone. Instead, we follow the cast expression uses now explicitly during the call site traversal.
-
Douglas Yung authored
The change added a test that required exceptions, so enable that explicitly so that it works on platforms that default to having exceptions disabled (like the PS4).
-
Sourabh Singh Tomar authored
-
Igor Kudrin authored
The comment described a linked CIE to be acquired lazily. That is not true and looks like it was never true. Differential Revision: https://reviews.llvm.org/D74761
-
Igor Kudrin authored
The CIE pointer field of an FDE record contains an offset to a corresponding CIE record. In object files, this value comes with relocation because the value has to be fixed when a linker combines the final section from multiple sources. In most object files there is only one CIE record at offset 0 of the .debug_frame section, so reading a relocated or a raw value makes no difference. However, in partially linked object files there are multiple CIE records and the relocations should be applied to recover the right offset value. Differential Revision: https://reviews.llvm.org/D74612
-
Nico Weber authored
-
Sam Clegg authored
Differential Revision: https://reviews.llvm.org/D74110
-