[clang] [CIR] Upstream a batch of passing tests from CIR-Incubator (PR #157333)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 10 13:49:22 PDT 2025
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <burhan.sogutt at gmail.com>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <burhan.sogutt at gmail.com>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <burhan.sogutt at gmail.com>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <burhan.sogutt at gmail.com>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <burhan.sogutt at gmail.com>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <burhan.sogutt at gmail.com>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <burhan.sogutt at gmail.com>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <burhan.sogutt at gmail.com>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <burhan.sogutt at gmail.com>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <burhan.sogutt at gmail.com>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <burhan.sogutt at gmail.com>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <burhan.sogutt at gmail.com>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <burhan.sogutt at gmail.com>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <burhan.sogutt at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/157333 at github.com>
================
@@ -0,0 +1,94 @@
+// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir
+// RUN: FileCheck --input-file=%t.cir %s --check-prefix=CIR
+
+void if0() {
+ int x = 0;
+
+ if constexpr (0 == 0) {
+ // CIR: cir.scope {
+ // CIR-NEXT: %2 = cir.alloca !s32i, !cir.ptr<!s32i>, ["x", init]
+ // CIR-NEXT: %3 = cir.const #cir.int<2> : !s32i
+ // CIR-NEXT: cir.store %3, %2 : !s32i, !cir.ptr<!s32i>
----------------
andykaylor wrote:
I've just commented on the files to remove. Unfortunately, I will be on vacation after today until September 19. @AmrDeveloper Can you help to see this PR through and merge it after the tests that require updates have been removed?
@bursot In case you haven't already seen it, here is a reference that documents how the FileCheck pattern matching works: https://llvm.org/docs/CommandGuide/FileCheck.html You'll need to use that information for the next steps.
https://github.com/llvm/llvm-project/pull/157333
More information about the cfe-commits
mailing list