================
@@ -0,0 +1,84 @@
+// RUN: %clang_cc1 -std=c++17 -triple x86_64-unknown-linux-gnu -fclangir
-emit-cir %s -o %t.cir
+// RUN: FileCheck --input-file=%t.cir %s --check-prefixes=CIR,CXX17
+// RUN: %clang_cc1 -std=c++98 -triple x86_64-unknown-linux-gnu -fclangir
-emit-cir %s -o %t-98.cir
+// RUN: FileCheck --input-file=%t-98.cir %s --check-prefixes=CIR,CXX98
+
+// C++17 has different mustprogress guarantees that dont' exist before this, so
+// mustprogress changes behavior.
+
+void use(int);
+
+// CIR-LABEL: cir.func {{.*}} @_Z5hintsi
+void hints(int n) {
+// CXX17: } loop_hints < must_progress unroll_count = 4>
----------------
erichkeane wrote:
Woops! I moved these around a few times trying to get them to read nicely and
guess I forgot to move them the last time.
https://github.com/llvm/llvm-project/pull/232975
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits