- Sep 28, 2022
-
-
Martin Sebor authored
Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D130922
-
Yuanfang Chen authored
The test is not expected for PS4.
-
Quentin Colombet authored
I wasn't able to produce a testcase for that because right now VWSUB is only generated from VWSUB_W and from there to trigger the commutative bug we would need to grab VWSUB where the splat value is on the LHS, which is currently not matched. Differential Revision: https://reviews.llvm.org/D134701
-
Yuanfang Chen authored
So the behavior is consistent with non-LTO mode. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D134659
-
Yuanfang Chen authored
Also refactor the existing code a little bit. Reviewed By: probinson Differential Revision: https://reviews.llvm.org/D134673
-
Yuanfang Chen authored
So the behavior is consistent with non-LTO mode. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D134657
-
Michele Scuttari authored
See #57475 Differential Revision: https://reviews.llvm.org/D134752
-
Simon Pilgrim authored
-
Philip Reames authored
The motivation here is to enable a change I'm exploring in vectorizer to prefer base + offset_vector addressing for scatter/gather. The form the vectorizer would end up emitting would be a gep whose vector operand is an add of the scalar IV (splated) and the index vector. This change makes sure we can recognize that pattern as well as the current code structure. As a side effect, it might improve scatter/gathers from other sources. Differential Revision: https://reviews.llvm.org/D134755
-
mitchell authored
Summary: clang-format makes multiple passes when #if/#else preprocessor blocks are found. It will make one pass for normal code and code in the #if block, and then it will make another pass for just the code in #else blocks. This often results in invalid alignment inside the else blocks because they do not have any scope or indentAndNestingLevel context from their surrounding tokens/lines. This patch remedies that by caching any initial indentAndNestingLevel from a second pass and not breaking/returning early when a scope change is detected. Fixes #36070 Reviewers: HazardyKnusperkeks, MyDeveloperDay Tags: clang, clang-format Differential Revision: https://reviews.llvm.org/D134042
-
Jim Ingham authored
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D134447
-
eopXD authored
Previous commit 8b00b24f missed to add `int_ceil` anchor for the llvm.ceil.* section under LangRef.rst Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D134586
-
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D134482
-
Jennifer Yu authored
It is data mapping ordering problem. According omp spec If one or more map clauses are present, the list item conversions that are performed for any use_device_ptr or use_device_addr clause occur after all variables are mapped on entry to the region according to those map clauses. The change is to put mapping data for use_device_addr at end of data mapping array. Differential Revision: https://reviews.llvm.org/D134556
-
Qiongsi Wu authored
The following three static functions in `clang/lib/Driver/ToolChains/CommonArgs.cpp` ``` static void renderRpassOptions(...) static void renderRemarksOptions(...) static void renderRemarksHotnessOptions(...) ``` use `--plugin-opt` for the plugin option prefix, while the function `tools::addLTOOptions` uses `-plugin-opt`. This patch makes sure that we only use `-plugin-opt` (single dash) everywhere. It is not clear to me that why we decided to use `--plugin-opt` in https://reviews.llvm.org/D85810. If using `--plugin-opt` is intended, I'd love to hear the reason and I will close this patch. We intend to followup this patch with a few other patches that teach `clang` to pass plugin options to the AIX linker, which uses a different prefix (`-bplugin_opt:`). Reviewed By: w2yehia Differential Revision: https://reviews.llvm.org/D134668
-
Zain Jaffal authored
[AArch64] Add tests for selecting SMULL instruction where the operand is zero extended and the top bit value is 0 This covers the case where we can convert a zext instruction to a sext and then select smull Differential Revision: https://reviews.llvm.org/D134643
-
Zequan Wu authored
Missing it causes lldb to crash or give incorrect result. Differential Revision: https://reviews.llvm.org/D134656
-
Philip Reames authored
-
eopXD authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D134586
-
Zequan Wu authored
Before, class layout in native pdb is not hooked up in [[https://github.com/llvm/llvm-project/blob/main/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp#L9375-L9380 | here]]. This changes hooked it up by refactoring SymbolFileNativePDB and PdbAstBuilder. PdbIndex (corresponds to a single pdb file) is removed from PdbAstBuilder, so it can only be accessed via SymbolFileNativePDB and we can construct PdbAstBuilder with just TypeSystemClang. Reviewed By: labath Differential Revision: https://reviews.llvm.org/D134509
-
Krzysztof Parzyszek authored
-
LLVM GN Syncbot authored
-
Chris Bieneman authored
The HLSL support in clang is in progress and not fully functioning. As such we don't want to install the related optional build components by default (yet), but we do need an option to build and install them locally for testing and for some key users. This adds the `CLANG_ENABLE_HLSL` option which is off by default and can be enabled to install the HLSL clang headers and the clang-dxc symlink. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D134693
-
Krzysztof Parzyszek authored
"Sector" is a concept from AlignVectors, so the check for it should be there.
-
Craig Topper authored
-
Doru Bercea authored
-
Gergely Nagy authored
If a C source file includes the libc++ stdatomic.h, compilation will break because (a) the C++ standard check will fail (which is expected), and (b) `_LIBCPP_COMPILER_CLANG_BASED` won't be defined because the logic defining it in `__config` is guarded by a `__cplusplus` check, so we'll end up with a blank header. Move the detection logic outside of the `__cplusplus` check to make the second check pass even in a C context when you're using Clang. Note that `_LIBCPP_STD_VER` is not defined when in C mode, hence stdatomic.h needs to check if in C++ mode before using that macro to avoid a warning. In an ideal world, a C source file wouldn't be including the libc++ header directory in its search path, so we'd never have this issue. Unfortunately, certain build environments make this hard to guarantee, and in this case it's easy to tweak this header to make it work in a C context, so I'm hoping this is acceptable. Fixes https://github.com/llvm/llvm-project/issues/57710. Differential Revision: https://reviews.llvm.org/D134591
-
Lei Zhang authored
-
Craig Topper authored
Fixes PR57976. Reviewed By: erichkeane, arichardson, MaskRay Differential Revision: https://reviews.llvm.org/D134671
-
Lang Hames authored
Previously we stripped Weak flags from JITDylib symbol table entries once they were resolved (there was no particularly good reason for this). Now we want to retain them and query them when setting the Linkage on external symbols in LinkGraphs during symbol resolution (this was the motivation for 75404e9e). Making weak linkage of external definitions discoverable in the LinkGraph will in turn allow future plugins to implement correct handling for them (by recording locations that depend on exported weak definitions and pointing all of these at one chosen definition at runtime).
-
Lang Hames authored
-
Michael Buch authored
Currently funciton lookup in the expression evaluator fails to disambiguate member functions the are overloaded on lvalue/rvalue reference-qualifiers. This happens because we unconditionally set a `FunctionPrototype`s `ExtProtoInfo::RefQualifier` to `RQ_None`. We lose the ref-qualifiers in the synthesized AST and `clang::Sema` fails to pick a correct overload candidate. DWARF emits information about a function's ref-qualifiers in the form of a boolean `DW_AT_rvalue_reference` (for rvalues) and `DW_AT_reference` (for lvalues). This patch sets the `FunctionPrototype::ExtProtoInfo::RefQualifier` based on the DWARF attributes above. **Testing** * Added API test llvm/llvm-project issue #57866 Differential Revision: https://reviews.llvm.org/D134661
-
Craig Topper authored
Expanded in SelectionDAGBuilder similar to llvm.fmuladd. Reviewed By: frasercrmck, simoll Differential Revision: https://reviews.llvm.org/D134474
-
Min-Yih Hsu authored
If any of the operands for FCmpOp is a vector, returns a vector<Nxi1>, rather than an i1 type result. Differential Revision: https://reviews.llvm.org/D134449
-
Krzysztof Drewniak authored
The push/pop context APIs are deprecated in HIP, and keeping the default device set is handled in IHP using hipSetDevice(). Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D134747
-
Stefan Gränitz authored
Fix regression https://github.com/llvm/llvm-project/issues/56952 for Clang CodeGen on Windows. In the Windows ABI the instruction sequence that is expanded from CALL_RVMARKER should use RCX as target register and not RDI. Reviewed By: rnk, fhahn Differential Revision: https://reviews.llvm.org/D134441
-
Alex Zinenko authored
It is useful for PatternRewriter listeners to know the values that are replacing the op in addition to only the fact of the op being replaced for being able to keep track of changes or for debugging. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D134748
-
David Green authored
These two patterns are not working as intended, as shown in D134022. They need to insert the value into the new register, not override it.
-