5 Commits

Author SHA1 Message Date
Andy Kaylor
2b5cc89b3f
[CIR] Lowering to LLVM for global pointers (#125619)
Add support for lowering global variables of any pointer type to LLVM
IR.
2025-02-05 15:44:29 -08:00
Andy Kaylor
622ee03e26
[CIR] Initial implementation of CIR-to-LLVM IR lowering pass (#125260)
This change introduces lowering from CIR to LLVM IR of global integer
and floating-point variables, using defaults for attributes that aren't yet
implemented.
2025-02-03 13:35:43 -08:00
Michael Liao
eb0af4e48d [CIR] Fix shared build. NFC 2025-01-31 13:19:43 -05:00
Andy Kaylor
fbf544c422
[CIR] Fix some clang-tidy problems in CIR (#125128)
This adds a .clang-tidy file to the clang/lib/CIR/FrontendAction
directory, moves and updates the incorrectly located
include/clang/CIR/FrontendAction .clang-tidy file, and updates two files
from a recent commit to bring them into conformance with previously
agreed upon rules for where to use LLVM naming conventions and where to
use MLIR naming conventions.
2025-01-31 08:39:33 -08:00
Andy Kaylor
38ddcb7e36
[CIR] Add framework for CIR to LLVM IR lowering (#124650)
Create the skeleton framework for lowering from ClangIR to LLVM IR. This
initial implementation just creates an empty LLVM IR module. Actual
lowering of even minimal ClangIR is deferred to a later patch.
2025-01-30 13:11:25 -08:00