- May 31, 2022
-
-
River Riddle authored
The current translation uses the old "ugly"/"raw" form which used PDLValue for the arguments and results. This commit updates the C++ generation to use the recently added sugar that allows for directly using the desired types for the arguments and result of PDL functions. In addition, this commit also properly imports the C++ class for ODS operations, constraints, and interfaces. This allows for a much more convienent C++ API than previously granted with the raw/low-level types. Differential Revision: https://reviews.llvm.org/D124817
-
River Riddle authored
We were currently only completing on the first operand because the completion check was outside of the parse loop. Differential Revision: https://reviews.llvm.org/D124784
-
River Riddle authored
This commit adds a new PDLL specific LSP command, pdll.viewOutput, that allows for viewing the intermediate outputs of a given PDLL file. The available intermediate forms currently mirror those in mlir-pdll, namely: AST, MLIR, CPP. This is extremely useful for a developer of PDLL, as it simplifies various testing, and is also quite useful for users as they can easily view what is actually being generated for their PDLL files. This new command is added to the vscode client, and is available in the right client context menu of PDLL files, or via the vscode command palette. Differential Revision: https://reviews.llvm.org/D124783
-
River Riddle authored
This allows for the results of operations to be inferred in certain contexts, and matches the support in PDL for result type inference. The main two initial circumstances are when used as a replacement of another operation, or when the operation being created implements InferTypeOpInterface. Differential Revision: https://reviews.llvm.org/D124782
-
eopXD authored
Originally, `OptLevel` isn't passed into the `MachineFunctionPass`. This lets the default parameter of `SelectionDAGISel`, which is `CodeGenOpt::Default`, be passed in. OptLevelChanger captures the optimization level with the parameter, and rather not the value within `TargetMachine`. This lets the optimization be unintentionally overwriten if other value than `CodeGenOpt::Default` passed. This patch fixes this by passing the optimization level rather than using the default value. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D126641
-
Joe Loser authored
Some algorithm ADL robustness tests are commented out, but work as is. Uncomment them. Differential Revision: https://reviews.llvm.org/D126670
-
eopXD authored
The optimization level should not be restored into O2. This is a pre-commit test case to show fix in D126641. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D126677
-
Matheus Izvekov authored
Signed-off-by:
Matheus Izvekov <mizvekov@gmail.com> Reviewed By: v.g.vassilev Differential Revision: https://reviews.llvm.org/D126674
-
Keno Fischer authored
GCC recently started setting constructor priority on init_have_lse_atomics [1] to avoid undefined initialization order with respect to other initializers, causing accidental use of ll/sc intrinsics on targets where this was not intended (which presents a minor performance problem as well as a compatibility problem for users wanting to use the rr debugger). I initially thought compiler-rt does not have the same issue as libgcc, since it looks like we're already setting init priority on the constructor. Unfortuantely, it does not appear that the HAVE_INIT_PRIORITY check is ever performed anyway, so despite appearances the init priority was not actually applied. Fix that by applying the init priority unconditionally. It has been supported in clang ever since it was first introduced and in any case for more than 14 years in both gcc and clang. MSVC is already excluded from this code path and we're already using constructors with init priority elsewhere in compiler-rt without additional check (though mostly in the sanitizer runtime, which may have more narrow target support). Regardless, I believe that for our supported compilers, if they support the constructor attribute, they should also support init priorities. While we're here, change the init priority from 101, which is the highest priority for end user applications, to instead use one of the priority levels reserved for implementations (1-100; lower integers are higher priority). GCC ended up using `90`, so this commit aligns the value in compiler-rt to the same value to ensure that there are no subtle initialization order differences between libgcc and compiler-rt. [1] https://github.com/gcc-mirror/gcc/commit/75c4e4909ae2667f56487434f99c2915b4570794 Differential Revision: https://reviews.llvm.org/D126424
-
Joel E. Denny authored
-
Louis Dionne authored
-
Krzysztof Parzyszek authored
Such vector types cannot be split at the moment, because splitting expects an even number of elements in the source type. If a target marks such a type as "split", TargetLoweringBase::computeRegisterProperties will override it with widening to the next power of 2. This could lead to issues during instruction selection when conflicting information about how to handle this type is present.
-
Matheus Izvekov authored
D126308 broke building clang standalone, as LLVM_UTILS_INSTALL_DIR is not exported. Signed-off-by:
Matheus Izvekov <mizvekov@gmail.com> Differential Revision: https://reviews.llvm.org/D126671
-
Sanjay Patel authored
(C2 >> X) >> C1 --> (C2 >> C1) >> X The shift-left form of this transform has existed since: 16f18ed7 ...but it applies to matching shift right opcodes too: https://alive2.llvm.org/ce/z/c5eQms
-
Sanjay Patel authored
The restriction goes back to: 16f18ed7 ...but the fold only replaces a shift with a shift, so that's not necessary. Generalizing to other opcodes is planned as a follow-up.
-
Sanjay Patel authored
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Nuno Lopes authored
doesn't like exit code 126 I'm afraid
-
Nuno Lopes authored
[Support] Make report_fatal_error respect its GenCrashDiag argument so it doesn't generate a backtrace There are a few places where we use report_fatal_error when the input is broken. Currently, this function always crashes LLVM with an abort signal, which then triggers the backtrace printing code. I think this is excessive, as wrong input shouldn't give a link to LLVM's github issue URL and tell users to file a bug report. We shouldn't print a stack trace either. This patch changes report_fatal_error so it uses exit() rather than abort() when its argument GenCrashDiag=false. Reviewed by: nikic, MaskRay, RKSimon Differential Revision: https://reviews.llvm.org/D126550
-
Nico Weber authored
This reverts commit e5762803. Breaks tests on mac/arm, see comment on https://reviews.llvm.org/D125052 Also revert follow-up "[gn build] Port e5762803" This reverts commit 1e01b1ec.
-
Florian Hahn authored
Test coverage for D123005.
-
Volodymyr Sapsai authored
No test changes because `err_module_odr_violation_mismatch_decl_unknown` is a catch-all when custom diagnostic is missing. And missing custom diagnostic we should fix by implementing it, not by improving the general case. But if we pass enum value not covered by 'select', clang can crash, so protect against that. Differential Revision: https://reviews.llvm.org/D126566
-
Mehdi Amini authored
-
LLVM GN Syncbot authored
-
Denis Antrushin authored
STATEPOINT is a special pseudo instruction which represent Moving GC semantic to LLVM. Every tied def/use VReg pair in STATEPOINT represent same physical register which can 'magically' change during call wrapped by statepoint. (By construction, tied use operand is not live across STATEPOINT). This means that when converting into two-address form, there is not need to insert COPY instruction before stateppoint, what TwoAddressInstruction pass does for 'regular' instructions. Reviewed By: MatzeB Differential Revision: https://reviews.llvm.org/D124631
-
Xiang Li authored
Vector types in hlsl is using clang ext_vector_type. Declaration of vector types is in builtin header hlsl.h. hlsl.h will be included by default for hlsl shader. Reviewed By: Anastasia Differential Revision: https://reviews.llvm.org/D125052
-
Louis Dionne authored
We print the same information as before, however we do it with less verbosity unless `--debug` is used.
-
Pierre Gousseau authored
Sanitizers ignore flag allocator_may_return_null=1 in strndup() calls. When OOM is emulated, this causes to the unexpected crash. Committed by pgousseau on behalf of "Kostyantyn Melnik, kmnls.kmnls@gmail.com" Reviewed by: pgousseau Differential Revision: https://reviews.llvm.org/D126452
-
- May 30, 2022
-
-
Alex Zinenko authored
Python bindings for extensions of the Transform dialect are defined in separate Python source files that can be imported on-demand, i.e., that are not imported with the "main" transform dialect. This requires a minor addition to the ODS-based bindings generator. This approach is consistent with the current model for downstream projects that are expected to bundle MLIR Python bindings: such projects can include their custom extensions into the bundle similarly to how they include their dialects. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D126208
-
Alex Zinenko authored
Vectorization is a key transformation to achieve high performance on most architectures. In the transform dialect, vectorization is implemented as a parameterizable transform op. It currently applies to a scope of payload IR delimited by some isolated-from-above op, mainly because several enabling transformations (such as affine simplification) are needed to perform vectorization and these transformation would apply to ops other than the "main" computational payload op. A separate "navigation" transform op that obtains the isolated-from-above ancestor of an op is introduced in the core transform dialect. Even though it is currently only useful for vectorization, isolated-from-above ops are a common anchor for transformations (usually implemented as passes) that is likely to be reused in the future. Depends On D126374 Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D126542
-
Hans Wennborg authored
We don't build snapshot packages anymore, so repurpose this for doing release builds instead.
-
Nikita Popov authored
If only one of the GEPs is inbounds, then after swapping, there is no guarantee that one of them will be inbounds as well (see e.g. https://alive2.llvm.org/ce/z/agaCnp). This is only a partial fix, because even if both are inbounds, the result is not necessarily inbounds (if the offsets have different signs).
-
Joel E. Denny authored
Without this patch, arguments to the `llvm::OpenMPIRBuilder::AtomicOpValue` initializer are reversed. Reviewed By: ABataev, tianshilei1992 Differential Revision: https://reviews.llvm.org/D126619
-
Arnamoy Bhattacharyya authored
[flang][OpenMP] Check for occurrence of multiple list items in nontemporal clause for simd directive This patch implements the following semantic check: A list-item cannot appear in more than one nontemporal clause. Reviewed By: kiranchandramohan, shraiysh Differential Revision: https://reviews.llvm.org/D110270
-
Nikita Popov authored
As the long explanatory comment attests, performing the modification in place is pretty tricky. Drop this unnecessary complexity and always create new instructions. This should be NFC-ish, but can probably cause difference due to worklist order.
-
Nikita Popov authored
-
Nikita Popov authored
The code was only checking for memory side-effects, but not for divergence side-effects. Replace this with a generic check.
-
Nikita Popov authored
Test both the case with and without willreturn attribute.
-