- Apr 25, 2023
-
-
Mikhail Goncharov authored
-
Nikita Popov authored
I was very confused by this change while working on a patch -- turns out that it's pre-existing, and we currently just match the "1" part of "13".
-
Zhongyunde authored
Fix the last runtime issue as some sequent comparisons need be spilted. For the origin equal comparisons chain, the new spilted Icmp chain will still be end with equal, while for the new not-equal comparisons chain, the new spilted Icmp chain will still be end with equal, so should address this carefully, see detail wih case partial_sequent_ne Thanks for @aeubanks, @glandium and @ayzhao report the runtime issue and carefully examine. Fix https://github.com/llvm/llvm-project/issues/59740. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D141188
-
Alex Bradbury authored
SELECT_CC is expanded to SETT and SELECT.
-
Alvin Wong authored
The interception tests rely on the test binary being large address aware. This has already been set for MSVC builds. Now we do the same for MinGW. This fixes the interception unit tests for i686-w64-windows-gnu target. Differential Revision: https://reviews.llvm.org/D148996
-
Alvin Wong authored
Use `ASAN_INTERCEPT_FUNC` instead of `INTERCEPT_FUNCTION` so it checks the return value and reports a message if verbosity >= 1. Differential Revision: https://reviews.llvm.org/D148989
-
Haojian Wu authored
This is an initial patch to add TextDocumentEdit (versioned edits) support in clangd, the scope is minimal: - add and extend the corresponding protocol structures - propagate the documentChanges for diagnostic codeactions (our motivated case) Differential Revision: https://reviews.llvm.org/D148783
-
Nikita Popov authored
-
Nikita Popov authored
-
Max Kazantsev authored
This lifts two TODOs from this function, allowing us to prove no-overflow whether it happens through max int (up) or through min int (down) for both and and sub. Differential Revision: https://reviews.llvm.org/D148618 Reviewed By: dmakogon
-
Nikita Popov authored
-
Luke Lau authored
Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D148923
-
Luke Lau authored
We were crashing when lowering interleave shuffles like (shuffle <0,3,1,4>, x:v4i8, y:v4i8) Where it was technically an unary shuffle (both EvenSrc and OddSrc point to the first operand), but the resulting extract_subvectors were out of bounds. This checks to make sure that the vectors being extracted are within range. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D148647
-
Nikita Popov authored
Drop the separate opaque pointers test now that the original one uses opaque pointers as well.
-
Nikita Popov authored
-
Nikita Popov authored
As we are moving the instruction without changing its value, it is sufficient to only invalidate the loop/block dispositions. This is the same we do in LoopSink.
-
Cullen Rhodes authored
This patch adds a couple of tests for targeting Arm Streaming SVE (SSVE) mode, part of the Arm Scalable Matrix Extension (SME). SSVE is enabled in the backend at the function boundary by specifying the `aarch64_pstate_sm_enabled` attribute, as documented here [1]. SSVE can be targeted from MLIR by specifying this in the passthrough attributes [2] and compiling with -mattr=+sme,+sve -force-streaming-compatible-sve The passthrough will propagate to the backend where `smstart/smstop` will be emitted around the call to the SSVE function. The set of legal instructions changes in SSVE, `-force-streaming-compatible-sve` avoids the use of NEON entirely and instead lowers to (streaming-compatible) SVE. The behaviour this flag predicates will be hooked up to the function attribute in the future such that simply specifying this (should) lead to correct code-generation. Two tests are added: * A basic LLVMIR test verifying the attribute is passed through. * An integration test calling a SSVE function. The integration test can be run with QEMU. [1] https://llvm.org/docs/AArch64SME.html [2] https://mlir.llvm.org/docs/Dialects/LLVM/#attribute-pass-through Reviewed By: awarzynski, aartbik Differential Revision: https://reviews.llvm.org/D148111
-
Bing1 Yu authored
zeroinitializer is allowed for spirv TargetExtType. This PR allows ValueMapper to map TargetExtType ConstantTargetNone to '0' constant of its layout type. Reviewed By: jcranmer-intel Differential Revision: https://reviews.llvm.org/D148774
-
Mehdi Amini authored
Somehow it was escaped in these documents.
-
Jean Perier authored
One piece of pointer arithmetic was adding the number of bytes instead of the number of characters. This caused failures in CHARACTER(KIND>1) that required padding. This was caught using HLFIR that currently uses the runtime for array assignment where the current lowering does everything inline. Reviewed By: vzakhari, klausler Differential Revision: https://reviews.llvm.org/D149062
-
Jean Perier authored
The AbstractResult pass replaces allocation of function result on the callee side per an extra argument so that the allocation of the result can be done on the caller stack. It looks for the result allocation from the fir.return op, so it needs to handle (in a transparent way) a fir.declare in the chain between the allocation and the fir.return. Reviewed By: vzakhari, clementval Differential Revision: https://reviews.llvm.org/D149057
-
Jean Perier authored
HLFIR lowering promotes intrinsic results lowered in memory to hlfir.expr to underline their read-only aspect once they are created. NULL(MOLD) should not be promoted to an hlfir.expr, it is the NULL variable (we need to see it as an address). Reviewed By: clementval Differential Revision: https://reviews.llvm.org/D149053
-
Timm Bäder authored
Our Zero opcode only exists for integer types. Use visitZeroInitializer() here as well so it works for floats and pointers. Differential Revision: https://reviews.llvm.org/D149059
-
Kazu Hirata authored
-
Fangrui Song authored
This option has been a no-op since D99707.
-
Kazu Hirata authored
-
Piyou Chen authored
Reviewed By: kito-cheng Differential Revision: https://reviews.llvm.org/D149126
-
Timm Bäder authored
Just emit e != nullptr for these. Differential Revision: https://reviews.llvm.org/D148981
-
Vlad Serebrennikov authored
[[https://wg21.link/p1787 | P1787]]: My clarification in [[ http://lists.isocpp.org/core/2019/06/6614.php | “Where can namespace-scope functions and variables be redeclared?” ]] is applied, resolving CWG1821. Wording: (If the declaration is not a friend declaration:) If the id-expression in a declarator-id is a qualified-id Q, let S be its lookup context; the declaration shall inhabit a namespace scope. ([dcl.meaning]/1) Reviewed By: shafik, #clang-language-wg Differential Revision: https://reviews.llvm.org/D149003
-
Fangrui Song authored
And fix a minor issue that -mabi=vec-extabi -mabi=vec-default should not pass "-bplugin_opt:-vec-extabi" to ld.
-
Owen Anderson authored
This reverts commit 17a3fbf2 due to build failures in llvm/unittests/ADT/IListTest.cpp
-
Owen Anderson authored
Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D149122
-
Timm Bäder authored
-
Emilio Cota authored
To avoid circular deps. While at it, add missing dep on CAPIIR.
-
Ethan Luis McDonough authored
Plugin that counts the number of times each tree node occurs in a given program. Used for test coverage. Updated to fix build issues. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D143704
-
Jie Fu authored
/Users/jiefu/llvm-project/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp:2636:10: error: 'makeArrayRef<std::pair<llvm::MachineMemOperand::Flags, const char *>, 2UL>' is deprecated: Use deduction guide instead [-Werror,-Wdeprecated-declarations] return makeArrayRef(TargetFlags); ^~~~~~~~~~~~ ArrayRef /Users/jiefu/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:572:3: note: 'makeArrayRef<std::pair<llvm::MachineMemOperand::Flags, const char *>, 2UL>' has been explicitly marked deprecated here LLVM_DEPRECATED("Use deduction guide instead", "ArrayRef") ^ /Users/jiefu/llvm-project/llvm/include/llvm/Support/Compiler.h:143:50: note: expanded from macro 'LLVM_DEPRECATED' ^ 1 error generated. -
Alex Zinenko authored
In the Linalg detensorize pass, dialect conversion could accidentally trigger signature conversion of the function entry block after inlining the body of a Linalg generic into it. Such a conversion is not desirable because it would break the internal validity of the function op, that is futhermore not supposed to be detensorized at the boundary. Mitigate this by creating a dummy (empty) entry block so Linalg operations are never inlined into it and the conversion is never triggered. Closes #62249. Reviewed By: silvas Differential Revision: https://reviews.llvm.org/D148983
-
LLVM GN Syncbot authored
-
Piyou Chen authored
This commit implements the two NTLH intrinsic functions. ``` type __riscv_ntl_load (type *ptr, int domain); void __riscv_ntl_store (type *ptr, type val, int domain); ``` ``` enum { __RISCV_NTLH_INNERMOST_PRIVATE = 2, __RISCV_NTLH_ALL_PRIVATE, __RISCV_NTLH_INNERMOST_SHARED, __RISCV_NTLH_ALL }; ``` We encode the non-temporal domain into MachineMemOperand flags. 1. Create the RISC-V built-in function with custom semantic checking. 2. Assume the domain argument is a compile time constant, and make it as LLVM IR metadata (nontemp_node). 3. Encode domain value as two bits MachineMemOperand TargetMMOflag. 4. According to MachineMemOperand TargetMMOflag, select corrsponding ntlh instruction. Currently, it supports scalar type and fixed-length vector type. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D143364 -
Fangrui Song authored
Remove a FIXME. For simplicity, the error message for the missing argument case has changed from err_drv_missing_argument to err_drv_invalid_argument_to_option, which should be fine.
-