- Jun 29, 2022
-
-
Stephen Long authored
MSVC's pragma alloc_text accepts a function that was redeclared in a non extern-C context if the previous declaration was in an extern-C context. i.e. ``` extern "C" { static void f(); } static void f(); ``` MSVC's pragma alloc_text also rejects non-functions. Reviewed By: hans Differential Revision: https://reviews.llvm.org/D128649 -
Jay Foad authored
-
Michał Górny authored
Replace the use of "trap" with a new "stop" command in fork tests, that maps to `raise(SIGSTOP)`. Since traps do not increment PC on some architectures (notably ARM), using traps would require special logic to increment it while testing. Using SIGSTOP avoids the problem and is probably more logical, given that the purpose of the "trap"s was to simply stop the inferior at a synchronization point. This fixes tests on AArch64 (and possibly ARM, I'll update XFAILs when it is confirmed by the buildbot). Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.llvm.org/D128780
-
Joseph Huber authored
We currently call the `addNVPTXFeatures` function in two places, inside of the CUDA Toolchain and inside of Clang in the standard entry point. We normally add features to the job in Clang, so the call inside of the CUDA toolchain is redundant and results in `+ptx` features being added. Since we remove this call, we no longer will have a cached CUDA installation so we will usually create it twice. Reviewed By: tra Differential Revision: https://reviews.llvm.org/D128752
-
Haojian Wu authored
location, NFC
-
Corentin Jabot authored
Instead of dumping the string literal (which quotes it and escape every non-ascii symbol), we can use the content of the string when it is a 8 byte string. Wide, UTF-8/UTF-16/32 strings are still completely escaped, until we clarify how these entities should behave (cf https://wg21.link/p2361). `FormatDiagnostic` is modified to escape non printable characters and invalid UTF-8. This ensures that unicode characters, spaces and new lines are properly rendered in static messages. This make clang more consistent with other implementation and fixes this tweet https://twitter.com/jfbastien/status/1298307325443231744 :) Of note, `PaddingChecker` did print out new lines that were later removed by the diagnostic printing code. To be consistent with its tests, the new lines are removed from the diagnostic. Unicode tables updated to both use the Unicode definitions and the Unicode 14.0 data. U+00AD SOFT HYPHEN is still considered a print character to match existing practices in terminals, in addition of being considered a formatting character as per Unicode. Reviewed By: aaron.ballman, #clang-language-wg Differential Revision: https://reviews.llvm.org/D108469
-
Valentin Clement authored
-
Pavel Labath authored
Fixes PR56280.
-
Max Kazantsev authored
This test demonstrates how sinking down gc.relocate may lead to breach of LCSSA form by tokens and, consecutively, end up with SSA breach by LoopSimplifyCFG which creates fake edges and is unable to update missing LCSSA phis for tokens used outside of the loop.
-
Nikita Popov authored
Restore the autoupgrade from bitcast to ptrtoint+inttoptr, which was lost as part of D127729. This fixes the backwards compatibility issue noted in: https://reviews.llvm.org/D127729#inline-1236519
-
Nikita Popov authored
Work on APInts to make it clear that this will not create a constant expression. This code path is not reached if the RHS is zero.
-
Valentin Clement authored
This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D128799
-
Valentin Clement authored
This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D128788 Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Bradley Smith authored
Differential Revision: https://reviews.llvm.org/D128447
-
Kiran Chandramohan authored
Shared is the default behaviour in the IR, so no handling is required. Default clause with shared or none do not require any handling since Shared is the default behaviour in the IR and None is only required for semantic checks. This patch is carved out from D123930 to remove couple of false TODOs. Reviewed By: peixin, shraiysh Differential Revision: https://reviews.llvm.org/D128797 Co-authored-by:
Nimish Mishra <neelam.nimish@gmail.com>
-
Arjun P authored
Also update parameter names in the implementation file to match the header.
-
Kadir Cetinkaya authored
Per LSP, multiline tokens should be handled as if they end at the end of the line starting the token (there's also a capability to enable them, but that's an adventure for a different day). Fixes https://github.com/clangd/clangd/issues/1145 Differential Revision: https://reviews.llvm.org/D127856
-
Michał Górny authored
Thanks to Pavel Labath for noticing the mistake in: https://reviews.llvm.org/D128638#3618039 Sponsored by: The FreeBSD Foundation
-
Arjun P authored
The original code is more readable because the goal is to check if the given value does *not* lie in the range. It is harder to understand this by reading the rewritten code. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D128753
-
Nikita Popov authored
Migrate udiv, sdiv, urem, and srem to use the FoldXYZ rather than the CreateXYZ infrastructure.
-
isuckatcs authored
The case when the bound variable is reference type in a BindingDecl wasn't handled, which lead to false positives. Differential Revision: https://reviews.llvm.org/D128716
-
Jay Foad authored
-
Benjamin Kramer authored
[Presburger] Cheat around old versions of clang not doing NRVO when there's a derived-to-base cast in the way Should be NFC. We can just do the base conversion manually and avoid warnings about it. Clang before Clang 13 didn't implement P1825 and complains: mlir/lib/Analysis/Presburger/IntegerRelation.cpp:226:10: warning: local variable 'result' will be copied despite being returned by name [-Wreturn-std-move] return result; ^~~~~~ mlir/lib/Analysis/Presburger/IntegerRelation.cpp:226:10: note: call 'std::move' explicitly to avoid copying return result; ^~~~~~ std::move(result) -
Valentin Clement authored
-
Dmitry Preobrazhensky authored
Summary of changes: - Update MUBUF lds syntax (see https://reviews.llvm.org/D124485). - Update SMEM syntax (see https://reviews.llvm.org/D127314). - Enable src0=literal for v_madak*, v_madmk* (see https://reviews.llvm.org/D111067). - Correct src0 operands of v_accvgpr_write_b32. - Correct description of s_getreg/s_setreg (add TBA/TMA). - Remove SYSMSG_OP_HOST_TRAP_ACK message. - Minor bug fixing and improvements.
-
Florian Hahn authored
This patch updates SCEV construction to work iteratively instead of recursively in most cases. It resolves stack overflow issues when trying to construct SCEVs for certain inputs, e.g. PR45201. The basic approach is to to use a worklist to queue operands of V which need to be created before V. To do so, the current patch adds a getOperandsToCreate function which collects the operands SCEV construction depends on for a given value. This is a slight duplication with createSCEV. At the moment, SCEVs for phis are still created recursively. Fixes #32078, #42594, #44546, #49293, #49599, #55333, #55511 Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D114650
-
Anton Afanasyev authored
-
Florian Hahn authored
-
Florian Hahn authored
Using opaque pointers simplifies the tests quite a bit.
-
Christian Sigg authored
This reverts commit 2cd468ef.
-
Nicolai Hähnle authored
Enabling the verifiers is not very helpful if their output is suppressed beyond the fatal error. Differential Revision: https://reviews.llvm.org/D128743
-
Christian Sigg authored
Differential Revision: https://reviews.llvm.org/D128789
-
Jolanta Jensen authored
Using bitmask enums simplifies and clarifies the code. Differential Revision: https://reviews.llvm.org/D128182
-
Nikita Popov authored
Use IRBuilder instead, which will fold these. Just to clarify that this does not actually create any udiv expression.
-
Nikita Popov authored
-
lewuathe authored
Consecutive complex.neg are redundant so that we can canonicalize them to the original operands. Reviewed By: pifon2a Differential Revision: https://reviews.llvm.org/D128781
-
Michael Daniels authored
The DynamicLoaderPOSIXDYLD::GetStepThroughTrampolinePlan() function was doing the symbol lookup using the demangled name. This stopped working with https://reviews.llvm.org/D118814. To get things working again, just use the mangled name for the lookup instead. Reviewed By: labath Differential Revision: https://reviews.llvm.org/D127999
-
Muhammad Omair Javaid authored
This patch renames PDB/calling-conventions.test to calling-conventions-x86.test. Also restrict it to run only for target-x86*. This patch also adds a arm specific test PDB/calling-conventions-arm.test which tests that x86 specifc calling convention decorators are ignored by Arm compiler. Reviewed By: labath Differential Revision: https://reviews.llvm.org/D128678
-