[all-commits] [llvm/llvm-project] b5e579: [CIR] Implement Statement Expressions (#153677)
Morris Hafner via All-commits
all-commits at lists.llvm.org
Tue Aug 19 01:11:36 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b5e5794534d3e3dfc7dc7a1bec12b87484ae4c97
https://github.com/llvm/llvm-project/commit/b5e5794534d3e3dfc7dc7a1bec12b87484ae4c97
Author: Morris Hafner <mmha at users.noreply.github.com>
Date: 2025-08-19 (Tue, 19 Aug 2025)
Changed paths:
M clang/lib/CIR/CodeGen/CIRGenExpr.cpp
M clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp
M clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
M clang/lib/CIR/CodeGen/CIRGenFunction.cpp
M clang/lib/CIR/CodeGen/CIRGenFunction.h
M clang/lib/CIR/CodeGen/CIRGenStmt.cpp
A clang/test/CIR/CodeGen/statement-exprs.c
A clang/test/CIR/CodeGen/stmt-expr.cpp
M clang/test/CIR/CodeGenOpenACC/openacc-not-implemented.cpp
Log Message:
-----------
[CIR] Implement Statement Expressions (#153677)
Depends on #153625
This patch adds support for statement expressions. It also changes
emitCompoundStmt and emitCompoundStmtWithoutScope to accept an Address
that the optional result is written to. This allows the creation of the
alloca ahead of the creation of the scope which saves us from hoisting
the alloca to its parent scope.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list