- Oct 26, 2023
-
-
Alexander Yermolovich authored
This is pre-cursor patch to enabling type units with DWARF5 acceleration tables. With this change it allows for entries to contain offsets directly, this way type units do not need to be preserved until .debug_names is written out.
-
Craig Topper authored
This includes support for using GPRs, FPRs, and stack.
-
Joseph Huber authored
Summary: While this is technically a no-op for AMDGPU hardware, in cases where the user would see fit to add an explicit wavefront sync on Nvidia hardware, we should also inform the LLVM optimizer that this control flow is convergent so we do not reorder blocks.
-
Joseph Huber authored
Summary: This patch simply adds the `-fconvergent-functions` flag to the GPU compilation. This is in relation to the behaviour of SIMT architectures under divergence. With the flag, we assume every function is convergent by default and rely on the compiler's divergence analysis to transform it if possible. Fixes: https://github.com/llvm/llvm-project/issues/63853
-
Petr Hosek authored
When a target sets LLVM_ENABLE_RUNTIMES, we should only generate proxy targets for those runtimes rather than using the global list which may contain runtimes that are not supported by that particular target.
-
Jessica Clarke authored
Fixes 567a660a
-
Nishant Patel authored
If gpu.alloc has no asyn deependency ( in case if gpu.alloc has hostShared allocation), create a new stream & synchronize. This PR is follow up to #66401
-
Guray Ozen authored
This PR fixes the incorrect `mov` instruction in PTX. We actually move a predicate here, not u32, so the correct instruction should be `mov.pred`.
-
Joseph Huber authored
Summary: This should be `kind` and not `arch`.
-
jeffreytan81 authored
While using dwarf5 `.debug_names` in internal large targets, we noticed a performance issue (around 10 seconds delay) while `lldb-vscode` tries to show `scopes` for a compile unit. Profiling shows the bottleneck is inside `DebugNamesDWARFIndex::GetGlobalVariables` which linearly search all index entries belongs to a compile unit. This patch improves the performance by using the compile units list to filter first before checking index entries. This significantly improves the performance (drops from 10 seconds => under 1 second) in the split dwarf situation because each compile unit has its own named index. --------- Co-authored-by:jeffreytan81 <jeffreytan@fb.com>
-
Piotr Zegar authored
[clang-tidy] Ignore deleted functions in cppcoreguidelines-rvalue-reference-param-not-moved (#69514) Ignore functions and constructors that are maked deleted or defaulted in cppcoreguidelines-rvalue-reference-param-not-moved check. Fixes #69412
-
Matthias Braun authored
e3cf80c5 affected block placement of some tests in the experimental m68k target. This updates them.
-
Alina Sbirlea authored
Change cc2fbc64 introduced -Wdangling warning, use temporaries to resolve. llvm/lib/Transforms/Utils/CodeLayout.cpp:764:27: error: temporary whose address is used as value of local variable '[minDensity, maxDensity]' will be destroyed at the end of the full-expression [-Werror,-Wdangling] 764 | std::minmax(ChainPred->density(), ChainSucc->density()); llvm/lib/Transforms/Utils/CodeLayout.cpp:764:49: error: temporary whose address is used as value of local variable '[minDensity, maxDensity]' will be destroyed at the end of the full-expression [-Werror,-Wdangling] 764 | std::minmax(ChainPred->density(), ChainSucc->density());
-
Craig Topper authored
This effectively reverts f912d21e This was originally done for consistency with RISCVISD::ADD_LO so that all nodes were emitted as RISCVISD nodes. I've received feedback a couple times that its not worth it. So I'm putting it back.
-
Craig Topper authored
MipsIncomingValueHandler::assignCustomValue should return 1 instead of 2. The return value is the number of additional ArgLocs being consumed. It's assumed that at least 1 is consumed. Correct the LocVT used for the spill when there are no registers left. It should be f64 instead of i32. This allows a workaround to be removed in the SelectionDAG path.
-
Nick Renieris authored
Maps to [`CXCursor_ConceptDecl`](https://github.com/llvm/llvm-project/blob/ee8524087c78a673fcf5486ded69ee597a85e0f1/clang/include/clang-c/Index.h#L2716), added in ee852408. Without this I get this error on my codebase which uses C++20 concept decls: ``` ValueError: Unknown template argument kind 604 ```
-
Mircea Trofin authored
-
Craig Topper authored
This fixes i8->i48 on RV64.
-
ZijunZhaoCCK authored
The APIs and the feature test macro are both exposed. This is compatible with how GCC is exposing the functionality.
-
Stanislav Mekhanoshin authored
This is mostly NFCI as V_MOV_B64_PSEUDO is selected instead and expanded past RA.
-
Mark de Wever authored
This adds the data formatters for chrono duration typedefs. Reviewed By: Michael137 Differential Revision: https://reviews.llvm.org/D159127
-
Med Ismail Bennani authored
Signed-off-by:Med Ismail Bennani <ismail@bennani.ma>
-
Joseph Huber authored
Summary: This version is required to support the 'activemask' feature which is used for certain features, such as reductions. This ties the implementation of the DeviceRTL roughly to the features provided by the CUDA 9.0 release, which should be sufficienly old as to not cause problems since this is a minor version jump that corresponds to the release of `sm_53`.
-
Craig Topper authored
This fixes i8->i16 on RV32/RV64 and i8/i16/i32->i64 on RV64.
-
Shafik Yaghmour authored
[Clang] Ensure zero-init is not overridden when initializing a base class in a constant expression context (#70150) During constant evaluation when value-initializing a class if the base class was default-initialized it would undue the previously zero-initialized class members. This fixes the way we handle default initialization to avoid initializing over an already initialized member to an indeterminate value. Fixes: https://github.com/llvm/llvm-project/issues/69890
-
Simon Pilgrim authored
Change i686 check-prefix to the more standard X86 instead of I32
-
Med Ismail Bennani authored
This patch changes the way plugin objects used with Scripted Interfaces are created. Instead of implementing a different SWIG method to create the object for every scripted interface, this patch makes the creation more generic by re-using some of the ScriptedPythonInterface templated Dispatch code. This patch also improves error handling of the object creation by returning an `llvm::Expected`. Signed-off-by:
Med Ismail Bennani <ismail@bennani.ma> Signed-off-by:
Med Ismail Bennani <ismail@bennani.ma>
-
Christudasan Devadasan authored
The readlane & writelane instructions don't really depend on the the EXEC mask and they should return false from here.
-
Maksim Levental authored
Similar to https://github.com/llvm/llvm-project/pull/70108.
-
Ramkumar Ramachandra authored
With the recent change 98c90a13 (ISel: introduce vector ISD::LRINT, ISD::LLRINT; custom RISCV lowering), it is now possible to scalarize llvm.lrint and llvm.llrint with a trivial change to VectorUtils. In preparation for this change, and the corresponding test update, add a negative test for lrint and llrint.
-
Ramkumar Ramachandra authored
To follow-up on a06be8a2 (SLP/RISCV: add negative test for lrint), add a negative test for llvm.llrint as well, and increase the coverage to cover vectors of length 2, 4, and 8, and the i32 variant of lrint, in preparation to get SLPVectorizer to vectorize both lrint and llrint. This is now possible with the recent change 98c90a13 (ISel: introduce vector ISD::LRINT, ISD::LLRINT; custom RISCV lowering).
-
Min-Yih Hsu authored
This patch also tests the fallback of unsupported formal arguments.
-
- Oct 25, 2023
-
-
Arseny Kapoulkine authored
The implementation of -Wzero-as-null-pointer-constant was done before the following fix has been committed to GCC: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=752e7593b0f19af233a0b7e72daab8413662b605;hp=298434c916c14e8adca2cab8a746aee29038c5b3 As a result, clang and gcc diverge on the use of `__null` and, consequently, on the use of `NULL` on systems like Linux/macOS where `NULL` is defined as `__null`. This is a problem for compatibility between gcc and clang, particularly for code bases that support C++98 or for single-source libraries that are implemented in C, but compiled as C++ via inclusion into a C++ translation unit. Code like this can not be changed to use `nullptr`, as it needs to maintain compatibility with C before C23 or C++ before C++11, but warns on the use of `NULL` in clang. The warning `Wzero-as-null-pointer-constant` is still useful with this change, as it allows to change `0` to `NULL`, which fixes gcc warnings and helps the reader distinguish between pointers and non-pointers. Users who require a full C++11 modernization pass can still use clang-tidy for that purpose.
-
Simon Pilgrim authored
Fixes Issue #70208
-
Juergen Ributzka authored
Fix the use of tapi_target in getPlatformFromName.
-
Joseph Huber authored
Summary: This function needs `void` as the arguments to be ABI compatbile with what is actually defined. This is enforced when doing CUDA separable linking of the runtime.
-
Joseph Huber authored
Summary: This accidentally was a dangling reference and caused issues when actually used. Make sure that the memory is saved before the job is created.
-
bjacob authored
Linalg currently has these named ops: * `matmul` * `matvec` * `vecmat` * `batch_matmul` * `batch_matvec` But it does not have: * `batch_vecmat` This PRs adds that for consistency, and I have a short-term need for it ( https://github.com/openxla/iree/issues/15158 ), so not having this would cause some contortion on my end.
-
Youngsuk Kim authored
Remove redundant bitcasts performed on instances of `llvm::GlobalVariable`, which are pointers. Opaque pointer cleanup effort. NFC.
-
Aart Bik authored
Removes TODO, shows how to define 8-bit crd (lacking 2-bit for now)
-