| commit | 77655f42d58e85875c4b4e28a73208b64a653c2a | [log] [tgz] |
|---|---|---|
| author | Ingo Müller <ingomueller@google.com> | Mon Jul 29 14:34:47 2024 +0200 |
| committer | GitHub <noreply@github.com> | Mon Jul 29 14:34:47 2024 +0200 |
| tree | dde68369677079c0d8cf094ff0fb130c881f32d4 | |
| parent | 13d39cb6f7b20e596b66f59ebf4dba766451398b [diff] |
[mlir][arith] Assert preconditions in `BitcastOp::fold`. (#100743) This PR adds an assertion to `BitcastOp::fold` that fails if that function is called on invalid IR. That can happen when patterns, passes, etc. create (invalid) IR using builders and folding is triggered on that IR before verification, for example, through `OpBuilder::createOrFold`. The new assert triggers earlier than previously in order to help getting to the root cause faster. Signed-off-by: Ingo Müller <ingomueller@google.com>
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.