| commit | 1d614a9702973aa9b099a61a6a5992c1de1d8de1 | [log] [tgz] |
|---|---|---|
| author | Andy Kaylor <akaylor@nvidia.com> | Mon Sep 29 16:11:33 2025 -0700 |
| committer | GitHub <noreply@github.com> | Mon Sep 29 16:11:33 2025 -0700 |
| tree | ee0681b0c363321cd78939af109d1f5396014f65 | |
| parent | d23f78175ca64ce4b6d92dead490970e64ca2f4c [diff] |
[CIR] Add GlobalOp ctor and dtor regions (#160779) This adds support for ctor and dtor regions in cir::GlobalOp. These regions are used to capture the code that initializes and cleans up the variable, keeping this initialization and cleanup code with the variable definition. This change only adds the CIR dialect support for these regions. Support for generating the code in these regions from source and lowering these to LLVM IR will be added in a later change, as will LoweringPrepare support to move the code into the __cxx_global_var_init() function.
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.