- Sep 13, 2023
-
-
Brendan Dahl authored
Previously, annotations were only emitted for function definitions. With this change annotations are also emitted for declarations. Also, emitting function annotations is now deferred until the end so that the most up to date declaration is used which will have any inherited annotations. Differential Revision: https://reviews.llvm.org/D156172/new/
-
Aart Bik authored
This cleans up a unnecessary code that changes zero size allocation to avoid the following error message 'cuMemAlloc(&ptr, sizeBytes)' failed with 'CUDA_ERROR_INVALID_VALUE'
-
Tom Stellard authored
-
Joseph Huber authored
Summary: We currently call the GPU routine to terminate the current thread in three separate locations .This should be wrapped into a helper function to simplify the implementation.
-
Aaron Jarmusch authored
Fix for an issue where clang was not adding the address space according to the data layout, instead was using the default which resulted in a crash at times. The fix includes changes to the cases of LargeCapMemAlloc and CGroupMemAlloc where we are setting the AddrSpace according to the DataLayout.
-
Siva Chandra authored
-
Shoaib Meenai authored
It's needed by compiler-rt/test/profile/instrprof-gc-sections.c, which became active after 2344a72d.
-
frgossen authored
-
Martin Storsjö authored
The FileIndex values returned from GetFileInformationByHandle are considered stable and uniquely identifying a file, as long as the handle is open. When handles are closed, there are no guarantees for their stability or uniqueness. On some file systems (such as NTFS), the indices are documented to be stable even across handles. But with some file systems, in particular network mounts, file indices can be reused very soon after handles are closed. When such file indices are used for LLVM's UniqueID, files are considered duplicates as soon as the filesystem driver happens to have used the same file index for the handle used to inspect the file. This caused widespread, non-obvious (seemingly random) breakage. This can happen e.g. if running on a directory that is shared via Remote Desktop or VirtualBox. To avoid the issue, use a hash of the canonicalized path for the file as unique identifier, instead of using FileIndex. This fixes https://github.com/llvm/llv...
-
Kazu Hirata authored
This patch fixes: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:2493:33: error: unused variable 'UserSGPRInfo' [-Werror,-Wunused-variable]
-
Konstantin Varlamov authored
The safe mode is in-between the hardened and the debug modes, extending the checks contained in the hardened mode with certain checks that are relatively cheap and prevent common sources of errors but aren't security-critical. Thus, the safe mode trades off some performance for a wider set of checks, but unlike the debug mode, it can still be used in production. Differential Revision: https://reviews.llvm.org/D158823
-
Siva Chandra authored
Also, we removed CMP0076 exception sometime back but did not adjust the build rules. The adjustment in the build rules is also done in this patch.
-
Yunlong Liu authored
Splits the cleanup block lowered from AsyncToAsyncRuntime. The incentive of this change is to clarify the CFG branched by `async.coro.suspend`. The `async.coro.suspend` op branches into 3 blocks, depending on the state of the coroutine: 1) suspend 2) resume 3) cleanup The behavior before this change is that after the coroutine is resumed and completed, it will jump to a shared cleanup block for destroying the states of coroutines. The CFG looks like the following, Entry block | \ resume | | | Cleanup | End This CFG can potentially be problematic, because the `Cleanup` block is a shared block and it is not dominated by `resume`. For instance, if some pass wants to add some specific cleanup mechanism to resume, it can be confused and add them to the shared `Cleanup`, which leads to the "operand not dominate its use" error because of the existence of the other "Entry->cleanup" path. After this change, the CFG will look like the following, The overall structure of the lowered CFG can be the following, Entry (calling async.coro.suspend) | \ Resume Destroy (duplicate of Cleanup) | | Cleanup | | / End (ends the corontine) In this case, the Cleanup block tied to the Resume block will be isolated from the other path and it is strictly dominated by "Resume". -
AdityaK authored
The builtin_expect(), and C++20's likely, unlikely attributes assign branch_weights to annotated branches. This patch adds the the ability to query branch !prof metadata and improve static analysis based on that. Fixes: https://github.com/llvm/llvm-project/issues/64998 Reviewers: tejohnson, efriedma Differential Revision: https://reviews.llvm.org/D159336
-
Cassie Jones authored
- Move the multiprocessing.Pool initializer to a top-level function, it was previously causing a pickle failure with my machine's python. - Change the `env python` to `env python3` for convenience
-
Shafik Yaghmour authored
[Clang] Fix crash in Parser::ParseDirectDeclarator by adding check that token is not an annotation token In Parser::ParseDirectDeclarator(...) in some cases ill-formed code can cause an annotation token to end up where it was not expected. The fix is to add a !Tok.isAnnotation() guard before attempting to access identifier info. This fixes: https://github.com/llvm/llvm-project/issues/64836 Differential Revision: https://reviews.llvm.org/D158804
-
Christopher Ferris authored
Fuchsia already uses a different main function for tests, so allow anybody to use this mechanism. Specifically, Android has a test main that allows tests to be run in isolation and in parallel which speeds up the unit test runs from ~14 seconds to ~4 seconds. Reviewed By: Chia-hungDuan Differential Revision: https://reviews.llvm.org/D159501
-
Reagan Bohan authored
Differential Revision: https://reviews.llvm.org/D149635
-
Valentin Clement (バレンタイン クレメン) authored
Add semantic check for `!$acc atomic update`. RHS and LHS of the update assignment must be scalar. Without this check the code was going all the way to MLIR and trigger a verifier error. This gives better user error message.
-
Philip Reames authored
Instead of switching on type before and after common code, use a helper function. This matches the style of DAGCombine.cpp more closely, and makes porting candidate changes from one place to the other much easier.
-
Konstantin Boyarinov authored
Was part of D118114. Unify test cases for `std::map::count` method and add test case for the comparator that marked `final` Differential Revision: https://reviews.llvm.org/D118232
-
Yingwei Zheng authored
This patch adds support for syntax highlighting RISC-V assembly. Related patch: AArch64: https://reviews.llvm.org/D159162 X86: https://reviews.llvm.org/D159241
-
Zero Omega authored
This PR updates GoogleTest to v1.14.0 . It also updates the Clang ASTTest to fix a compatibility issue with the new GoogleTest.
-
Slava Zakharin authored
This patch updates the OpenACC LIT tests to invoke HLFIR lowering in addition to FIR lowering. The tests checks were updated accordingly.
-
CarolineConcatto authored
The new ACLE PR#225[1] now combines the slice parameters for some builtins. This patch is the #2 of 3 patches to update the interface. Slice specifies the ZA slice number directly and needs to be explicity implemented by the "user" with the base register plus the immediate offset [1]https://github.com/ARM-software/acle/pull/225/files
-
Bjorn Pettersson authored
-
CarolineConcatto authored
The new ACLE PR#225[1] now combines the slice parameters for some builtins. [1]https://github.com/ARM-software/acle/pull/225/files
-
frgossen authored
-
- Sep 12, 2023
-
-
Austin Kerbow authored
Factor out and unify some common code that calculates and tracks the number of user SGRPs. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D159439
-
Siva Chandra authored
This way, they can be added as deps to other library targets without any special handling.
-
Louis Dionne authored
-
Jay Foad authored
Fix some problems in hand written MIR tests that only showed up when I tried to run LiveIntervals on them, after which they failed machine verification with "Use not jointly dominated by defs" errors.
-
Adrian Prantl authored
…ontainerGenerator Currently it remains uninitialized and thus always uses the LLVM default of 4.
-
Natalie Chouinard authored
Get the pointer size from the datalayout via the TargetMachine and remove the helper function that hardcoded it. This fixes an issue caused by mismatched pointer sizes between the two for logical SPIR-V, since the computePointerSize function still defaulted to 32-bit ptr sizes.
-
Felipe de Azevedo Piovezan authored
The AsmPrinter currently assumes that a Debug Variable will have all of its fragments with the same "kind" of location (i.e. all in the stack or all in entry values). This is not enforced by the verifier, so it needs to be handled properly. Until we do so, we conservatively drop one of the fragments. Differential Revision: https://reviews.llvm.org/D159468
-
Jakub Kuderski authored
- Fix values of Matrix Operand bit enums. - Add verification for the aligned Memory Operand attributes. Mark the 'Aligned' enumerant as not supported. The target test passes validation with `spirv-val`.
-
Benjamin Kramer authored
This triggers a lot of -Wctad-maybe-unsupported
-
Louis Dionne authored
Fixes #65125
-