[clang] [CIR] Upstream LabelOp (PR #152802)
Morris Hafner via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 11 06:06:50 PDT 2025
================
@@ -429,6 +443,32 @@ CIRGenFunction::emitContinueStmt(const clang::ContinueStmt &s) {
return mlir::success();
}
+mlir::LogicalResult CIRGenFunction::emitLabel(const clang::LabelDecl *d) {
+ // Create a new block to tag with a label and add a branch from
----------------
mmha wrote:
The labels as values gcc extension is not part of this patch, but I wonder how that will look like. Should `cir.label` be a value in general or do we need a new op for `AddrLabelExpr`s`?
https://github.com/llvm/llvm-project/pull/152802
More information about the cfe-commits
mailing list