- Mar 02, 2023
-
-
Timm Bäder authored
As well as support for CompoundLiteralExprs. Differential Revision: https://reviews.llvm.org/D140668
-
Peter Collingbourne authored
We were previously ignoring the MEMORY command unless SECTIONS was also specified. Fix it. Differential Revision: https://reviews.llvm.org/D145132
-
Vadim Paretsky (Intel Americas Inc) authored
.def file, functionality supported by 'lib'. This incompatibility is breaking clang based Windows openmp builds. This revision adds basic support for this feature to llvm-lib by cloning the corresponding code from 'dlltool'. Differential Revision:https://reviews.llvm.org/D144765
-
Fangrui Song authored
This reverts commit a98ee274. It caused MemorySanitizer use-of-uninitialized-value in matchUnaryPermuteShuffle.
-
Shivam kunwar authored
Differential Revision: https://reviews.llvm.org/D145087
-
Wu, Yingcong authored
The pointer `Buffer` is not changed, so there is no need to use reference, and the `Pod` here should use reference to avoid meaningless copy. Reviewed By: snehasish Differential Revision: https://reviews.llvm.org/D145024
-
Jun Ma authored
This patch skips redundant explicit masks of the shift count since it is implied inside wasm shift instruction. Differential Revision: https://reviews.llvm.org/D144619
-
Zhongyunde authored
This reverts commit 74ad19c2. test unittests/ProfileData/ProfileDataTests fails when built with optimisations level -O1 with clang including this patch.
-
Michal Paszkowski authored
-
Lang Hames authored
We should review memory safety in the interpreter (https://github.com/llvm/llvm-project/issues/58086), but for now just silence the warnings to reduce noise. rdar://100555195
-
Lang Hames authored
We can get the triple from the ExecutionSession, so clients shouldn't have to provide it.
-
Michael Jones authored
The config is based on the ARM MacOS config, but with fenv and math functions disabled. This should unblock this bug: https://github.com/llvm/llvm-project/issues/60910 Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D145099
-
Nick Desaulniers authored
When generating spills (stores) for values produced by INLINEASM_BR instructions, make sure to insert one spill per indirect target. Otherwise the reload generated may load from a stack slot that has not yet been stored to (resulting in a load of an uninitialized stack slot). Link: https://github.com/llvm/llvm-project/issues/53562 Fixes: https://github.com/llvm/llvm-project/issues/60855 Reviewed By: MatzeB Differential Revision: https://reviews.llvm.org/D144907
-
Nick Desaulniers authored
This test demonstrates an issue with callbr outputs being used along indirect edges when using regallocfast. Link: https://github.com/llvm/llvm-project/issues/60855 Differential Revision: https://reviews.llvm.org/D144906
-
Rahul Kayaith authored
The raw `OpView` classes are used to bypass the constructors of `OpView` subclasses, but having a separate class can create some confusing behaviour, e.g.: ``` op = MyOp(...) # fails, lhs is 'MyOp', rhs is '_MyOp' assert type(op) == type(op.operation.opview) ``` Instead we can use `__new__` to achieve the same thing without a separate class: ``` my_op = MyOp.__new__(MyOp) OpView.__init__(my_op, op) ``` Reviewed By: stellaraccident Differential Revision: https://reviews.llvm.org/D143830
-
rkayaith authored
`PassManager.run` is currently restricted to running on `builtin.module` ops, but this restriction doesn't exist on the C++ side. This updates it to take `ir.Operation/OpView` instead of `ir.Module`. Depends on D143354 Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D143356
-
rkayaith authored
`mlirPassManagerRun` is currently restricted to running on `builtin.module` ops, but this restriction doesn't exist on the C++ side. This renames it to `mlirPassManagerRunOnOp` and updates it to take `MlirOperation` instead of `MlirModule`. Depends on D143352 Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D143354
-
rkayaith authored
Currently the bindings only allow for parsing IR with a top-level `builtin.module` op, since the parse APIs insert an implicit module op. This change adds `Operation.parse`, which returns whatever top-level op is actually in the source. To simplify parsing of specific operations, `OpView.parse` is also added, which handles the error checking for `OpView` subclasses. Reviewed By: ftynse, stellaraccident Differential Revision: https://reviews.llvm.org/D143352
-
Rahul Kayaith authored
Currently these functions report errors directly to stderr, this updates them to use diagnostics instead. This also makes partially-consumed strings an error if the `numRead` parameter isn't provided (the docstrings already claimed this happened, but it didn't.) While here I also tried to reduce the number of overloads by switching to using default parameters. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D144804
-
Arthur Eubanks authored
-
Joseph Huber authored
Summary: Tihs patch is mostly NFC to fix some warning currently present in OpenMP offloading plugins. Specifically this mostly removes the use of Twine variables in favor of LLVM's small string. Twine variables are prone to use-after-free and this is a cleaner way to concatenate a string.
-
Nick Desaulniers authored
These can help us better understand what __builtin_constant_p and __builtin_object_size get folded to. $ clang -mllvm -debug-only=lower-is-constant-intrinsic ... Reviewed By: void Differential Revision: https://reviews.llvm.org/D143521
-
Jeff Bailey authored
When running the libc tests under vscode, I got an error about a mismatches exception declaration for strerror. Since string.h seems to be getting included transitively anyway, just include it and rely on its definition. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D144803
-
Peiming Liu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D145091
-
Konstantin Belousov authored
Only 64bit architectures can be supported this way, because libcxx defines __cxx_contention_t to be int64_t for FreeBSD, and 32bit arches do not have a kind of UMTX_OP_WAIT_INT64_PRIVATE operation. Fixes: 83387dbc Reviewed by: arichardson, ldionne, emaste, Mordante Differential Revision: https://reviews.llvm.org/D142422
-
Andrew Gozillon authored
This change seeks to emit the full module from the bbc tool and not just the body. This change currently does not break existing tests when running check-(mlir, flang, all). This stops the discarding of any attributes that may be applied to the Module during compilation. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D144869
-
Louis Dionne authored
apple-cxx20 is equivalent to generic-cxx20, so we don't need it anymore. It had been introduced when clang-tidy was enabled explicitly from run-buildbot, but that's not needed anymore since clang-tidy is enabled from the buildkite pipeline definition.
-
Louis Dionne authored
This broke the CI after 813e1da9 was checked in.
-
Joseph Huber authored
The next-gen plugins did not properly set the values from `OMP_NUM_TEAMS` and `OMP_TEAMS_THREAD_LIMIT`. This is because these maximum values are set by each plugin to its hardware maximum. This happens *after* the previous initialization. Move it to the correct place and then add a test. Fixes https://github.com/llvm/llvm-project/issues/61082 Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D145105
-
Sjoerd Meijer authored
Differential Revision: https://reviews.llvm.org/D145067
-
Slava Zakharin authored
If the interface specifies BIND(C), then the declarations using this interface inherit BIND(C), and if they are referenced via use association they must be classified as BIND(C) subprograms. Differential Revision: https://reviews.llvm.org/D145084
-
Louis Dionne authored
Move multiple tests to .compile.pass.cpp when they were not running anything and reindent a bit more consistently.
-
Leonard Chan authored
Fuchsia is exclusively 64-bit so this throw an error when using this triple. Differential Revision: https://reviews.llvm.org/D144998
-
Frederik Gossen authored
Add pass to print the entire IR on the debug stream. This is meant for debugging purposes to inspect the IR at a specific point in the pipeline. Differential Revision: https://reviews.llvm.org/D144918
-
Renaud-K authored
https://reviews.llvm.org/D144921
-
Fangrui Song authored
Following recent changes to remove non-core legacy passes.
-
Dan Liew authored
This patch adds the following methods: * `GetType()` * `GetWatchValueKind()` * `GetWatchSpec()` * `IsWatchingReads()` * `IsWatchingWrites()` These mostly expose methods that `lldb_private::Watchpoint` already had. Tests are included that exercise these new methods. The motivation for exposing these are as follows: * `GetType()` - With this information and the address from a watchpoint it is now possible to construct an SBValue from an SBWatchpoint. Previously this wasn't possible. The included test case illustrates doing this. * `GetWatchValueKind()` - This allows the caller to determine whether the watchpoint is a variable watchpoint or an expression watchpoint. A new enum (`WatchpointValueKind`) has been introduced to represent the return values. Unfortunately the name `WatchpointKind` was already taken. * `GetWatchSpec()` - This allows (at least for variable watchpoints) to use a sensible name for SBValues created from an SBWatchpoint. * `IsWatchingReads()` - This allow checking if a watchpoint is monitoring read accesses. * `IsWatchingWRites()` - This allow checking if a watchpoint is monitoring write accesses. rdar://105606978 Reviewers: jingham, mib, bulbazord, jasonmolenda, JDevlieghere Differential Revision: https://reviews.llvm.org/D144937
-
Mitch Phillips authored
Adds the new AArch64-ABI dynamic entry generation to LLD. This will allow Android to move from the Android-specific ELF note onto the dynamic entries. Change the behaviour of an unspecified --android-memtag-mode. Now, when unspecified, this will print a warning that you're doing a no-op, rather than implicitly turning on sync mode. This is important for MTE globals later, where a binary containing static tagged global descriptors shouldn't have MTE turned on without specific intent being passed to the linker. For now, continue to emit the Android ELF note by default. In future, we can probably make it only emit the note when provided a flag. Do a quick NFC-cleanup of the ELF note while we're here. It doesn't change anything about the ELF note itself, but makes it more clear to the reader of the code what alignment requirements are being (previously implicitly) met. Reviewed By: fmayer, MaskRay Differential Revision: https://reviews.llvm.org/D143769
-
usama hameed authored
since it is not supported Differential Revision: https://reviews.llvm.org/D144672
-