- Jan 14, 2023
-
-
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
-
Joseph Huber authored
Previously, if the user did not provide an architecture when using `-fopenmp-targets=nvptx64` we used the value from `CLANG_OPENMP_DEFAULT_NVPTX_ARCH` which is defined at compile time. This isn't ideal because it means that the default is set when the LLVM compiler it built. Instead this patch uses the `nvptx-arch` tool to query it at runtime. This matches the existing behaviour of the AMDGPU toolchain with its `amdgpu-arch` tool. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D141708
-
Craig Topper authored
These targets were missed in D135488.
-
Craig Topper authored
Use isPhysical/isVirtual methods. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D141715
-
Vitaly Buka authored
-
Sanjay Patel authored
This is one of the patterns suggested in issue #34943.
-
Sanjay Patel authored
This is one of the patterns suggested in issue #34943.
-
Sanjay Patel authored
-
Michal Paszkowski authored
Differential Revision: https://reviews.llvm.org/D141203
-
Christopher Bate authored
Fixes another Windows build failure (C4715) caused by 6ca1a09f.
-
LLVM GN Syncbot authored
-
Carlo Bertolli authored
Fix after commit of https://reviews.llvm.org/D139208
-
Owen Pan authored
Fixes #59953. Differential Revision: https://reviews.llvm.org/D141563
-
Paul Kirth authored
Issue #58168 describes the difficulty diagnosing stack size issues identified by -Wframe-larger-than. For simple code, its easy to understand the stack layout and where space is being allocated, but in more complex programs, where code may be heavily inlined, unrolled, and have duplicated code paths, it is no longer easy to manually inspect the source program and understand where stack space can be attributed. This patch implements a machine function pass that emits remarks with a textual representation of stack slots, and also outputs any available debug information to map source variables to those slots. The new behavior can be used by adding `-Rpass-analysis=stack-frame-layout` to the compiler invocation. Like other remarks the diagnostic information can be saved to a file in a machine readable format by adding -fsave-optimzation-record. Fixes: #58168 Reviewed By: nickdesaulniers, thegameg Differential Revision: https://reviews.llvm.org/D135488
-
Jakub Kuderski authored
This is to make `vector.fma` more consistent with the standard definition of `fma` that is defined only for flaoting point types. Reviewed By: dcaballe Differential Revision: https://reviews.llvm.org/D141711
-
Diego Caballero authored
This patch enables vectorization of reductions in Linalg vectorizer using the vector.mask operation. It also introduces the logic to slice and propagate the vector mask of a masked multi-reduction to their respective lowering operations. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D141571
-
Christopher Bate authored
Fixes Windows build failure (C4715) caused by 6ca1a09f.
-
Dominik Adamski authored
This reverts commit ed01de67.
-
Dominik Adamski authored
Currently default simd alignment is specified by Clang specific TargetInfo class. This class cannot be reused for LLVM Flang. If we move the default alignment field into TargetMachine class then we can create TargetMachine objects and query them to find SIMD alignment. Scope of changes: 1) Added information about maximal allowed SIMD alignment to TargetMachine classes. 2) Removed getSimdDefaultAlign function from Clang TargetInfo class. 3) Refactored createTargetMachine function. Reviewed By: jsjodin Differential Revision: https://reviews.llvm.org/D138496 -
Jonathon Penix authored
Currently, cmake gives errors that check_cxx_compiler_flag and append are unknown when building the Decimal and runtime libraries standalone. Add the appropriate include to resolve this. Differential Revision: https://reviews.llvm.org/D141525
-
Nhat Nguyen authored
D139623 replaces CMAKE_CFG_INTDIR with '.' for multi-config builds. However, this change has not been reflected in mlir, flang, polly, lld, and clang. The patch updates the path to LLVMConfig.cmake for those projects. Reviewed By: sebastian-ne Differential Revision: https://reviews.llvm.org/D141538
-
Paul Robinson authored
These have been effectively disabled ever since 'nvptx' was added to the REQUIRES clauses, because REQUIRES does not support triple checks. The new 'target=<triple>' is supported, so switch to that scheme. Fix up XFAIL annotations, now that these tests are actually run. Part of the project to eliminate special handling for triples in lit expressions. Differential Revision: https://reviews.llvm.org/D139728
-
Utkarsh Saxena authored
-
Matt Arsenault authored
Tolerated printf format strings that are indexed globals and fixes asserting on non-null terminated strings.
-
HanSheng Zhang authored
When we freeze operands of an operation that we are trying to freeze, doing so may invalidate the original SDValue. We should just re-fetch it from the ISD::FREEZE node, because if we bail, we'd hopefully just revisit the node and do that again. Fixes https://github.com/llvm/llvm-project/issues/59891 Differential Revision: https://reviews.llvm.org/D141256
-
Roman Lebedev authored
-
Francesco Petrogalli authored
The failure was reported in https://github.com/llvm/llvm-project/issues/60011 FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MachineScheduler.cpp.o "/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c/build-llvm/./bin/clang++" -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I"/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c/build-llvm/tools/clang/stage2-bins/lib/CodeGen" -I"/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c/llvm/lib/CodeGen" -I"/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c/build-llvm/tools/clang/stage2-bins/include" -I"/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c/llvm/include" -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c/= -no-canonical-prefixes -O2 -DNDEBUG -g1 -fno-exceptions -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MachineScheduler.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MachineScheduler.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MachineScheduler.cpp.o -c '/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c/llvm/lib/CodeGen/MachineScheduler.cpp' /build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c/llvm/lib/CodeGen/MachineScheduler.cpp:2639:7: error: use of undeclared identifier 'MISchedDumpReservedCycles' if (MISchedDumpReservedCycles) ^ 1 error generated. Fixes #60011 Differential Revision: https://reviews.llvm.org/D141707
-
Craig Topper authored
-
Craig Topper authored
Type legalization will insert a sign extend anyway. By doing it early we can remove the zext. ComputeNumSignBits can't spot it after type legalization because type legalization may expand the abs to sra+xor+sub. If the zext result type is larger than the type to be promoted to, we'll promote to a legal type and then zext the rest of the way. If the legal type is larger than the destination type we can promote and then truncate. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D140509
-