[clang] [CIR] Initial implementation of CIR-to-LLVM IR lowering pass (PR #125260)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 31 11:23:06 PST 2025


================
@@ -1,8 +1,10 @@
 // Smoke test for ClangIR-to-LLVM IR code generation
 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o -  | FileCheck %s
 
-// TODO: Add checks when proper lowering is implemented.
-//       For now, we're just creating an empty module.
-// CHECK: ModuleID
+int a;
 
-void foo() {}
----------------
andykaylor wrote:

Well, it's not really a regression. Previously we were silently not generating anything at all for the function. Now we'll produce an error because we know that we aren't handling it.

https://github.com/llvm/llvm-project/pull/125260


More information about the cfe-commits mailing list