- Aug 23, 2022
-
-
Jay Foad authored
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D132409
-
Guillaume Chatelet authored
-
Matthias Springer authored
Affine exprs compose better than arith ops. Differential Revision: https://reviews.llvm.org/D132456
-
Chuanqi Xu authored
Previously when I wrote this document, I felt the completed scripts was lengthy, redundant and not easy to read. So I didn't add complete examples in the previous commit. However, in the recent discussion with @avogelsgesang, I found people may not know how to use debugging scripts to improve their debugging efficiency. So now, I feel like it is helpful to put the examples even if they are a little bit long. Test Plan: make docs-clang-html Reviewed By: avogelsgesang Differential Revision: https://reviews.llvm.org/D132451
-
Simon Pilgrim authored
This patch proposes to move the llvm::detail::PopulationCounter internal helpers into ADT/bit.h and provide a llvm::popcount implementation. I've left the countPopulation implementation in place in MathExtras.h for now, but updated it to use llvm::popcount. Hopefully I've got the type_traits correct - I don't use them very often. Someday we'll move to C++20 with an actual <bit> std header, and we already have this header in place to simplify matters. We'd probably benefit from moving the other <bit> helpers here at some point, but this is a first step. Differential Revision: https://reviews.llvm.org/D132407
-
Denis Antrushin authored
CodeGenPrepare pass can sink pointer comparison across statepoint to the point of use (see comment in IR/SafepointIRVerifier.cpp) Due to specifics of statepoints, it is still legal to have tied def and use rewritten to the same register in TwoAddress pass. However, properly updating LiveIntervals and LiveVariables becomes complicated. For simplicity, let's fall back to generic handling of tied registers when we detect such case. TODO: This fixes functional (assertion) failure. Ideally we should try to recompute new live range/liveness in place. Reviewed By: skatkov Differential Revision: https://reviews.llvm.org/D132255
-
Florian Hahn authored
The argument is no longer used, remove it.
-
gonglingqin authored
When AtomicOrdering is release or stronger, use amswap_db.[w/d] $zero, $a1, $a0 instead of dbar 0 st.[w/d] $a0, $a1, 0 Thanks to @xry111 for the suggestion: https://reviews.llvm.org/D128901#3626635 Differential Revision: https://reviews.llvm.org/D129838 -
Graham Hunter authored
-
Guray Ozen authored
This revision deletes LinalgStrategyGeneralizePass. Context: https://discourse.llvm.org/t/psa-retire-linalg-filter-based-patterns/63785 Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D132363
-
Dmitry Makogon authored
The test fails not because of undef, so replacing with normal condition.
-
Guray Ozen authored
This revision removes the Linalg generic interchange pattern and pass. It also changes transform-patterns test to make use of transform dialect. Context: https://discourse.llvm.org/t/psa-retire-linalg-filter-based-patterns/63785 Differential Revision: https://reviews.llvm.org/D132368
-
Balázs Kéri authored
A FriendDecl node can have a friend record type that owns a RecordDecl object. This object is different than the one got from TypeSourceInfo object of the FriendDecl. When building a ParentMapContext this owned tag decaration has to be encountered to have the parent set for it. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D131685
-
Adrian Kuegel authored
The "real" method declaration is in LinalgInterfaces.h Differential Revision: https://reviews.llvm.org/D132227
-
liaochunyu authored
warning: unused variable ‘FC’ Reviewed By: kazu Differential Revision: https://reviews.llvm.org/D132429
-
LLVM GN Syncbot authored
-
Weining Lu authored
With the initial support added, clang can compile `helloworld` C to executable file for loongarch64. For example: ``` $ cat hello.c int main() { printf("Hello, world!\n"); return 0; } $ clang --target=loongarch64-unknown-linux-gnu --gcc-toolchain=xxx --sysroot=xxx hello.c ``` The output a.out can run within qemu or native machine. For example: ``` $ file ./a.out ./a.out: ELF 64-bit LSB pie executable, LoongArch, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-loongarch-lp64d.so.1, for GNU/Linux 5.19.0, with debug_info, not stripped $ ./a.out Hello, world! ``` Currently gcc toolchain and sysroot can be found here: https://github.com/loongson/build-tools/releases/download/2022.08.11/loongarch64-clfs-5.1-cross-tools-gcc-glibc.tar.xz Reference: https://github.com/loongson/LoongArch-Documentation The last commit hash (main branch) is: 99016636af64d02dee05e39974d4c1e55875c45b Note loongarch32 is not fully tested because there is no reference gcc toolchain yet. Differential Revision: https://reviews.llvm.org/D130255 -
Carlos Alberto Enciso authored
For bootstrap builds (CLANG_ENABLE_BOOTSTRAP=ON) allow arguments to be passed to the native tool used in CMake for the stage2 step. Can be used to pass extra arguments for enhanced versions of build tools, e.g. distributed build options. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D131665
-
Kazushi (Jam) Marukawa authored
Support inline asm memory operand for VE. Add regression tests also. Reviewed By: efocht Differential Revision: https://reviews.llvm.org/D132380
-
liqinweng authored
Reviewed By: jacquesguan Differential Revision: https://reviews.llvm.org/D132093
-
liqinweng authored
Reviewed By: kazu Differential Revision: https://reviews.llvm.org/D131886
-
Jakub Kuderski authored
`llvm::all_equal` checks if all values in the given range are equal, i.e., there are no two elements that are not equal. Similar to `llvm::all_of`, it returns `true` when the range is empty. `llvm::all_equal` is intended to supersede `llvm::is_splat`, which will be deprecated and removed in future patches. See the discussion thread for more details: https://discourse.llvm.org/t/adt-is-splat-and-empty-ranges/64692. Reviewed By: dblaikie, shchenz Differential Revision: https://reviews.llvm.org/D132334
-
owenca authored
Fixes #54522. Fixes #57158. Differential Revision: https://reviews.llvm.org/D132001
-
Stanley Winata authored
- Add spv.store instead of init for spv.variable to fix data issues in some GPU drivers Reviewed By: antiagainst Patch By: raikonenfnu Differential Revision: https://reviews.llvm.org/D132427
-
Stanley Winata authored
Reviewed By: antiagainst Patch By: raikonenfnu Differential Revision: https://reviews.llvm.org/D132424
-
Phoebe Wang authored
Since we have enabled the support for `_Float16` on SSE2, we can relax the limitation for AVX512FP16 now. This helps for user to use AVX512FP16 mixed with unsupported versions, e.g., multiversioning. Also fix lit fails due to missing const modifier. Found during this change. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D132342
-
Chenbing Zheng authored
-
Nico Weber authored
-
Jan Svoboda authored
This patch introduces new option `-eager-load-pcm` to `clang-scan-deps`, which controls whether the resulting command-lines will load PCM files eagerly (at the start of compilation) or lazily (when handling import directive). This patch also switches the default from eager to lazy. To reduce the potential for churn in LIT tests in the future, this patch also removes redundant checks of command-line arguments and introduces new test `modules-dep-args.c` as a substitute. Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D132066
-
Dave Lee authored
When a type has a summary and synthetic child provider, the children are shown only if `--expand`/`-e` is given. This updates `lldbDataFormatters.py` to expand children of types that have both a summary and synthetic children. Differential Revision: https://reviews.llvm.org/D132095
-
jackalcooper authored
Fix incorrect pointer usage in Vulkan buffer and Memref descriptor binding: - Vulkan runtime produced incorrect result if there is alignment. - There was illegal memory access if binding a LLVM global materialized from a constant op (0xdeadbeef). Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D132291
-
Jacques Pienaar authored
Default attributes were only handled by ODS accessors generated with the intention that these behave as if set attributes. This addresses the long standing TODO to address this inconsistency. Moving the initialization to construction vs every access. Removing need for duplicated default attribute population in python bindings. Switch some of the OpenMP ones to optional attribute with default as the currently set default values are not legal. May need to dig more there. Switched LinAlg generated ones to optional attribute with default as its quite widely used and unclear where it falls on two different interpretations. Differential Revision: https://reviews.llvm.org/D130916
-
Akira Hatanaka authored
This reverts commit 5f886adb. It broke clang-hip-vega20. https://lab.llvm.org/buildbot/#/builders/165/builds/23675
-
Yuanfang Chen authored
to handle lit tools searching. Otherwise compiler-rt depends on system environment variable PATH for lit tools which diverge from the other LLVM projects. This reverts D83486 which really should be implemented in LIT itself when the PATH is constructed. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D122837
-
Akira Hatanaka authored
that can lead to security vulnerabilities Also, fix a few places that were causing -Wshadow and -Wformat-nonliteral warnings to be emitted. Differential Revision: https://reviews.llvm.org/D131714
-
Siva Chandra Reddy authored
They were previously incorrectly listed in fcntl.h
-
Christopher Di Bella authored
libc++ prior to LLVM 15 has a bug in it due to it excluding `remove_reference_t` when `__remove_reference` is available as a compiler built-in. This went unnoticed until D116203 because it wasn't available in any compiler. To work around this, we're renaming `__remove_reference` to `__remove_reference_t`. TEST=Tested locally, tested using emscripten
-
Keith Smiley authored
This adds the other potential bitcode sections that can exist and should be stripped with `-r` from `llvm-bitcode-strip`. Differential Revision: https://reviews.llvm.org/D132267
-