| commit | 0ca2d4d10451874b1d107e89c32eb7fd95e1a608 | [log] [tgz] |
|---|---|---|
| author | Kirill Chibisov <contact@kchibisov.com> | Tue Apr 22 16:03:42 2025 +0900 |
| committer | GitHub <noreply@github.com> | Tue Apr 22 09:03:42 2025 +0200 |
| tree | fe753d942e923334f1d71ac7243369298099e249 | |
| parent | 53927ab726e6d0dfb3255498b6d0b130adeafb8c [diff] |
[mlir][emitc] mark `emitc.load` with `CExpression` (#130802) Follow the `call` and `call_opaque` operations, as well as `apply`, which already are marked as `CExpression` even though they have side effects. Even though `emitc.load` can be included inside the `emitc.expression`, the inlining and `--form-expression` pass won't actually inline them inside other expression due to it having a side effect, thus unless the user manually writes the `emitc.load` inside the `emitc.expression` it won't appear there. -- It was brought https://github.com/llvm/llvm-project/pull/91475#issuecomment-2302529428 and while there was some opposition due to `load` having a side effect, `emitc` already allows all the rest operations that have it, so for consistency reasons, enabling it doesn't really hurt from my point of view. Especially given that `--form-expression` doesn't allow it to really inline inside other expressions, which makes sense, since if the users want such behavior, they should explicitly opt-in.
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.