commit | fc1e311966c59368e63b834a42523ce104711a94 | [log] [tgz] |
---|---|---|
author | Matthias Springer <me@m-sp.org> | Fri Apr 18 14:52:51 2025 +0200 |
committer | GitHub <noreply@github.com> | Fri Apr 18 14:52:51 2025 +0200 |
tree | e95d16b7da0064f1da83ff24372e0be4af927ae0 | |
parent | db0f754c5af8e6c96770533520bf8b17fc0dc977 [diff] |
[mlir][memref] Fix rollback in test case during `convert-to-llvm` (#135958) This commit is in preparation of the One-Shot Dialect Conversion refactoring, which removes the rollback from the dialect conversion framework. `GenericAtomicRMWOpLowering` (`generic_atomic_rmw`) triggered a rollback in two test cases. The lowering pattern adds additional basic blocks to the enclosing operation, which used to be a `func.func` (now `llvm.func`). Adding a basic block triggers legalization of the op that owns the basic block. This fails when running `--convert-to-llvm="filter-dialects=memref"` because no lowering patterns for the `func` dialect were populated and only `llvm` ops are considered "legal" by the `convert-to-llvm` pass, causing a rollback of the entire `GenericAtomicRMWOpLowering` pattern. Also add extra `CHECK-INTERFACE` to make sure that all test cases are correctly lowered with `--convert-to-llvm="filter-dialects=memref"`.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.