- Aug 27, 2021
-
-
Vitaly Buka authored
-
Jon Chesterfield authored
-
Andrea Di Biagio authored
This reverts commit 9cc0023f. due to buildbot failures.
-
Siva Chandra Reddy authored
This allows others parts of the libc to use the mutex types without actually pulling in public function implementations. Along the way, few cleanups have been done, like using a uniform type to refer the linux futex word. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D108749
-
Andrea Di Biagio authored
This fixes some redundant move in return statement [-Wredundant-move] gcc 9.3.0 warnings. This also fixes a minor coverity issue reported agaist class MCAOperand about the lack of proper initialization for field Index. No functional change intended.
-
Jessica Paquette authored
This pattern ``` %elt = ... something ... %undef = G_IMPLICIT_DEF %vec = G_BUILD_VECTOR %elt, %undef, %undef, ... %undef ``` Can be selected to a SUBREG_TO_REG, assuming `%elt` and `%vec` have the same register bank. We don't care about any of the bits in `%vec` aside from those in `%elt`, which just happens to be the 0th element. This is preferable to emitting `mov` instructions for every index. This gives minor code size improvements on the test suite at -Os. Differential Revision: https://reviews.llvm.org/D108773
-
RamNalamothu authored
Reviewed By: xgupta Differential Revision: https://reviews.llvm.org/D108557
-
Yaron Keren authored
Update this document for 2021. Reviewed By: aaron.ballman, kuhnel, amccarth Differential Revision: https://reviews.llvm.org/D108513
-
Rob Suderman authored
Added dynamic shape support for elementwise operations. This assumes equal sizes (broadcasting 1-length dynamic is problematic). Reviewed By: NatashaKnk Differential Revision: https://reviews.llvm.org/D108730
-
Louis Dionne authored
-
Shafik Yaghmour authored
I was debugging a problem and noticed that it would have been helpful to have the type of each FieldDecl when looking at the output from ClangASTSource::layoutRecordType. Differential Revision: https://reviews.llvm.org/D108257
-
Andrea Di Biagio authored
[MCA][RegisterFile] Consistently update the PRF in the presence of multiple writes to the same register. My last change to the RegisterFile (PR51495) has introduced a bug in the logic that allocates physical registers in the PRF. In some cases, this bug could have triggered a nasty unsigned wrap in the number of allocated registers, thus resulting in mca being stuck forever in a loop of PRF availability checks.
-
LLVM GN Syncbot authored
-
Louis Dionne authored
This patch implements the underlying mechanism for range adaptors. It does so based on http://wg21.link/p2387, even though that paper hasn't been adopted yet. In the future, if p2387 is adopted, it would suffice to rename `__bind_back` to `std::bind_back` and `__range_adaptor_closure` to `std::range_adaptor_closure` to implement that paper by the spec. Differential Revision: https://reviews.llvm.org/D107098
-
Michael Jones authored
Add inttypes.h to llvm libc. As its first functions strtoimax and strtoumax are included. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D108736
-
Alexey Bataev authored
-
Yonghong Song authored
Generate btf_tag annotations for DIGlobalVariable. The annotations are represented as an DINodeArray in DebugInfo. Differential Revision: https://reviews.llvm.org/D106619
-
Walter Erquinigo authored
This folder has no valid tests anymore
-
Sanjay Patel authored
https://llvm.org/PR47578
-
Walter Erquinigo authored
-
Jon Chesterfield authored
-
Louis Dionne authored
Differential Revision: https://reviews.llvm.org/D108709
-
Vitaly Buka authored
To simplify future review.
-
Louis Dionne authored
This patch XFAILs the `align.pass.cpp` for PowerPC (LE). It appears that this test will fail on Power for the `LLIArr2` and `Padding` structs within the test, as the `assert` for `alignof(AtomicImpl) >= sizeof(AtomicImpl)` will be false. In this case, these structs presumably should not be lock-free, so we currently XFAIL this for now. The failure was discovered after D97913 was committed. It looks like `alignof(AtomicImpl) < sizeof(AtomicImpl)`, even prior to this commit, but this test began running on Power after D97913, whereas we were not running `align.pass.cpp` before. This patch addresses https://bugs.llvm.org/show_bug.cgi?id=51548 by temporarily XFAILing the test in order to investigate it further. Differential Revision: https://reviews.llvm.org/D108668
-
Craig Topper authored
Similar to what we do for add/sub/mul. This can help remove some sext.w. There are some regressions on some bswap tests, but I have an idea how to fix that for a follow up. A new PACKW pattern is added to handle the new sext_inreg placement. Differential Revision: https://reviews.llvm.org/D108663
-
Fangrui Song authored
This makes the default build closer to a -DLLVM_ENABLE_RUNTIMES=all build. The layout is arguably superior because different libraries of target triples are in different directories, similar to GCC/Debian multiarch. When LLVM_DEFAULT_TARGET_TRIPLE is x86_64-unknown-linux-gnu, `lib/clang/14.0.0/lib/libclang_rt.asan-x86_64.a` becomes `lib/clang/14.0.0/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a`. Clang has been detecting both paths since 2018 (D50547). --- Note: Darwin needs to be disabled. The hierarchy needs to be sorted out. The current -DLLVM_DEFAULT_TARGET_TRIPLE=off state is like: ``` lib/clang/14.0.0/lib/darwin/libclang_rt.profile_ios.a lib/clang/14.0.0/lib/darwin/libclang_rt.profile_iossim.a lib/clang/14.0.0/lib/darwin/libclang_rt.profile_osx.a ``` Windows needs to be disabled: https://reviews.llvm.org/D107799?id=368557#2963311 Differential Revision: https://reviews.llvm.org/D107799
-
Yonghong Song authored
Generate btf_tag annotations for DIGlobalVariable. A field "annotations" is introduced to DIGlobalVariable, and annotations are represented as an DINodeArray, similar to DIComposite elements. The following example illustrates how annotations are encoded in IR: distinct !DIGlobalVariable(..., annotations: !10) !10 = !{!11, !12} !11 = !{!"btf_tag", !"a"} !12 = !{!"btf_tag", !"b"} Differential Revision: https://reviews.llvm.org/D106619 -
RamNalamothu authored
In DWARFLinker.h, some comments prefix the debug section names with '.' while others do not. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D108519
-
Aaron Ballman authored
-
Aaron Ballman authored
This assert was removed in 98339f14, but during post-commit review, it was pointed out that the assert was valid.
-
Andrew Litteken authored
The Code Extractor does not provide an easy mechanism for determining the inputs and outputs after extraction has occurred, this patch gives the ability to pass in empty SetVectors to be filled with the inputs and outputs if they need to be analyzed. Added Tests: - InputOutputMonitoring in unittests/Transforms/Utils/CodeExtractorTests.cpp Reviewers: paquette Differential Revision: https://reviews.llvm.org/D106991
-
Luís Marques authored
The getConstraintRegister method is used by semantic checking of inline assembly statements in order to diagnose conflicts between clobber list and input/output lists. By overriding getConstraintRegister we get those diagnostics and we match RISC-V GCC's behavior. The implementation is trivial due to the lack of single-register RISC-V-specific constraints. Differential Revision: https://reviews.llvm.org/D108624
-
Stanislav Mekhanoshin authored
On targets requiring VGPR alignment we may end up spilling an unaligned register if we were partially spilled odd number of leading lanes. The reminder will start with an odd register. This problem is solved by inverting the order of lanes to be spillied so that we start from the end. Differential Revision: https://reviews.llvm.org/D108732
-
Craig Topper authored
We can halve the number of mask constants by masking before shl and after srl. This can reduce the number of mov immediate or constant materializations. Or reduce the number of constant pool loads for X86 vectors. I think we might be able to do something similar for bswap. I'll look at it next. Differential Revision: https://reviews.llvm.org/D108738
-
LLVM GN Syncbot authored
-
Jon Chesterfield authored
Lets the amdgpu plugin write to omptarget_device_environment to enable debugging. Intend to use in the near future to record the wavesize that a given deviceRTL was compiled with for running on hardware that supports 32 or 64. Patch sets all the attributes that are useful. Notably .data means the variable is set by writing to host memory before copying to the GPU instead of launching a kernel to update the image. Can simplify the plugin slightly to drop the code for patching after load if this is used consistently. NFC on nvptx, cuda plugin seems to work fine without any annotations. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D108698
-
Alexandre Rames authored
The `HashBuilder` interface allows conveniently building hashes of various data types, without relying on the underlying hasher type to know about hashed data types. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D106910
-
Alexey Bataev authored
This reverts commit a28234e3 to investigate a compiler crash caused by the commit.
-
Balazs Benics authored
Previously by following the documentation it was not immediately clear what the capabilities of this checker are. In this patch, I add some clarification on when does the checker issue a report and what it's limitations are. I'm also advertising suppressing such reports by adding an assertion, as demonstrated by the test3(). I'm highlighting that this checker might produce an extensive amount of findings, but it might be still useful for code audits. Reviewed By: martong Differential Revision: https://reviews.llvm.org/D107756
-
Kazu Hirata authored
The last use was removed on Jun 17, 2021 in commit bd524955.
-