- May 06, 2023
-
-
Mark de Wever authored
Makes sure the formatter for the vector<bool>::reference is enabled when only the header <vector> is included. Before this change it required <vector> and <format> to be included. This violated the requirements in the Standard. Fixes: https://llvm.org/PR61314 Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D149543
-
Florian Hahn authored
New that def-use chains are modeled directly in VPlan, we can simply use the operands of the recipe we are replacing. There is no need to use the operands of the underlying instruction to look up a VPValue.
-
Chris Cotter authored
Warns when a function accepting a forwarding reference does anything besides forwarding (with std::forward) the parameter in the body of the function. Reviewed By: PiotrZSL Differential Revision: https://reviews.llvm.org/D146921
-
Wang, Xin10 authored
After https://reviews.llvm.org/D144154, I introduce some identation issues, and some comments are not that precise. Reviewed By: skan Differential Revision: https://reviews.llvm.org/D150025
-
Mark de Wever authored
All build bots should be updated now. This reverts commit 44d38022.
-
Florian Hahn authored
VPWidenGEPRecipe should not be generated for scalar VFs. Replace check with an assert.
-
Vitaly Buka authored
https://lab.llvm.org/buildbot/#/builders/168/builds/13310 https://lab.llvm.org/buildbot/#/builders/239/builds/2107 This reverts commit 9a5f2831.
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Caroline Tice authored
This reverts commit 0a532207. This breaks several of our tests. Have given reproducers to author. Reverting this until author can fix the issue.
-
Weining Lu authored
This patch only provides basic LoongArchTTIImpl, and more hooks will be added to provide TTI machinery for LoongArch soon. Reviewed By: SixWeining, xen0n Differential Revision: https://reviews.llvm.org/D147524
-
Chuanqi Xu authored
Close https://github.com/llvm/llvm-project/issues/62269 Currently, the compiler will emit errors when we compile C++20 modules if the referenced files changed or got removed. This is because we reuse the existing logic from Clang implicit modules. It is helpful for clang implicit modules since it is implicit and we want to be sure things don't go wrong. But it is not necessary for C++20 modules. The C++20 modules is explicit and it is build systems' responsibility to maintain the dependencies. So the check in the compiler side may be an overkill.
-
NAKAMURA Takumi authored
-
wanglei authored
Reviewed By: SixWeining Differential Revision: https://reviews.llvm.org/D147701
-
Manna, Soumi authored
Reported by Static Analyzer Tool, Coverity: Inside "Format.cpp" file, in clang::format::internal::reformat(clang::format::FormatStyle const &, llvm::StringRef, llvm::ArrayRef<clang::tooling::Range>, unsigned int, unsigned int, unsigned int, llvm::StringRef, clang::format::FormattingAttemptStatus *)::[lambda(clang::format::Environment const &) (instance 4)]::operator ()(clang::format::Environment const &): A very large function call parameter exceeding the high threshold is passed by value. pass_by_value: Capturing variable S of type clang::format::FormatStyle (size 808 bytes) by value, which exceeds the high threshold of 512 bytes This patch uses original code but with an init capture that does a move instead of a copy. Reviewed By: tahonermann, erichkeane, MyDeveloperDay, owenpan, HazardyKnusperkeks Differential Revision: https://reviews.llvm.org/D149647
-
walter erquinigo authored
Modular just announced a new language called Mojo. This patch adds an entry in the language list in LLDB for minimal support (e.g. being able to create a TypeSystem for this language). We will later add debug info entries when the language matures.
-
Teresa Johnson authored
Small clean up to keep a single version of getAllocTypeAttributeString which was duplicated locally.
-
Joseph Huber authored
Summary; This was changed a long time ago to drop the `LLVM_` prefix. Differential Revision: https://reviews.llvm.org/D150012
-
William Huang authored
Cleanup profile reader classes to prepare for complex refactoring as propsed in D147740 (Use MD5 as key for profile map). Change is too complicated so I am cleaning up the reader implementation first with these goals. - Reduce duplicated/similar logic - Reduce virtual functions, changing them to non-virtual - Reduce unnecessry checks, indirections, and dead writes. This is patch 1/n. This patch refactors NameTable Explaining several decisions here 1. useMD5() means whether names of the profiles (the ProfileMap) are represented as MD5. It is NOT whether the input profile format is MD5. This function is an interface for IPO passes to decide whether to match function names or function MD5. There are two motives here: (a) Eventually we want to use MD5 to represent all function contexts because it is much faster to use it as a key for lookup tables (prototype implementation D147740), so in compilation mode we call setProfileUseMD5() to force use MD5. While in tools mode (llvm-profdata) we want to keep the function name info if it's in the input profile. (b) We also propose to allow multiple name tables and profile sections in ExtBinary format, and it could consist of name tables with or without using MD5, in this case MD5 prevails and other name tables are converted to MD5. 2. MD5 handling logic is pushed up to BinaryReader base class, because this trades a non-devirtualized virtual function call with a predictable branch. ReadStringFromTable() accounts for >5% time when loading a full 1 GB profile, it should not be virtual. Reviewed By: davidxl Differential Revision: https://reviews.llvm.org/D148868
-
Mehdi Amini authored
-
Vitaly Buka authored
"any" is actualy any resonably recent GLIBC.
-
Vitaly Buka authored
-
Mehdi Amini authored
This is part of an on-going migration to adopt Properties inside MLIR. Differential Revision: https://reviews.llvm.org/D148299
-
Mehdi Amini authored
A new forwarding constructor is introduced on the adaptor to take directly an OpaqueProperties object and do the nullptr checking and casting to avoid the boilerplate at callsites. Differential Revision: https://reviews.llvm.org/D150003
-
Sergei Barannikov authored
This is at odds with the coding standard. Quoting https://llvm.org/docs/CodingStandards.html#anonymous-namespaces > Because of this, we have a simple guideline: make anonymous namespaces > as small as possible, and only use them for class declarations. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D149664
-
Teresa Johnson authored
Applies ThinLTO cloning decisions made during the thin link and recorded in the summary index to the IR during the ThinLTO backend. Depends on D141077. Differential Revision: https://reviews.llvm.org/D149117
-
AdityaK authored
Reviewers: danalbert, enh, pirama, srhines Differential Revision: https://reviews.llvm.org/D149980
-
Fangrui Song authored
In a `__asm` block, a symbol reference is usually a memory constraint (indirect TargetLowering::C_Memory) [LOOP]. CALL and JUMP instructions are special that `__asm call k` can be an address constraint, if `k` is a function. Clang always gives us indirect TargetLowering::C_Memory and need to convert it to direct TargetLowering::C_Address. D133914 implements this conversion, but does not consider JMP or case-insensitive CALL. This patch implements the missing cases, so that `__asm jmp k` (`jmp ${0:P}`) will correctly lower to `jmp _k` instead of `jmp dword ptr [_k]`. (`__asm call k` lowered to `call dword ptr ${0:P}` and is fixed by D149695 to lower to `call ${0:P}` instead.) [LOOP]: Some instructions like LOOP{,E,NE} and Jcc always use an address constraint (`loop _k` instead of `loop dword ptr [_k]`). After this patch and D149579, all the following cases will be correct. ``` int k(int); int (*kptr)(int); ... __asm call k; // correct without this patch __asm CALL k; // correct, but needs this patch to be compatible with D149579 __asm jmp k; // correct, but needs this patch to be compatible with D149579 __asm call kptr; // will be fixed by D149579. "Broken case" in clang/test/CodeGen/ms-inline-asm-functions.c __asm jmp kptr; // will be fixed by this patch and D149579 ``` Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D149920 -
Alex Langford authored
Minor logic mistake. This caused TestObjCClassMethod to fail.
-
Vitaly Buka authored
-
Vitaly Buka authored
-
Jonas Devlieghere authored
Use the templated GetPropertyAtIndexAs helper for ArchSpec.
-
Jonas Devlieghere authored
Use the templated GetPropertyAtIndexAs helper for LanguageType.
-
Manna, Soumi authored
Reported by Coverity: 1. Inside "ASTReader.cpp" file, in clang::ASTReader::FindExternalLexicalDecls(clang::DeclContext const *, llvm::function_ref<bool (clang::Decl::Kind)>, llvm::SmallVectorImpl<clang::Decl *> &): Using the auto keyword without an & causes a copy. auto_causes_copy: Using the auto keyword without an & causes the copy of an object of type pair. 2. Inside "ASTReader.cpp" file, in clang::ASTReader::ReadAST(llvm::StringRef, clang::serialization::ModuleKind, clang::SourceLocation, unsigned int, llvm::SmallVectorImpl<clang::ASTReader::ImportedSubmodule> *): Using the auto keyword without an & causes a copy. auto_causes_copy: Using the auto keyword without an & causes the copy of an object of type DenseMapPair. 3. Inside "CGOpenMPRuntimeGPU.cpp" file, in clang::CodeGen::CGOpenMPRuntimeGPU::emitGenericVarsEpilog(clang::CodeGen::CodeGenFunction &, bool): Using the auto keyword without an & causes a copy. auto_causes_copy: Using the auto keyword without an & causes the copy of an object of type pair. 4. Inside "ASTWriter.cpp" file, in clang::ASTWriter::WriteHeaderSearch(clang::HeaderSearch const &): Using the auto keyword without an & causes a copy. auto_causes_copy: Using the auto keyword without an & causes the copy of an object of type UnresolvedHeaderDirective. Reviewed By: tahonermann Differential Revision: https://reviews.llvm.org/D149461
-
Benjamin Kramer authored
-
Shoaib Meenai authored
This reverts commit 8b8466fd. This is causing size regressions with -Oz and FullLTO. Revert while I come up with a repro.
-
Shoaib Meenai authored
This reverts commit 6f29d1ad. https://reviews.llvm.org/D149768 is causing size regressions for -Oz with FullLTO, and I'm reverting that one while investigating. This commit depends on that one, so it needs to be reverted as well.
-
Alexey Bataev authored
-
Nikolas Klauser authored
This removes the need for a custom libc++ build to have a basic set of PSTL algorithms. Reviewed By: ldionne, #libc Spies: miyuki, libcxx-commits, arichardson Differential Revision: https://reviews.llvm.org/D149624
-