- Jan 13, 2023
-
-
Johannes Doerfert authored
-
Artem Belevich authored
libc++ introduced a handful of internal functions that may or may not be constexpr, depending on C++ version. For pre-constexpr variants we must declare __device__ counterparts. Otherwise the code fails to compile on the GPU side. See https://reviews.llvm.org/D79555 Differential Revision: https://reviews.llvm.org/D141555
-
Diego Caballero authored
When detecting reductions, make sure the block argument is from the linalg generic op. This fixes https://github.com/iree-org/iree/issues/11779 . Co-authored-by:
Andrzej Warzynski <andrzej.warzynski@arm.com> Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D141413
-
bixia1 authored
Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D141554
-
Johannes Doerfert authored
We use the actual access (=remote) instruction when reasoning about accesses, except for one leftover use case of the local instruction. This caused us to potentially ignore the dominating write if the read and write were in a different function than the (stack) allocation. Reported by @ye-luo
-
Nikolas Klauser authored
Most people don't have a versioned clang-tidy locally. This allows them to still run the clang-tidy test if they have a suitable version. Reviewed By: ldionne, #libc Spies: libcxx-commits, arichardson Differential Revision: https://reviews.llvm.org/D141241
-
River Riddle authored
GCC was barfing on template deduction for ArrayRef parameters in some situations.
-
River Riddle authored
This gives a better diagnostic in general, because it indicates that the user didn't close out the last open puncutation range. For example: ``` foo.op { some.op -> !blah.pointer< } ``` We want the error to hint about the unclosed `<`, not the `}` (which isn't really in the context of the type). Differential Revision: https://reviews.llvm.org/D141635 -
Florian Mayer authored
-
Eric Li authored
Add a `getFileRange` function alongside the existing `getRangeForEdit` as a way to get a contiguous range within a single file (similar to `getRangeForEdit`) but without the restriction that it cannot be in a system header. This can be used where a tool may want to use the range to extract the source text. In such cases, we don't want to restrict this from pulling from system headers. Differential Revision: https://reviews.llvm.org/D141634
-
Joseph Huber authored
Summary: This patch changes around some of the names for the temp files we generate. This also emits the `postlink` and `postopt` temp files. We don't use the built-in save temps from LTO right now because it doesn't give the ASM properly. We may be able to fix that in the future.
-
Florian Hahn authored
Add EarlyIfConversion tests for AArch64 where the condition is a load with invariant operands. A follow-up patch will propose a heuristic to consider such conditions predictable.
-
Peiming Liu authored
Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D140712
-
Siva Chandra Reddy authored
-
Roman Lebedev authored
The bool is in the wrong place and might get implicitly converted from the previous second argument - a pointer. Thinking about it more, it's not really the best place for that functionality anyways, only a single caller needs that. This reverts commit 3c5b1f2d.
-
Jeff Niu authored
-
Med Ismail Bennani authored
Signed-off-by:Med Ismail Bennani <medismail.bennani@gmail.com>
-
Roman Lebedev authored
We really can't recover that knowledge, and `nounwind` knowledge, (and not just a lack of the unwind edge, aka `call` instead of `invoke`), is e.g. part of the reasoning in e.g. `mayHaveSideEffects()`. Note that this is call-site-specific knowledge, just because some callsite had an `unreachable` unwind edge, does not mean that all will.
-
Roman Lebedev authored
-
Jordan Rupprecht authored
The Annotations helper class does not have a gtest or gmock dependency, but because it's bundled with the rest of TestingSupport, it gets one. By splitting it out, a target can use it without being forced to use LLVM's copy of gtest. Reviewed By: GMNGeoffrey, sammccall, gribozavr2 Differential Revision: https://reviews.llvm.org/D141175
-
Lang Hames authored
Use an private struct, RuntimeFunction, to to keep the name and address of each registration function together, and rename the member variables with their purpose rather than the full name of the function in the runtime.
-
Jeff Niu authored
Ops that use TypesMatchWith to constrain result types for verification and to infer result types during parser generation should also be able to have the `inferReturnTypes` method auto generated. This patch upgrades the logic for generating `inferReturnTypes` to handle the TypesMatchWith trait by building a type inference graph where each edge corresponds to "type of A can be inferred from type of B", supporting transformers other than `"$_self"`. Reviewed By: lattner, rriddle Differential Revision: https://reviews.llvm.org/D141231
-
Maksim Panchenko authored
Only display used values for -print-sorted-by option when printing help. Differential Revision: https://reviews.llvm.org/D141209
-
Jeff Niu authored
The patch adds operations to `BlockAndValueMapping` and renames it to `IRMapping`. When operations are cloned, old operations are mapped to the cloned operations. This allows mapping from an operation to a cloned operation. Example: ``` Operation *opWithRegion = ... Operation *opInsideRegion = &opWithRegion->front().front(); IRMapping map Operation *newOpWithRegion = opWithRegion->clone(map); Operation *newOpInsideRegion = map.lookupOrNull(opInsideRegion); ``` Migration instructions: All includes to `mlir/IR/BlockAndValueMapping.h` should be replaced with `mlir/IR/IRMapping.h`. All uses of `BlockAndValueMapping` need to be renamed to `IRMapping`. Reviewed By: rriddle, mehdi_amini Differential Revision: https://reviews.llvm.org/D139665
-
Luke Nicholson authored
Several map implementations require that map calls provide a page aligned size. Reviewed By: fmayer Differential Revision: https://reviews.llvm.org/D141630
-
Fangrui Song authored
-
Med Ismail Bennani authored
This patch introduces both the ScriptedPlatformInterface and the ScriptedPlatformPythonInterface. As the name suggests, these calls will be used to call into the Scripted Platform python implementation from the C++ Scripted Platform plugin instance. Differential Revision: https://reviews.llvm.org/D139251 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch introduces both the Scripted Platform python base implementation and an example for it. The base implementation is embedded in lldb python module under `lldb.plugins.scripted_platform`. This patch also refactor the various SWIG methods to create scripted objects into a single method, that is now shared between the Scripted Platform, Process and Thread. It also replaces the target argument by a execution context object. Differential Revision: https://reviews.llvm.org/D139250 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch is preparatory work for Scripted Platform support and does multiple things: First, it introduces new options for the `platform select` command and `SBPlatform::Create` API, to hold a reference to the debugger object, the name of the python script managing the Scripted Platform and a structured data dictionary that the user can use to pass arbitrary data. Then, it updates the various `Create` and `GetOrCreate` methods for the `Platform` and `PlatformList` classes to pass down the new parameter to the `Platform::CreateInstance` callbacks. Finally, it updates every callback to reflect these changes. Differential Revision: https://reviews.llvm.org/D139249 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch makes `ScriptedPythonInterface::GetStatusFromMethod` take a parameter pack as an argument. That will allow it to pass arbitrary arguments to the python method. Differential Revision: https://reviews.llvm.org/D139248 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch moves the ScriptedProcessInfo class out of the ScriptedProcess and hoist it as a standalone interpreter class, so it can be reused with the Scripted Platform. Differential Revision: https://reviews.llvm.org/D139247 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Nawrin Sultana authored
This patch fixes assertion failure in dynamic schedule with 8 byte induction variable. It uses acquire load instead of relaxed to ensure that steal_lock pointer is not NULL. Differential Revision: https://reviews.llvm.org/D139373
-
Joseph Huber authored
Summary: These can cause failures on GCC-7 it seems. We should explicitly move them to prevent this from causing build failures.
-
Yitzhak Mandelbaum authored
This patch includes two related changes: 1. Rewrite `compare` operation to be sound. Current version checks for equality of `isNonEmptyOptional` on both values, judging the values `Same` when the results are equal. While that works when both are true, it is problematic when they are both false, because there are four cases in which that's can occur: both empty, one empty and one unknown (which is two cases), and both unknown. In the latter three cases, it is unsound to judge them `Same`. This patch changes `compare` to explicitly check for case of `both empty` and then judge any other case `Different`. 2. With the change to `compare`, a number of common cases will no longer terminate. So, we also implement widening to properly handle those cases and recover termination. Drive-by: improve performance of `merge` operation. Of the new tests, the code before the patch fails * ReassignValueInLoopToSetUnsafe, and * ReassignValueInLoopToUnknownUnsafe. Differential Revision: https://reviews.llvm.org/D140344
-
Matt Arsenault authored
-
Matt Arsenault authored
This mostly reverts commit 270e96f4. Keep the attributor related changes around, but functionally restore the old behavior as a workaround. Device enqueue goes back to not working at -O0 with this version.
-
Nathan James authored
There's no reason for these methods to be non-const. Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D138566
-
Johannes Doerfert authored
This reverts commit 9e08b083 and ensures signature rewriting also updates dead call sites to avoid the call graph assertion.
-
Alexander Yermolovich authored
Missed one formating that was reversed. Reviewed By: hoy, zhuhan0 Differential Revision: https://reviews.llvm.org/D141624
-
LLVM GN Syncbot authored
-