- Jan 14, 2023
-
-
Tomas Matheson authored
Reworked after several other major changes to the TargetParser since this was reverted. Combined with several other changes. Inline calls for the following macros and delete AArch64TargetParser.def: AARCH64_ARCH, AARCH64_CPU_NAME, AARCH64_CPU_ALIAS, AARCH64_ARCH_EXT_NAME Squashed changes from D139278 and D139102. Differential Revision: https://reviews.llvm.org/D138792
-
Simon Pilgrim authored
As discussed on D141657
-
Mehdi Amini authored
-
Kazu Hirata authored
This patch removes one "using" declaration and #include "llvm/ADT/Optional.h". It keeps several "using" declarations in headers for downstream users. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Kazu Hirata authored
This patch replaces (llvm::|)Optional< with std::optional<. I'll post a separate patch to remove #include "llvm/ADT/Optional.h". This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Craig Topper authored
We already optimize the sgt case to (icmp ne Y, BitWidth-1), but we miss optimizing sle because it canonicalizes to (icmp slt (1 << X), 1) first.
-
Craig Topper authored
This reverts commit e25f2287. I messed up the predicates in the description.
-
Craig Topper authored
We already optimize the slt case to (icmp eq Y, BitWidth-1), but we miss optimizing sge because it canonicalizes to (icmp sgt (1 << X), 1) first.
-
Craig Topper authored
Use isPhysical/isVirtual methods.
-
Phoebe Wang authored
We cannot handle i8/i16/f16 vselect without BWI. Fixes #59980 Reviewed By: RKSimon, skan Differential Revision: https://reviews.llvm.org/D141668
-
NAKAMURA Takumi authored
-
Kirill Stoimenov authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D141724
-
Kazu Hirata authored
This patch adds #include <optional> to those files containing llvm::Optional<...> or Optional<...>. I'll post a separate patch to actually replace llvm::Optional with std::optional. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Kshitij Jain authored
The i386/ELF JITLink backend was not correctly handling the GOTPC relocation by skipping the in-built addend, which was manifesting itself in the form of a segmentation fault in the `LF_external_to_absolute_conversion.s` test. This CR has fixed that issue. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D141746
-
Jan Svoboda authored
Since D135636, PCM files contain the "as requested" path of input files. The machinery for generating dependency files reports those paths as they appeared in the PCM file, which may confuse consumers that are not aware of VFS overlays that might've been in place at compile-time. This patch makes sure the "use-external-name" setting is being respected when generating dependency files in modular builds by piping the paths serialized in PCMs through `FileEntryRef::getName()` before putting them into dependency files. rdar://103459532 Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D141644
-
Nikolas Klauser authored
This allows clang to catch lifetime bugs through these functions. As a drive-by, replace `_LIBCPP_INLINE_VISIBILITY` with `_LIBCPP_HIDE_FROM_ABI`. Fixes #59900 Reviewed By: ldionne, #libc Spies: rsmith, rnk, aaron.ballman, libcxx-commits Differential Revision: https://reviews.llvm.org/D141321
-
Khem Raj authored
R_RISCV_JAL referencing a preemptible symbol is disallowed with ld.lld and binutils 2.40 (https://sourceware.org/PR28509) riscv64-yoe-linux-ld: relocation R_RISCV_JAL against `__interceptor_sigsetjmp' which may bind externally can not be used when making a shared object; recompile with -fPIC Reviewed By: kito-cheng, MaskRay Differential Revision: https://reviews.llvm.org/D141656
-
Matt Arsenault authored
This was incorrectly setting dereferenceable on unaligned operands. getLoadMemOperandFlags does the alignment dereferenceabilty check without alignment, and then both paths went on to check isDereferenceableAndAlignedPointer. Make getLoadMemOperandFlags check isDereferenceableAndAlignedPointer, and remove the second call.
-
Matt Arsenault authored
-
Mehdi Amini authored
Harden the verifier against invalid IR.
-
Mehdi Amini authored
This streamlines the implementation and makes it so that the virtual tables are in the binary instead of dynamically assembled during initialization. The dynamic allocation size of op registration is also smaller with this change. Differential Revision: https://reviews.llvm.org/D141492
-
NAKAMURA Takumi authored
* Generate `//:vars.bzl` from `llvm/CMakeLists.txt` `_extract_cmake_settings()` generates `//:vars.bzl` in `llvm_configure()`. It would be easier to use external commands like sed(1) and python. For portability, I think the parser should run on Starlark. `@llvm-project//:vars.bzl` may be loaded from both WORKSPACE and BUILD. At the moment, `vars.bzl` provides some values as string. - CMAKE_CXX_STANDARD = "17" - LLVM_VERSION_MAJOR = "16" - LLVM_VERSION_MINOR = "0" - LLVM_VERSION_PATCH = "0" - LLVM_VERSION = "16.0.0" - llvm_vars = (dict of these values) `CMAKE_CXX_STANDARD` may be used to configure toolchain. * Use `//vars.bzl` for each BUILD files It would be smarter if the BUILD phase could generate `llvm-config.h`. Since I am afraid of the discussion in D126581, I just remove LLVM_VERSION stuff out of the static `llvm-config.h`. * Eliminate Bazel stuff in 'bump-version.py' Current version of `bump-version.py` tries to substitute CLANG_VERSION. It is the reason why I modify bump-version in this change rather than incoming patch. Differential Revision: https://reviews.llvm.org/D136392
-
Youling Tang authored
This patch enabled lsan for loongarch64 with 47-bit VMA layout. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D139686
-
Hui Li authored
Add floating-point branch Instructions for EmulateInstructionLoongArch and add relevant unit tests. Without this patch: ``` $ ninja check-lldb-unit [0/1] Running lldb unit test suite Testing Time: 10.45s Passed: 1044 ``` With this patch: ``` $ ninja check-lldb-unit [0/1] Running lldb unit test suite Testing Time: 10.20s Passed: 1048 ``` Reviewed By: SixWeining, MaskRay, DavidSpickett Differential Revision: https://reviews.llvm.org/D140759
-
Hui Li authored
In RegisterInfos_loongarch64.h, r22 is defined twice. Having an extra array member causes problems reading and writing registers defined after r22. So, for r22, keep the alias fp, delete the s9 alias. The PC register is incorrectly accessed when the step command is executed. The step command behavior is incorrect. This test reflects this problem: ``` loongson@linux:~$ cat test.c #include <stdio.h> int func(int a) { return a + 1; } int main(int argc, char const *argv[]) { func(10); return 0; } loongson@linux:~$ clang -g test.c -o test ``` Without this patch: ``` loongson@linux:~$ llvm-project/llvm/build/bin/lldb test (lldb) target create "test" Current executable set to '/home/loongson/test' (loongarch64). (lldb) b main Breakpoint 1: where = test`main + 40 at test.c:8:3, address = 0x0000000120000668 (lldb) r Process 278049 launched: '/home/loongson/test' (loongarch64) Process 278049 stopped * thread #1, name = 'test', stop reason = breakpoint 1.1 frame #0: 0x0000000120000668 test`main(argc=1, argv=0x00007fffffff72a8) at test.c:8:3 5 } 6 7 int main(int argc, char const *argv[]) { -> 8 func(10); 9 return 0; 10 } 11 (lldb) s Process 278049 stopped * thread #1, name = 'test', stop reason = step in frame #0: 0x0000000120000670 test`main(argc=1, argv=0x00007fffffff72a8) at test.c:9:3 6 7 int main(int argc, char const *argv[]) { 8 func(10); -> 9 return 0; 10 } ``` With this patch: ``` loongson@linux:~$ llvm-project/llvm/build/bin/lldb test (lldb) target create "test" Current executable set to '/home/loongson/test' (loongarch64). (lldb) b main Breakpoint 1: where = test`main + 40 at test.c:8:3, address = 0x0000000120000668 (lldb) r Process 278632 launched: '/home/loongson/test' (loongarch64) Process 278632 stopped * thread #1, name = 'test', stop reason = breakpoint 1.1 frame #0: 0x0000000120000668 test`main(argc=1, argv=0x00007fffffff72a8) at test.c:8:3 5 } 6 7 int main(int argc, char const *argv[]) { -> 8 func(10); 9 return 0; 10 } 11 (lldb) s Process 278632 stopped * thread #1, name = 'test', stop reason = step in frame #0: 0x0000000120000624 test`func(a=10) at test.c:4:10 1 #include <stdio.h> 2 3 int func(int a) { -> 4 return a + 1; 5 } ``` Reviewed By: SixWeining, DavidSpickett Differential Revision: https://reviews.llvm.org/D140615 -
NAKAMURA Takumi authored
It is used in `LLVM_ENABLE_DUMP` regardless of `NDEBUG`.
-
LLVM GN Syncbot authored
-
varconst authored
This reverts commit a6e1080b. Fix the conditions when the `memmove` optimization can be applied and refactor them out into a reusable type trait, fix and significantly expand the tests. Differential Revision: https://reviews.llvm.org/D139235
-
Fangrui Song authored
-
Fangrui Song authored
-
Lang Hames authored
This patch modifies the MachOPlatform bootstrap process to record allocation actions for ORC runtime platform support code in a "deferred actions" vector rather than attaching it to the corresponding LinkGraphs up-front. The deferred allocation-actions are run after all the platform support code has been loaded by attaching them to a separate "bootstrap-complete" graph. This change should allow the mach-o platform support code in the ORC runtime to use advanced mach-o platform features (e.g. static inits, TLVs), provided that the support code does not use these features at runtime before the bootstrap process completes, or after the shutdown process starts. This is a nice improvement in and of itself but is motivated by specific future plans: we want to start recording unwind info in the mach-o platform state object*, and the recording functions will have their own frame info that needs registering. The deferred allocation-actions scheme allows for this. * The plan is to add a new unwind-info-lookup path to libunwind to allow it to call back to the ORC runtime to find unwind sections. This will simplify the implementation of support for JIT'd compact-unwind info.
-
yijiagu authored
This change added support of calling async execute inside async.func. Ex. ``` async.func @async_func_call_func() -> !async.token { %token = async.execute { %c0 = arith.constant 0 : index memref.store %arg0, %arg1[%c0] : memref<1xf32> async.yield } async.await %token : !async.token return } ``` Reviewed By: ezhulenev Differential Revision: https://reviews.llvm.org/D141730 -
Valery N Dmitriev authored
-
NAKAMURA Takumi authored
This reverts commit 4c37671a, aka llvmorg-16-init-17246-g4c37671a This caused many warnings in the current llvm codebase.
-
Owen Pan authored
Below is the mapping: LineEnding DeriveLineEnding UseCRLF LF false false CRLF false true DeriveLF true false DeriveCRLF true true Differential Revision: https://reviews.llvm.org/D141654
-
LLVM GN Syncbot authored
-
Paul Kirth authored
I missed that a forward fix was out when reverting 0a652c54. This reverts commit 488bea79.
-
Paul Kirth authored
This breaks on some AArch64 bots This reverts commit 0a652c54.
-
Joseph Huber authored
Summary: Removes this `CLANG_OPENMP_NVPTX_DEFAULT_ARCH` documentation as it's now been removed.
-
Joseph Huber authored
The `CLANG_OPENMP_NVPTX_DEFAULT_ARCH` is a static build configuration to set the default OpenMP value. This was replaced in D141708 with the use of the `nvptx-arch` tool which lets us query this at runtime instead. This makes the behaviour between AMD and NVIDIA be more consisten and allows users to have a default architecture that does not rely on whoever configured the LLVM build. Depends on D141708 Reviewed By: tra, MaskRay Differential Revision: https://reviews.llvm.org/D141723
-