- May 04, 2019
-
-
Nico Weber authored
Makes clang/test/Misc/backend-stack-frame-diagnostics-fallback.cpp fail. llvm-svn: 359912
-
Simon Pilgrim authored
Also reduce scope of Temp variable. llvm-svn: 359911
-
Gheorghe-Teodor Bercea authored
Summary: The bug was reported on the OpenMP-dev list: .../obj-release/lib/clang/9.0.0/include/__clang_cuda_intrinsics.h:173:35: error: '__nvvm_shfl_sync_idx_i32' needs target feature ptx60|ptx61|ptx63|ptx64 __MAKE_SYNC_SHUFFLES(__shfl_sync, __nvvm_shfl_sync_idx_i32, This problem occurs when trying to compile a .cu file that requires a newer ptx version (>ptx60 in this case) than ptx42. Reviewers: tra, ABataev, caomhin Reviewed By: tra Subscribers: jdoerfert, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D61474 llvm-svn: 359910
-
Don Hinton authored
Summary: By default, `parseCommandLineOptions()` will accept either a `-` or `--` prefix for long options -- options with names longer than a single character. While this change does not affect behavior, it will be helpful with a subsequent change that requires long options use the `--` prefix. Reviewers: rnk, thopre Reviewed By: thopre Subscribers: thopre, cfe-commits, hiraditya, llvm-commits Tags: #llvm, #clang Differential Revision: https://reviews.llvm.org/D61269 llvm-svn: 359909
-
Evgeniy Stepanov authored
This reverts commit r359879, which introduced a compiler crash. llvm-svn: 359908
-
Nico Weber authored
See discussion on https://reviews.llvm.org/D48292 llvm-svn: 359907
-
Matt Arsenault authored
Add an improved/new heuristic to catch more cases when values are not live out of a basic block. Patch by Matthias Braun llvm-svn: 359906
-
Brian Cain authored
For immediates that can't be evaluated in assembler-mapped instructions, we should return 'invalid operand' instead of assert. llvm-svn: 359905
-
Yonghong Song authored
Fix the values of BPF_X and BPF_K according to BPFInstrFormats.td: " def BPF_K : BPFSrcType<0x0>; def BPF_X : BPFSrcType<0x1>; " The right value for BPF_X is 0x1, and the right value for BPF_K is 0x0. Signed-off-by:
Wang YanQing <udknight@gmail.com> Differential Revision: https://reviews.llvm.org/D61512 llvm-svn: 359904
-
Craig Topper authored
[X86] Allow assembly parser to accept x/y/z suffixes on non-memory vfpclassps/pd and on memory forms in intel syntax The x/y/z suffix is needed to disambiguate the memory form in at&t syntax since no xmm/ymm/zmm register is mentioned. But we should also allow it for the register and broadcast forms where its not needed for consistency. This matches gas. The printing code will still only use the suffix for the memory form where it is needed. llvm-svn: 359903
-
Don Hinton authored
[llvm] Revert r231274: "Devirtualize ~parser<T> by making it protected in base classes and making derived classes final" Summary: This patch was previously applied in r231221, and reverted in r231254 because it broke self-hosting. It was subsequently fixed and reapplied in r231274. Unfortunately, making the `parser<T>` classes final prevents inheritance which makes it impossible to implement custom parsers. Reverting r231221 restores the ability to customize parsers. Reviewers: dblaikie Reviewed By: dblaikie Subscribers: craig.topper, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D60955 llvm-svn: 359902
-
- May 03, 2019
-
-
Simon Pilgrim authored
Merge the if() tests for the various HADD/SUB + Subtarget tests llvm-svn: 359901
-
Simon Pilgrim authored
We shouldn't use an iterator to loop across a std::vector when the same loop is adding elements to that std::vector Found by cppcheck llvm-svn: 359900
-
Matt Arsenault authored
The VOP3 form should always be the preferred selection form to be shrunk later. The r600 sub test needs to be split out because it asserts on the arguments in the new test during the calling convention lowering. llvm-svn: 359899
-
Matt Arsenault authored
Avoids test regression in a future patch llvm-svn: 359898
-
Robert Lougher authored
llvm-svn: 359897
-
Sanjay Patel authored
This was originally part of D61419. llvm-svn: 359896
-
Matt Arsenault authored
llvm-svn: 359895
-
Matt Arsenault authored
There were 2 patterns for sub, one selecting to sub and one to subrev. Only one of these will succeed, so remove the reversed one. llvm-svn: 359894
-
Matt Arsenault authored
llvm-svn: 359893
-
Alexey Bataev authored
Summary: Used parallelLevel[] counter to simplify and improve implementation of the existing standard OpenMP functions. Functions are tested already in several tests, the patch is NFC. Reviewers: grokos, gtbercea, kkwli0 Subscribers: guansong, jdoerfert, caomhin, openmp-commits Tags: #openmp Differential Revision: https://reviews.llvm.org/D61459 llvm-svn: 359892
-
Matt Arsenault authored
This was broken if the original operand was killed. The kill flag would appear on both instructions, and fail the verifier. Keep the kill flag, but remove the operands from the old instruction. This has an added benefit of really reducing the use count for future folds. Ideally the pass would be structured more like what PeepholeOptimizer does to avoid this hack to avoid breaking instruction iterators. llvm-svn: 359891
-
Simon Pilgrim authored
Only ever used in one block llvm-svn: 359890
-
Simon Pilgrim authored
llvm-svn: 359889
-
Nico Weber authored
llvm-svn: 359888
-
Sid Manning authored
This will match gnu strip's behavior. Differential Revision: https://reviews.llvm.org/D61092 llvm-svn: 359887
-
Simon Pilgrim authored
Noticed while reviewing D61472 llvm-svn: 359886
-
Matt Arsenault authored
llvm-svn: 359885
-
Simon Pilgrim authored
Prefer ((X & Y) ? A : B) to (X & Y ? A : B) llvm-svn: 359884
-
Matt Arsenault authored
When a fold of an immediate into a sub/subrev required shrinking the instruction, the wrong VOP2 opcode was used. This was using the VOP2 equivalent of the original instruction, not the commuted instruction with the inverted opcode. llvm-svn: 359883
-
Matt Arsenault authored
This should run the verifier, and needs to enable trackRegLiveness. llvm-svn: 359882
-
Sanjay Patel authored
llvm-svn: 359881
-
Sam McCall authored
Summary: Both of these attempt to check whether a header guard exists while parsing the file. However the file is only marked as guarded once clang finishes processing it. We defer the checks and work until SymbolCollector::finish(). This is ugly and ad-hoc, deferring *all* work might be cleaner. Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, mgrang, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D61442 llvm-svn: 359880
-
Sanjay Patel authored
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. Also, we were restarting the iterator loops when doing the overflow intrinsic transforms by marking the dominator tree for update. That was done to prevent iterating over a removed instruction. But we can postpone the deletion using the existing "RemovedInsts" structure, and that means we don't need to update the DT. 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: 359879
-
Sean Fertile authored
Patch adds support for dumping of file headers with llvm-readobj. XCOFF object files are added to test dumping a well formed file, and dumping both negative timestamps and negative symbol counts, both of which are allowed in the XCOFF definition. Differential Revision: https://reviews.llvm.org/D60878 llvm-svn: 359878
-
Simon Pilgrim authored
Avoid duplicated EVTs and rename Store/Load VTs to avoid -Wshadow warnings. llvm-svn: 359877
-
Dmitri Gribenko authored
Reviewers: alexfh Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D61480 llvm-svn: 359876
-
Anton Afanasyev authored
This reverts commit 9c20156d. It breaks stage 2 of clang-ppc64be-linux-multistage. llvm-svn: 359875
-
Kadir Cetinkaya authored
Summary: clangd currently prefers declarations from codegen files. This patch implements that behavior for definition locations. If we have definiton locations both coming from AST and index, clangd will perform a merging to show the codegen file if that's the case. Reviewers: sammccall Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D61126 llvm-svn: 359874
-
Simon Pilgrim authored
llvm-svn: 359873
-