- Dec 06, 2023
-
-
SiHuaN authored
In parallel regions `LookUpOrCreateAnonymous` may return an anonymous unit that has not yet been opened, which may cause a runtime error. This commit ensures that the returned anonymous unit has been opened. For details see: https://github.com/llvm/llvm-project/issues/68856#issuecomment-1788632511 Fixes https://github.com/llvm/llvm-project/issues/68856
-
NAKAMURA Takumi authored
-
Aiden Grossman authored
This patch adds in the ability to do a "three dot" git-clang-format between two commits. This looks at the diff between the second commit and the common merge base rather than comparing at the point of the specified commits. This is needed to improve the reliability of the LLVM code formatting CI action which currently breaks in some cases where files have been modified in the upstream tree and when the person created their branch, leaving phantom formatting diffs that weren't touched by the PR author. Part of a fix for #73873
-
Shengchen Kan authored
1. Move all pattern fragments for SIMD instructions to X86InstrFragmentsSIMD.td 2. Create X86InstrFragments.td and move non-SIMD pattern fragments into it 3. Create X86InstrOperands.td and move operand definitions into it 4. Create X86InstrPredicates.td and move predicate definitions into it 5. Create X86InstrUtils.td and move utilities for simplifying the instruction definitions into it
-
Ben Shi authored
-
XinWang10 authored
R16-R31 was added into GPRs in https://github.com/llvm/llvm-project/pull/70958, This patch supports the encoding/decoding for promoted VMX instructions in EVEX space. RFC: https://discourse.llvm.org/t/rfc-design-for-apx-feature-egpr-and-ndd-support/73031/4
-
Fangrui Song authored
`-arch` is a Darwin-specific option that is ignored for other targets and not known by GCC. It leads to an error for non-Darwin OSes for non-AArch64 architectures. Ensure that it leads to an error for AArch64 non-Darwin OSes as well.
-
Fangrui Song authored
See also #74365. clang/lib/Driver/ToolChains/Arch/AArch64.cpp inappropriately claims OPT_arch, which will be removed by the follow-up change.
-
Matthias Springer authored
`DecomposePrintOpConversion` used to generate invalid op such as: ``` error: 'arith.extsi' op operand type 'vector<10xi32>' and result type 'vector<10xi32>' are cast incompatible vector.print %v9 : vector<10xi32> ``` This commit fixes tests such as `mlir/test/Integration/Dialect/Vector/CPU/test-reductions-i32.mlir` when verifying the IR after each pattern application (#74270).
-
Matthias Springer authored
`SimplifyClones` used to generate an invalid op: ``` error: 'memref.cast' op operand type 'memref<*xf32>' and result type 'memref<*xf32>' are cast incompatible %2 = bufferization.clone %1 : memref<*xf32> to memref<*xf32 ``` This commit fixes tests such as `mlir/test/Dialect/Bufferization/canonicalize.mlir` when verifying the IR after each pattern (#74270).
-
Matthias Springer authored
The `ShapeOfOp` folder used to generate invalid IR. Input: ``` %0 = shape.shape_of %arg1 : tensor<index> -> tensor<?xindex> ``` Output: ``` %0 = "shape.const_shape"() <{shape = dense<> : tensor<0xindex>}> : () -> tensor<?xindex> error: 'shape.const_shape' op inferred type(s) 'tensor<0xindex>' are incompatible with return type(s) of operation 'tensor<?xindex>' ``` This rewrite cannot be implemented as a folder because the result type may have to change. In the above example, the original `shape.shape_of` op had a return type of `tensor<?xindex>`, but the folded attribute (materialized as a `shape.const_shape` op) must have a type of `tensor<0xf32>` to be valid. This commit fixes tests such as `mlir/test/Dialect/Shape/canonicalize.mlir` when verifying the IR after each pattern application (#74270). -
Johannes Doerfert authored
-
Florian Mayer authored
These will be used in follow-up CLs, committing this separately because it needs a matching change in AOSP. This way we can avoid complicated multi-repo rollbacks if something is wrong with the follow up CLs.
-
Johannes Doerfert authored
This introduces checked errors into the creation and initialization of `PluginAdaptorTy`. We also allow the adaptor to "hide" devices from the user if the initialization failed. The new organization avoids the "initOnce" stuff but we still do not eagerly initialize the plugin devices (I think we should merge `PluginAdaptorTy::initDevices` into `PluginAdaptorTy::init`)
-
Jan Svoboda authored
-
Nick Desaulniers authored
GCC warns: ``` libc/src/__support/wctype_utils.h:33:20: error: comparison of unsigned expression in ‘< 0’ is always false [-Werror=type-limits] 33 | if (c > 127 || c < 0) | ~~^~~ ``` Looking into the signedness of wint_t, it looks like depending on the platform, __WINT_TYPE__ is defined to int or unsigned int depending on the platform. Link: https://lab.llvm.org/buildbot/#/builders/250/builds/14891/steps/6/logs/stdio -
Jan Svoboda authored
This patch replaces use of the deprecated `FileEntry::getName()` with `FileEntryRef::getName()`. This means the code now uses the path that was used to register file entry in `SourceManager` instead of the absolute path that happened to be used in the last call to `FileManager::getFile()` some place else. This caused some test failures due to the fact that some paths can be relative and thus rely on the VFS CWD. The CWD can change for each TU, so when we run `clang-tidy` on a compilation database and try to perform all the replacements at the end, relative paths won't resolve the same. This patch takes care to reinstate the correct CWD and make the path reported by `FileEntryRef` absolute before passing it to `llvm::writeToOutput()`.
-
Johannes Doerfert authored
This fixes two bugs and adds a test for them: - A shared library with declare target functions but without kernels should not error out due to missing globals. - Enabling LIBOMPTARGET_INFO=32 should not deadlock in the presence of indirect declare targets.
-
Arthur Eubanks authored
As the deprecation message says, use PointerType::get(LLVMContext &, unsigned) instead.
-
elizabethandrews authored
Currently target_clones attribute results in a linker error when there are no multi-versioned function declarations in the calling TU. In the calling TU, the call is generated with the ‘normal’ assembly name. This does not match any of the versions or the ifunc, since version mangling includes a .versionstring, and the ifunc includes .ifunc suffix. The linker error is not seen with GCC since the mangling for the ifunc symbol in GCC is the ‘normal’ assembly name for function i.e. no ifunc suffix. This PR removes the .ifunc suffix to match GCC. It also adds alias with the .ifunc suffix so as to ensure backward compatibility. The changes exclude aarch64 target because the mangling for default versions on aarch64 does not include a .default suffix and is the 'normal' assembly name, unlike other targets. It is not clear to me what the correct behavior for this target is. Old Phabricator review - https://reviews.llvm.org/D158666 --------- Co-authored-by:
Tom Honermann <tom@honermann.net>
-
Arthur Eubanks authored
-
Benjamin Kramer authored
-
Jordan Rupprecht authored
-
madanial0 authored
AIX does not have `femode_t` in `<cfenv>` header, removing the assert to fix build failures --------- Co-authored-by:Mark Danial <mark.danial@ibm.com>
-
Sang Ik Lee authored
GPU Dialect lowering to SYCL runtime is driven by spirv.target_env attached to gpu.module. As a result of this, spirv.target_env remains as an input to LLVMIR Translation. A SPIRVToLLVMIRTranslation without any actual translation is added to avoid an unregistered error in mlir-cpu-runner. SelectObjectAttr.cpp is updated to 1) Pass binary size argument to getModuleLoadFn 2) Pass parameter count to getKernelLaunchFn This change does not impact CUDA and ROCM usage since both mlir_cuda_runtime and mlir_rocm_runtime are already updated to accept and ignore the extra arguments.
-
Andrzej Warzynski authored
This patch makes sure that hyphen ("-") (instead of an underscore "_") is consistently used for all test files. Sending without a review as this is rather straightforward. -
Alex Bradbury authored
[RISCV] Support FrameIndex operands in getMemOperandsWithOffsetWidth / getMemOperandWithOffsetWidth (#73802) I noted AArch64 happily accepts a FrameIndex operand as well as a register. This doesn't cause any changes outside of my C++ unit test for the current state of in-tree, but this will cause additional test changes if #73789 is rebased on top of it. Note that the returned Offset doesn't seem at all as meaningful if you have a FrameIndex base, though the approach taken here follows AArch64 (see D54847). This change won't harm the approach taken in shouldClusterMemOps because memOpsHaveSameBasePtr will only return true if the FrameIndex operand is the same for both operations.
-
Alex Light authored
Unless the OrcJIT was explicitly disabled it would be used by lli even if the --force-interpreter flag was passed.
-
Schrodinger ZHU Yifan authored
Implement `prctl` as specified in https://man7.org/linux/man-pages/man2/prctl.2.html. This patch also includes test cases covering two simple use cases: 1. `PR_GET_NAME/PR_SET_NAME`: where userspace data is passed via arg2. 2. `PR_GET_THP_DISABLE`: where return value is passed via syscal retval.
-
Augusto Noronha authored
In some situations it may be useful to have a separate DiagnosticManager instance, and then later of move the contents of that instance back to the "main" DiagnosticManager. For example, when silently retrying some operation with different parameters, depending on whether the retry succeeded or failed, LLDB may want to present a different set of diagnostics to the user (the ones generated on the first try vs the retry). Implement DiagnosticManager::Consume to allow for this use case.
-
Philip Reames authored
This should have been part of 943f3e52 which removed the never completed migration code which added these. I left them out because I thought there was more generic SDAG code to cleanup, but I'd forgotten that SystemZ relied on custom legalizing ATOMIC_LOAD to (atomic) LoadSDNode. As a result, we still need the various legality checks on combines and the common infrastructure to suport them.
-
Billy Zhu authored
Currently the parser & printer of `CallOp` do not match when both varargs and attr-dict are present (round tripping is broken). This fixes the parser so that it conforms to the written asm format in the comments.
-
Eric authored
It seems the fail fast just doesn't strike the right balance. It wastes too many resources, especially if a build is killed because the machine it was running on got preempted. Instead, we should simply not run any future jobs if a failure has occured, while letting the already running jobs finish.
-
Zequan Wu authored
[RFC](https://discourse.llvm.org/t/rfc-add-build-id-flag-to-lld-link/74661) Before, lld-link only generate the debug directory containing guid when generating PDB with the hash of PDB content. With this change, lld-link can generate the debug directory when only `/build-id` is given: 1. If generating PDB, `/build-id` is ignored. Same behaviour as before. 2. Not generating PDB, using hash of the binary. - Not under MinGW, the debug directory is still in `.rdata` section. - Under MinGW, place the debug directory into new `.buildid` section.
-
Vlad Serebrennikov authored
[clang][NFC] Refactor expected directives in C++ DRs 600-699 This patch continues the work started with https://github.com/llvm/llvm-project/commit/ea5b1ef016d020c37f903d6c7d4f623be975dab8. See that commit and its corresponding PR for details.
-
Aaron Ballman authored
I'm adding to the list of forward declares in a PR for #embed, so this won't be a formatting-only change for long.
-
eleviant authored
At the moment llvm-bolt fails when analyzing jump tables on aarch64 in case FP register spill/reload is used.
-
Guray Ozen authored
This PR adds lowering of `gpu.dynamic_shared_memory` to rocdl target.
-
Nick Desaulniers authored
This function is marked noinline; the inline keyword (or whatever LIBC_INLINE resolves to) will have no effect.
-
Kamau Bridgeman authored
This change fixes a build break introduced by aafad2d2(#70353) on the clang-ppc64le-rhel build bot. If the third-party Google Test suite is built using gcc-toolset-12, the implementation of std::stable_sort in the toolchain will use a get_temporary_buffer declaration that is marked _GLIBCXX17_DEPRECATED. This change adds -Wno-deprecated-declarations to the GTest flags if the toolchain is detected in the build compiler on linux.
-