commit | f6b15963995594d4ea61f56d7473e38b2583fe53 | [log] [tgz] |
---|---|---|
author | Matthias Springer <mspringer@nvidia.com> | Mon Oct 28 03:46:58 2024 +0100 |
committer | Matthias Springer <mspringer@nvidia.com> | Mon Oct 28 05:44:53 2024 +0100 |
tree | 4865fb72dde4494a4707392845449d8eaa768f1a | |
parent | 5621929f7f4878c318deecb592cd03f5ecbb83ba [diff] |
[mlir][memref] Make `finalize-memref-to-llvm` the last MemRef pass This commit updates all test cases and pass pipelines such that `finalize-memref-to-llvm` is the last pass that deals with MemRef types. (As the name already suggests.) This is now also mentioned in the pass documentation. This change is preparation of merging the 1:1 and 1:N dialect conversions. As part of that change, argument materializations are going to disappear. To understand why `finalize-memref-to-llvm` should be the final MemRef pass, consider this example: ```mlir // RUN: mlir-opt -convert-func-to-llvm func.func @foo(%m: memref<5xf32>) { %r = vector.transfer_read %m[...] ... ... } ``` The output (assuming bare pointer calling convention) will be as follows: ```mlir func.func @foo(%ptr: !llvm.ptr) { %m = builtin.unrealized_conversion_cast %ptr : !llvm.ptr to memref<5xf32> } ```
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.