- Jul 27, 2022
-
-
Ying Yi authored
Differential Revision: https://reviews.llvm.org/D130495
-
Ying Yi authored
Differential Revision: https://reviews.llvm.org/D130493
-
David Green authored
Given a patch like D129506, using instructions not valid for the current feature set becomes an error. This updates the Arm hint-space instructions for pac/bti to require thumbv7m as opposed to 8.1-m.main, to make them valid when compiling for thumbv7m with -mbranch-protection. Differential Revision: https://reviews.llvm.org/D129692
-
Adrian Kuegel authored
-
Nikita Popov authored
This adds a +atomic-32 target feature, which instructs LLVM to assume that lock-free 32-bit atomics are available for this target, even if they usually wouldn't be. If only atomic loads/stores are used, then this won't emit libcalls. If atomic CAS is used, then the user is responsible for providing any necessary __sync implementations (e.g. by masking interrupts for single-core privileged use cases). See https://reviews.llvm.org/D120026#3674333 for context on this change. The tl;dr is that the thumbv6m target in Rust has historically made atomic load/store only available, which is incompatible with the change from D120026, which switched these to use libatomic. Differential Revision: https://reviews.llvm.org/D130480
-
Amara Emerson authored
Fixes issue 56398
-
Sam McCall authored
-
Sam McCall authored
This was an earlier draft of Language.h that got committed accidentally
-
Sam McCall authored
- Place rules under rule::lhs::rhs__rhs__rhs - Change mangling of keywords to ALL_CAPS (needed to turn keywords that appear alone on RHS into valid identifiers) - Make enums implicitly convertible to underlying type (though still scoped, using alias tricks) In principle this lets us exhaustively write a switch over all rules of a NT: switch ((rule::declarator)N->rule()) { case rule::declarator::noptr_declarator: ... } In practice we don't do this anywhere yet as we're often switching over multiple nonterminal kinds at once. Differential Revision: https://reviews.llvm.org/D130414 -
Amara Emerson authored
-
Chuanqi Xu authored
-
Danny Mösch authored
Reason is that the test behaves differently in clang-ppc64-aix in that the optional part appears in the output.
-
Chuanqi Xu authored
-
Chuanqi Xu authored
-
Tom Stellard authored
-
Weverything authored
Fix unused variable in non-assert builds after 300fbf56
-
Keith Smiley authored
This is still undocumented and unsupported, but if someone passed it before you would end up with a missing file error since this takes an argument that wouldn't be handled. Differential Revision: https://reviews.llvm.org/D130606
-
Konstantin Varlamov authored
-
Kai Luo authored
We are supporting quadword lock free atomics on AIX. For the situation that users on AIX are using a libatomic that is lock-based for quadword types, we can't enable quadword lock free atomics by default on AIX in case user's new code and existing code accessing the same shared atomic quadword variable, we can't guarentee atomicity. So we need an option to enable quadword lock free atomics on AIX, thus we can build a quadword lock-free libatomic(also for advanced users considering atomic performance critical) for users to make the transition smooth. Reviewed By: shchenz Differential Revision: https://reviews.llvm.org/D127189
-
Kirill Stoimenov authored
Added alloca optimization which was missed during the implemenation of D112098. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D130503
-
Vitaly Buka authored
-
Jon Chesterfield authored
-
Michael Kruse authored
The IR Verifier requires that every call instruction to an inlineable function (among other things, its implementation must be visible in the translation unit) must also have !dbg metadata attached to it. When parallelizing, Polly emits calls to OpenMP runtime function out of thin air, or at least not directly derived from a bounded list of previous instruction. While we could search for instructions in the SCoP that has some debug info attached to it, there is no guarantee that we find any. Our solution is to generate a new DILocation that points to line 0 to represent optimized code. The OpenMP function implementation is usually not available in the user's translation unit, but can become visible in an LTO build. For the bug to appear, libomp must also be built with debug symbols. IMHO, the IR verifier rule is too strict. Runtime functions can also be inserted by other optimization passes, such as LoopIdiomRecognize. When inserting a call to e.g. memset, it uses the DebugLoc from a StoreInst from the unoptimized code. It is not required to have !dbg metadata attached either. Fixes #56692
-
Jon Chesterfield authored
-
Tom Stellard authored
Reviewed By: asl Differential Revision: https://reviews.llvm.org/D129880
-
Vitaly Buka authored
-
Tom Stellard authored
The tests still only run on pushes or pull requests for the release branch, but having it in the main branch means we don't have to copy the tests every time we create a new release branch. Reviewed By: asl Differential Revision: https://reviews.llvm.org/D129526
-
Konstantin Varlamov authored
Differential Revision: https://reviews.llvm.org/D130330
-
Konstantin Varlamov authored
Differential Revision: https://reviews.llvm.org/D130547
-
Jakob Johnson authored
Refactor the string conversion of the `lldb::InstructionControlFlowKind` enum out of `Instruction::Dump` to enable reuse of this logic by the JSON TraceDumper (to be implemented in separate diff). Will coordinate the landing of this change with D130320 since there will be a minor merge conflict between these changes. Test Plan: Run unittests ``` > ninja check-lldb [4/5] Running lldb unit test suite Testing Time: 10.13s Passed: 1084 ``` Verify '-k' flag's output ``` (lldb) thread trace dump instructions -k thread #1: tid = 1375377 libstdc++.so.6`std::ostream::flush() + 43 7048: 0x00007ffff7b54dab return retq 7047: 0x00007ffff7b54daa other popq %rbx 7046: 0x00007ffff7b54da7 other movq %rbx, %rax 7045: 0x00007ffff7b54da5 cond jump je 0x11adb0 ; <+48> 7044: 0x00007ffff7b54da2 other cmpl $-0x1, %eax libc.so.6`_IO_fflush + 249 7043: 0x00007ffff7161729 return retq 7042: 0x00007ffff7161728 other popq %rbp 7041: 0x00007ffff7161727 other popq %rbx 7040: 0x00007ffff7161725 other movl %edx, %eax 7039: 0x00007ffff7161721 other addq $0x8, %rsp 7038: 0x00007ffff7161709 cond jump je 0x87721 ; <+241> 7037: 0x00007ffff7161707 other decl (%rsi) 7036: 0x00007ffff71616fe cond jump je 0x87707 ; <+215> 7035: 0x00007ffff71616f7 other cmpl $0x0, 0x33de92(%rip) ; __libc_multiple_threads 7034: 0x00007ffff71616ef other movq $0x0, 0x8(%rsi) 7033: 0x00007ffff71616ed cond jump jne 0x87721 ; <+241> 7032: 0x00007ffff71616e9 other subl $0x1, 0x4(%rsi) 7031: 0x00007ffff71616e2 other movq 0x88(%rbx), %rsi 7030: 0x00007ffff71616e0 cond jump jne 0x87721 ; <+241> 7029: 0x00007ffff71616da other testl $0x8000, (%rbx) ; imm = 0x8000 ``` Differential Revision: https://reviews.llvm.org/D130580 -
Konstantin Varlamov authored
- for all algorithms taking more than one range, add a `robust` test to check the case where the ranges have different value types and the given projections are different, with each projection applying to a different value type; - fix `ranges::include` to apply the correct projection to each range. Differential Revision: https://reviews.llvm.org/D130515
-
Konstantin Varlamov authored
Differential Revision: https://reviews.llvm.org/D130552
-
Tom Stellard authored
This reverts commit ec8f4fd6. This caused a failure in the mlir-windows bot.
-
Tom Stellard authored
For each release tag, this action will create a new release on GitHub, and for each -final tag, this action will build the documentation and upload it to GitHub. Reviewed By: hans, kwk Differential Revision: https://reviews.llvm.org/D99780
-
Tom Stellard authored
When there is a backport request, the GitHub Action that handles the backport will now automatically assign the issue to the user(s) who approved the commit in Phabricator and create an issue comment asking them to review the request. Reviewed By: thieta, kwk Differential Revision: https://reviews.llvm.org/D126423
-
Dmitry Vassiliev authored
This patch fixes the following error with MSVC 16.9.2 in case of NDEBUG and LLVM_ENABLE_DUMP: llvm/lib/CodeGen/CodeGenPrepare.cpp(2581): error C2872: 'ExtAddrMode': ambiguous symbol llvm/include/llvm/CodeGen/TargetInstrInfo.h(86): note: could be 'llvm::ExtAddrMode' llvm/lib/CodeGen/CodeGenPrepare.cpp(2447): note: or '`anonymous-namespace'::ExtAddrMode' llvm/lib/CodeGen/CodeGenPrepare.cpp(2581): error C2039: 'print': is not a member of 'llvm::ExtAddrMode' Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D130426
-
Tom Stellard authored
We started using the llvm/llvm-project-release-prs repo for backport pull requests, but since this repo is not a fork of llvm/llvm-project it will reject pull requests from other repos. In order to fix this, when ever someone uses the /branch command to request a branch be merged into the release branch, we first copy the branch to the llvm-project-release-prs repo and then create the pull request. Reviewed By: thieta Differential Revision: https://reviews.llvm.org/D126940
-
Fangrui Song authored
-
River Riddle authored
The current support was essentially the amount necessary to support replacing SymbolRefAttrs, but suffers from various deficiencies (both ergonomic and functional): * Replace crashes if unsupported This makes it really hard to use safely, given that you don't know if you are going to crash or not when using it. * Types aren't supported This seems like a simple missed addition when the attribute replacement support was originally added. * The ergonomics are weird It currently uses an index based replacement, which makes the implementations quite clunky. This commit refactors support to be a bit more ergonomic, and also adds support for types in the process. This was also a great oppurtunity to greatly simplify how replacement is done in the symbol table. Fixes #56355 Differential Revision: https://reviews.llvm.org/D130589
-
Fangrui Song authored
It manifests as an incorrect name in --print-archive-stats=.
-