This project is mirrored from https://github.com/llvm/llvm-project.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
- Feb 04, 2022
-
-
John Ericson authored
- If not using `llvm-config`, `LLVM_MAIN_SRC_DIR` now has a sane default - `LLVM_CONFIG_PATH` will continue to work for LLD for back compat. - More quoting of paths in an abundance of caution. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D118792
-
River Riddle authored
-
Zequan Wu authored
This attempts to fix this bot failure: https://lab.llvm.org/buildbot/#/builders/83/builds/14736 caused by D118750 by un-xfail those expected failed tests. Differential Revision: https://reviews.llvm.org/D118866
-
Caroline Concatto authored
In AArch64ISelLowering.cpp this patch implements this fold: 1) GEP (%ptr, SHL ((stepvector(A) + splat(%offset))) << splat(B))) into GEP (%ptr + (%offset << B), step_vector (A << B)) The above transform simplifies the index operand so that it can be expressed as i32 elements. This allows using only one gather/scatter assembly instruction instead of two. Patch by Paul Walker (@paulwalker-arm). Depends on D117900 Differential Revision: https://reviews.llvm.org/D118345
-
Florian Mayer authored
Differential Revision: https://reviews.llvm.org/D118865
-
Keith Smiley authored
This seems to have been moved so the second use is invalid on Linux but not macOS
-
Florian Mayer authored
this improves code clarity.
-
Caroline Concatto authored
In AArch64ISelLowering.cpp this patch implements this fold: GEP (%ptr, (splat(%offset) + stepvector(A))) into GEP ((%ptr + %offset), stepvector(A)) The above transform simplifies the index operand so that it can be expressed as i32 elements. This allows using only one gather/scatter assembly instruction instead of two. Patch by Paul Walker (@paulwalker-arm). Depends on D118459 Differential Revision: https://reviews.llvm.org/D117900
-
River Riddle authored
This matches the structure of other dialects, and also removes unnecessary dependencies from the core dialect lib.
-
Mahesh Ravishankar authored
Reorder the methods and patterns to move related patterns/methods closer (textually). Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D118870
-
Dmitry Vyukov authored
This fixes the following error: sanitizer_interface_internal.h:77:7: error: conflicting types for '__sanitizer_get_module_and_offset_for_pc' int __sanitizer_get_module_and_offset_for_pc( common_interface_defs.h:349:5: note: previous declaration is here int __sanitizer_get_module_and_offset_for_pc(void *pc, char *module_path, I am getting it on a code that uses sanitizer_common (includes internal headers), but also transitively gets includes of the public headers in tests via an internal version of gtest. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D118910
-
mydeveloperday authored
https://github.com/llvm/llvm-project/issues/53567 The following source ``` namespace A { template <int N> struct Foo<char[N]> { void foo() { std::cout << "Bar"; } }; // namespace A ``` is incorrectly formatted as: ``` namespace A { template <int N> struct Foo<char[N]>{void foo(){std::cout << "Bar"; } } ; // namespace A ``` This looks to be caused by https://github.com/llvm/llvm-project/commit/5c2e7c9ca043d92bed75b08e653fb47c384edd13 Reviewed By: curdeius Differential Revision: https://reviews.llvm.org/D118911
-
Keith Smiley authored
This more closely mirrors apple's libtool, and also potentially makes it clearer for multi-arch archives where the issue lies. Differential Revision: https://reviews.llvm.org/D118867
-
Joseph Huber authored
This patch adds more documentation for the OpenMP offloading driver. This includes a new file that describes the overall pipeline becuase that was not previously explained in full elsewhere. Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D118815
-
Amir Ayupov authored
Refactor comments in CommandLine.h to follow the Coding Style rule Reviewed By: MaskRay, serge-sans-paille Differential Revision: https://reviews.llvm.org/D118859
-
Marek Kurdej authored
Fixes https://github.com/llvm/llvm-project/issues/42087. Reviewed By: HazardyKnusperkeks, owenpan Differential Revision: https://reviews.llvm.org/D118879
-
Marek Kurdej authored
[clang-format] Avoid adding space after the name of a function-like macro when the name is a keyword. Fixes https://github.com/llvm/llvm-project/issues/31086. Before the code: ``` #define if(x) ``` was erroneously formatted to: ``` #define if (x) ``` Reviewed By: HazardyKnusperkeks, owenpan Differential Revision: https://reviews.llvm.org/D118844
-
Craig Topper authored
Add -target-abi to sextw-removal.ll RUN lines to show benefit on new test case.
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D118860
-
Sanjay Patel authored
D116804 proposes to alter codegen on this example based on CPU tuning, so check a variety of models to confirm it works as expected. We already have this test mixed in with several others in another test file, but it seems wasteful to add so many RUN lines to check this difference over and over again.
-
Sanjay Patel authored
A proposed change ( D118843 ) that would affect this test will not require a specific CPU model to show a difference.
-
Florian Mayer authored
we currently only have a test at the clang level Reviewed By: morehouse Differential Revision: https://reviews.llvm.org/D118856
-
Mircea Trofin authored
This reverts commit bc3b3721. The planned change that would have needed non-const MachineFunction refs isn't needed after all.
-
Philip Reames authored
-
Pavel Labath authored
-
Thomas Symalla authored
In some cases, when selecting a (trunc (slr)) pattern, the slr gets translated to a v_lshrrev_b3e2_e64 instruction whereas the truncation gets selected to a sequence of v_and_b32_e64 and v_cmp_eq_u32_e64. In the final ISA, this appears as selecting the nth-bit: v_lshrrev_b32_e32 v0, 2, v1 v_and_b32_e32 v0, 1, v0 v_cmp_eq_u32_e32 vcc_lo, 1, v0 However, when the value used in the right shift is known at compilation time, the whole sequence can be reduced to two VALUs when the constant operand in the v_and is adjusted to (1 << lshrrev_operand): v_and_b32_e32 v0, (1 << 2), v1 v_cmp_ne_u32_e32 vcc_lo, 0, v0 In the example above, the following pseudo-code: v0 = (v1 >> 2) v0 = v0 & 1 vcc_lo = (v0 == 1) would be translated to: v0 = v1 & 0b100 vcc_lo = (v0 == 0b100) which should yield an equivalent result. This is a little bit hard to test as one needs to force the SelectionDAG to contain the nodes before instruction selection, but the test sequence was roughly derived from a production shader. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D118461
-
Chris Lattner authored
Some translations do work with unregistered dialects, this allows one to write testcases against them. It works the same way as it does for mlir-opt. Differential Revision: https://reviews.llvm.org/D118872
-
Sunho Kim authored
This teaches AArch64TargetLowering::shouldSinkOperands to sink the operands of aarch64_neon_pmull intrinsic. Differential Revision: https://reviews.llvm.org/D117944
-
Augie Fackler authored
This appears to have all the same attributes as many other functions in this file, and I think the use of INACCESSIBLEMEMONLY_NOFREE_NOUNWIND instead of INACCESSIBLEMEMONLY_NOFREE_NOUNWIND_WILLRETURN was an oversight that meant aligned_alloc's attributes were just going unchecked. This patch corrects the test defect and now the attributes inferred on aligned_alloc are actually validated, and the test still passes. Differential Revision: https://reviews.llvm.org/D117922
-
Augie Fackler authored
-
Augie Fackler authored
-
Craig Topper authored
Based on the discussion in D61884, this was done to enable compressed instructions by giving freedom to pick a compressible register. Integer materializing can generate LUI, ADDI, ADDIW, SLLI and some Zb* instructions. C.LI, C.LUI, C.ADDI, C.ADDIW, and C.SLLI all have a 5-bit register encoding. The Zb* instructions aren't compressible. Based on that I don't think compressibility of the register is a concern. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D118741
-
Kadir Cetinkaya authored
Clang-format LLVM style has a custom include category for gtest/ and gmock/ headers between regular includes and angled includes. Do the same here. Fixes https://github.com/llvm/llvm-project/issues/53525. Differential Revision: https://reviews.llvm.org/D118913
-
Craig Topper authored
SPLAT_VECTOR_I64 has the same semantics as RISCVISD::VMV_V_X_VL, it just assumed VLMax instead of carrying a VL operand. Include order of RISCVInstrInfoVSDPatterns.td and RISCVInstrInfoVVLPatterns.td has been swapped to avoid moving riscv_vmv_v_x_vl into RISCVInstrInfoVSDPatterns.td and to allow moving other "_vl" SDNodes back to RISCVInstrInfoVVLPatterns.td Reviewed By: frasercrmck Differential Revision: https://reviews.llvm.org/D118841
-
Augie Fackler authored
This is in anticipation of my next patch, where I need to store more information about free functions than just their argument count. It felt invasive enough on this function that it seemed worthwhile to just extract this as its own commit that makes no functional changes. Differential Revision: https://reviews.llvm.org/D117350
-
Jay Foad authored
Always set uniform metadata on the pointer if it is an instruction, but otherwise do not bother to create a trivial getelementptr instruction, because AMDGPUInstrInfo::isUniformMMO can already detect that various non-instruction pointers are uniform. Most of the test case churn is from tests that used undef as a pointer, which AMDGPUInstrInfo::isUniformMMO treats as uniform. Differential Revision: https://reviews.llvm.org/D118909
-
Bixia Zheng authored
Replace the Python implementation for reading tensor input data from files with create_sparse_tensor that uses sparse_tensor.new. The MLIR TNS format has two extra meta data lines. Add the extra meta data to a test data file. Implement TACO tensor methods evaluate and unpack. Add unit tests. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D118803
-
Abhishek Varma authored
-- This commit adds a canonicalization pattern on scf.while to remove the loop invariant arguments. -- An argument is considered loop invariant if the iteration argument value is the same as the corresponding one being yielded (at the same position) in both the before/after block of scf.while. -- For the arguments removed, their use within scf.while and their corresponding scf.while's result are replaced with their corresponding initial value. Signed-off-by:
Abhishek Varma <abhishek.varma@polymagelabs.com> Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D116923
-
Jay Foad authored
Tweak some of the tests to demonstrate AMDGPUAnnotateUniformValues::visitLoadInst inserting a trivial getelementptr instruction, just to have somewhere to put amdgpu.uniform metadata. NFC.
-
LLVM GN Syncbot authored
-