[clang] [CIR] Add CIRGenerator and plug it via CIRGenAction (PR #90831)

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Fri May 3 11:44:49 PDT 2024


================
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s | FileCheck %s
+
+// CHECK: CIRGenModule::buildTopLevelDecl
+
+void foo() {}
----------------
bcardosolopes wrote:

Oh, I see what you are doing. I was thinking even more simple, no code, just an empty file without invoking FileCheck. So you can remove the printing hack. Before this PR, calling into `-emit-cir` would crash, so the idea of the simple test is to just make sure it doesn't anymore.

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


More information about the cfe-commits mailing list