- Jan 22, 2023
-
-
Simon Pilgrim authored
We try to use X32 for tests on gnux32 triples
-
Markus Böck authored
[mlir][ods] Simplify signature of `custom` printers and parsers of Attributes and Types in presence of default constructible parameters The vast majority of parameters of C++ types used as parameters for Attributes and Types are likely to be default constructible. Nevertheless, TableGen conservatively generates code for the custom directive, expecting signatures using FailureOr<T> for all parameter types T to accomodate them possibly not being default constructible. This however reduces the ergonomics of the likely case of default constructible parameters. This patch fixes that issue, while barely changing the generated TableGen code, by using a helper function that is used to pass any parameters into custom parser methods. If the type is default constructible, as deemed by the C++ compiler, a default constructible instance is created and passed into the parser method by reference. In all other cases it is a Noop and a FailureOr is passed as before. Documentation was also updated to document the new behaviour. Fixes https://github.com/llvm/llvm-project/issues/60178 Differential Revision: https://reviews.llvm.org/D142301
-
Simon Pilgrim authored
We try to use X32 for tests on gnux32 triples
-
Simon Pilgrim authored
We try to use X32 for tests on gnux32 triples
-
Roman Lebedev authored
Currently, for all invocations, it's equivalent, since that is literally how `SCEVMinMaxExpr::getType()` is defined. But for e.g. `select`, we'll want to ask about the hand type, and not the type of the operand that happens to be first.
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Roman Lebedev authored
Casts and udiv get the exactly the same handling as n-ary, there is no point in special-handling anything.
-
Matt Arsenault authored
This is essentially a modernized copy of select-fabs-fneg-extract.ll. Stop using kernels with loads and stores, don't use fsub for fneg, and port the examples to half.
-
Matt Arsenault authored
-
Simon Pilgrim authored
This will allow us to reuse the code to merge an extracted scalar into an updated shuffle in a future patch. Another step towards fixing some shuffle regressions in D127115.
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Shivam Gupta authored
-
Paul Walker authored
The intent is to lower the clang X form SVE builtins to these intrinsics. The suffix _x is already in use to signify unpredicated SVE intrinsics hence my choice to use _u to signify those intrinsics where the result for inactive lanes is undefined. Differential Revision: https://reviews.llvm.org/D141937
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D141503
-
Owen Pan authored
And reformat ClangFormat.cpp in the directory.
-
Owen Pan authored
To prevent \r\n line endings from getting into the source files. Differential Revision: https://reviews.llvm.org/D141098
-
WANG Xuerui authored
Currently, gcc-13 will generate such assembly when `-mcmodel=medium`, which is ostensibly a dirty hack to allow bigger offsets for extern function calls without having to add more reloc types. This is not the best way to accomplish the original goal, but such usages will appear soon and we have to support it anyway. Example: ```c extern int foo(int); int bar(int x) { return foo(x + 123); } ``` will produce the following (simplified) assembly when compiled with `-O2 -mcmodel=medium`: ``` .globl bar .type bar, @function bar: .cfi_startproc addi.w $r4,$r4,123 pcalau12i $r12,%pc_hi20(foo) jirl $r0,$r12,%pc_lo12(foo) .cfi_endproc ``` Reviewed By: SixWeining, wangleiat, MaskRay, xry111 Differential Revision: https://reviews.llvm.org/D142278 -
Iain Sandoe authored
We have been incorrectly disallowing imports of named modules in the global and private module fragments. This addresses: https://github.com/llvm/llvm-project/issues/59688 Differential Revision: https://reviews.llvm.org/D140927
-
Benjamin Kramer authored
-
Johannes Doerfert authored
-
Johannes Doerfert authored
A `ConstantExpr` ICmp is pretty much the same thing as an ICmpInst when we want to simplify it. We just need to be less restrictive wrt. the type and use the static helper functions directly. Fixes: https://github.com/llvm/llvm-project/issues/59767
-
Timm Bäder authored
-
Timm Bäder authored
We don't need the full header file here.
-
Timm Bäder authored
-
Noah Goldstein authored
This makes folding to 0/1 later on easier and regardless `icmp ne` is 'probably' faster on most targets (especially for vectors). Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D142253
-
Noah Goldstein authored
Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D142252
-
Nikolas Klauser authored
This makes it easier to specialize traits classes, like __segmented_iterator_traits. Reviewed By: var-const, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D142276
-
Yonghong Song authored
Commit 56b038f8("[BPF][clang] Ignore stack protector options for BPF target") added a test for its corresponding functionality. Douglas Yung found that the test will fail with the release build buildbot due to different func argument patterns (from %msg to %0). This patch fixed the issue by using pattern [0-9a-z]+ which allows both %msg and %0.
-
Johannes Doerfert authored
-
Johannes Doerfert authored
This avoids running the test for the host.
-
Johannes Doerfert authored
-
Johannes Doerfert authored
Dynamic memory allows users to allocate fast shared memory when a kernel is launched. We support a single size for all kernels via the `LIBOMPTARGET_SHARED_MEMORY_SIZE` environment variable but now we can control it per kernel invocation, hence allow computed values. Note: Only the nextgen plugins will allocate memory based on the clause, the old plugins will silently miscompile. Differential Revision: https://reviews.llvm.org/D141233 -
Mehdi Amini authored
Fixes #60183
-
Mehdi Amini authored
Fixes #60198
-
Roman Lebedev authored
For all but unknown/constant/recurrences, the handling is identical, there is no point in special-casing anything.
-
Roman Lebedev authored
They don't not do anything different from what we do for n-ary expressions, there is no point in special-casing them.
-