aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-12-10[BPF] support indirect branch (callx) in AsmParserusers/inclyc/bpf-callx-asmYingchi Long2-0/+5
Simply mark `callx` as a valid ID, so it can be recognized. Previously this valid asm triggers an error: # clang local/callx.s -target bpf local/callx.s:8:2: error: invalid register/token name callx r1 ^
2023-12-10[GlobalISel] Add a missing includeKazu Hirata1-0/+1
2023-12-10[Support] Remove unnecessary includes (NFC)Kazu Hirata5-6/+0
2023-12-10[llvm] Adjust inlucdes of ArrayRef.h (NFC)Kazu Hirata2-1/+1
Without this patch, CallingConvLower.h is relying on the transitive include of ArrayRef.h in TypeSize.h, which doesn't need ArrayRef.h.
2023-12-09[docs] Add missing quotation mark after #73774Fangrui Song1-1/+1
2023-12-09[Target] Include bitset (NFC)Kazu Hirata2-0/+2
These files are relying on the transitive include of <bitset> from GIMatchTableExecutor.h, which doesn't actually use std::bitset.
2023-12-09[Transforms] Remove unnecessary includes (NFC)Kazu Hirata9-10/+0
2023-12-09[X86] Rearrange a few atomics tests. NFC.James Y Knight6-928/+407
2023-12-09[clang-tools-extra] Use llvm::to_underlying (NFC)Kazu Hirata2-8/+8
2023-12-09[clang] Use llvm::to_underlying (NFC)Kazu Hirata2-7/+7
2023-12-09[RISCV] Remove unnecessary call to isSupportedExtensionFeature.Craig Topper1-4/+1
hasExtension already checks if the extension is supported.
2023-12-09[ADT] Rename SmallString::{starts,ends}with to {starts,ends}_with (#74916)Kazu Hirata21-37/+33
This patch renames {starts,ends}with to {starts,ends}_with for consistency with std::{string,string_view}::{starts,ends}_with in C++20. Since there are only a handful of occurrences, this patch skips the deprecation phase and simply renames them.
2023-12-09[RISCV] Use Triple::isRISCV64(). NFCCraig Topper1-3/+3
2023-12-09[LAA] Remove duplicated test.Florian Hahn1-179/+0
depend_diff_types.ll already covers the same tests afer it hs been converted to opaque pointersj, so remove the redundant depend_diff_types_opaque_ptr.ll
2023-12-09[ADT] Remove StringRef::{starts,ends}with_insensitive (#74918)Kazu Hirata1-12/+0
These functions have been deprecated since: commit 1117d806ca4d9b5b04263456dcb1ced76ade78cb Author: Kazu Hirata <kazu@google.com> Date: Mon Jun 5 13:18:07 2023 -0700
2023-12-09[test][llvm-objdump][AArch64] Add tests for ELF AUTH constants (#74298)Daniil Kovalev1-0/+9
This patch introduces llvm-objdump tests for new `AARCH64_AUTH_RELR`, `AARCH64_AUTH_RELRSZ` and `AARCH64_AUTH_RELRENT` dynamic tags. Depends on https://github.com/llvm/llvm-project/pull/74874
2023-12-09[HLSL] Define RasterizerOrderedBuffer resourceJustin Bogner2-6/+37
Define HLSL's RasterizerOrderedBuffer resource type through the external sema source. This doesn't fully work as is, but defining it allows us to exercise the ROV logic in the DirectX backend from HLSL rather than having to manually edit metadata, so it's useful for further testing and development. Pull Request: https://github.com/llvm/llvm-project/pull/74897
2023-12-09[BOLT] Determine address size from binary (#74870)Nathan Sidwell2-2/+5
Query the executable for address size.
2023-12-09[RISCV] Remove Name and OverloadedName from RVVIntrinsicDef. NFC (#74907)Craig Topper1-7/+1
These names are never used so just waste a lot of memory. If do need them ever, it would be better to store pointers to the StringMapEntry objects that store the same strings.
2023-12-09[DirectX] Move ROV info into HLSL metadata. NFCJustin Bogner15-40/+49
Pull Request: https://github.com/llvm/llvm-project/pull/74896
2023-12-09[NFC] Remove an unused decl to avoid warningKiran Chandramohan1-1/+1
2023-12-09[clang] Adjust TargetInfo bitfield (#74893)Nathan Sidwell1-1/+0
An 8 bit bitfield should not have a preferred type of bool.
2023-12-09[NFC][libc++] Rewrites a return statement.Mark de Wever1-3/+1
This fixes a clang-tidy diagnostic when building libc++ with RTTI disabled. This was originally part of #65518.
2023-12-09[clang] Fix '__cdecl' CC is not supported for this target (#74932)Richard Dzenis1-1/+1
Fixes regression introduced in b3e6ff331925dde24a4707452d657da0fdf7f588 Fixes bot failure https://lab.llvm.org/buildbot/#/builders/60/builds/15037 ``` .---command stderr------------ | error: 'supported-warning' diagnostics seen but not expected: | File C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\SemaCXX\ms-constexpr-new.cpp Line 7: '__cdecl' calling convention is not supported for this target | 1 error generated. `----------------------------- ```
2023-12-09[libc++][modules] Adds std.compat module. (#71438)Mark de Wever34-306/+1775
This adds the std.compat module. The patch contains a bit of refactoring to avoid code duplication between the std and std.compat module. Implements parts of - P2465R3 Standard Library Modules std and std.compat
2023-12-09[mlir][ArmSME] Update `-allocate-arm-sme-tiles` description (NFC) (#74871)Benjamin Maxwell1-2/+3
2023-12-09[libc++] Implements Runtime format strings. (#73353)Mark de Wever18-33/+78
This change requires quite a number of changes in the tests; this is not code I expect people to use in the wild. So I don't expect breakage for users. Implements: - P2905R2 Runtime format strings, as a Defect Report
2023-12-09[AST] Fix -Wlogical-op-parentheses in ExprConstant.cpp (NFC)Jie Fu1-2/+2
llvm-project/clang/lib/AST/ExprConstant.cpp:5645:74: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses] 5645 | (Definition->isConstexpr() || Info.CurrentCall->CanEvalMSConstexpr && | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 5646 | Definition->hasAttr<MSConstexprAttr>())) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ llvm-project/clang/lib/AST/ExprConstant.cpp:5645:74: note: place parentheses around the '&&' expression to silence this warning 5645 | (Definition->isConstexpr() || Info.CurrentCall->CanEvalMSConstexpr && | ^ | ( 5646 | Definition->hasAttr<MSConstexprAttr>())) | | ) 1 error generated.
2023-12-09[bazel] Port 46708a5bcba28955b2ddeddf5c0e64398223642bBenjamin Kramer1-0/+1
2023-12-09[clang-cl] Add support for [[msvc::constexpr]] C++11 attribute (#71300)Richard Dzenis18-13/+239
This commit introduces support for the MSVC-specific C++11-style attribute `[[msvc::constexpr]]`, which was introduced in MSVC 14.33. The semantics of this attribute are enabled only under MSVC compatibility (`-fms-compatibility-version`) 14.33 and higher. Additionally, the default value of `_MSC_VER` has been raised to 1433. The current implementation lacks support for: - `[[msvc::constexpr]]` constructors (see #72149); at the time of this implementation, such support would have required an unreasonable number of changes in Clang. - `[[msvc::constexpr]] return ::new` (constexpr placement new) from non-std namespaces (see #74924). Relevant to: #57696
2023-12-09[SelectionDAG] Fix typo in commentJay Foad1-1/+1
2023-12-09[clang][NFC] Refactor expected directives in C++ DRs 2000-2799 (#74921)Vlad Serebrennikov10-298/+499
This patch continues the work started with ea5b1ef016d020c37f903d6c7d4f623be975dab8. See that commit and its corresponding PR for details.
2023-12-09[Reassociate] Preserve NUW flags after expr tree rewriting (#72360)Yingwei Zheng4-30/+78
Alive2: https://alive2.llvm.org/ce/z/38KiC_
2023-12-09[clang][NFC] Fill in historical data on when C++ DRs 2000-2799 were fixedVlad Serebrennikov4-10/+10
2023-12-08[CMake] Make ELF library handling path default for libLLVM (#74698)Brad Smith1-12/+3
Invert the logic and choose the ELF path by default as a fallback. Move check for Darwin to the top.
2023-12-08[Bitcode] Remove an unnecessary include (NFC)Kazu Hirata1-1/+0
2023-12-08[DebugInfo] Use llvm::to_underlying (NFC)Kazu Hirata3-10/+10
2023-12-08[RISCV] Remove Type::isRVVType() and replace with ↵Craig Topper5-14/+4
isRVVSizelessBuiltinType(). NFC These both do the same thing, but some profiling on a Releast+Asserts build suggests isRVVSizelessBuiltinType() is the more efficient version so lets keep that one.
2023-12-08[clang] NFC: Remove `OptionalDirectoryEntryRefDegradesToDirectoryEntryPtr` ↵Jan Svoboda7-93/+15
(#74900)
2023-12-08[clang] NFC: Remove `OptionalFileEntryRefDegradesToFileEntryPtr` (#74899)Jan Svoboda18-124/+33
2023-12-08[ORC-RT][ORC][MachO] Fix build after 437b4f1cJan Svoboda1-2/+4
2023-12-08[scudo] do not store size inside ring buffer (#74541)Florian Mayer3-30/+35
2023-12-08[ORC-RT][ORC][MachO] Refactor dlsym to extract a reusable bulk-lookup API.Lang Hames1-72/+69
MachOPlatformRuntimeState::lookupSymbols encapsulates the approach used in dlsym in bb41fc682ee, but generalizes it to multiple symbols: 1. try to resolve symbols locally 2. issue a push-request for any unresolved symbols 3. re-try local resolution In the future lookupSymbols can serve as the basis for a public bulk lookup API in the ORC runtime.
2023-12-08[clang] NFCI: Make `ModuleFile::File` non-optional (#74892)Jan Svoboda5-39/+29
AFAICT, `ModuleFile::File` can be `std::nullopt` only for PCM files loaded from the standard input. This patch starts setting that variable to `FileManager::getSTDIN()` in that case, which makes it possible to remove the optionality, and also simplifies code that actually reads the file. This is part of an effort to get rid of `Optional{File,Directory}EntryRefDegradesTo{File,Directory}EntryPtr`.
2023-12-08[HLSL][DirectX] Avoid some unnecessary casting. NFCJustin Bogner3-8/+8
2023-12-08[clang-format][NFC] Clean up the driver and getStyle() in Format.cpp (#74794)Owen Pan2-70/+65
2023-12-08[MCSchedule] Simplify and remove a C++20-deprecated is_pod call. NFCFangrui Song5-9/+8
2023-12-08[SLP]Improve findReusedOrderedScalars processing, NFCI.Alexey Bataev1-42/+68
Tries to simplify structural complexity of the findReusedOrderedScalars function.
2023-12-08[Flang][OpenMP][Semantics] Modify errors to warnings for semantic checks in ↵Raghu Maddhipatla2-6/+9
IS_DEVICE_PTR related to list-items being dummy arguments. (#74370) Changed semantic check from giving error to giving a warning about deprecation from OpenMP 5.2 and later about checks for dummy argument list-items present on IS_DEVICE_PTR clause. This P is blocker for https://github.com/llvm/llvm-project/pull/71255
2023-12-09[llvm-readobj][AArch64][ELF][PAC] Support ELF AUTH constants (#74874)Daniil Kovalev11-26/+302
Reapply llvm/llvm-project#72713 after fixing formatted printing of `uint64_t` values as hex (see failing build here https://lab.llvm.org/buildbot/#/builders/186/builds/13604). This patch adds llvm-readobj support for: - Dynamic `R_AARCH64_AUTH_*` relocations (including RELR compressed AUTH relocations) as described here: https://github.com/ARM-software/abi-aa/blob/main/pauthabielf64/pauthabielf64.rst#auth-variant-dynamic-relocations - `.note.AARCH64-PAUTH-ABI-tag` section as defined here https://github.com/ARM-software/abi-aa/blob/main/pauthabielf64/pauthabielf64.rst#elf-marking