[llvm] 8894c05 - [FileCheck] GetCheckTypeAbbreviation() to handle the misspelled case.
Ivan Kosarev via llvm-commits
llvm-commits at lists.llvm.org
Thu May 26 04:23:12 PDT 2022
Author: Ivan Kosarev
Date: 2022-05-26T12:20:15+01:00
New Revision: 8894c05b0d351f998b1836542ba791247394bd12
URL: https://github.com/llvm/llvm-project/commit/8894c05b0d351f998b1836542ba791247394bd12
DIFF: https://github.com/llvm/llvm-project/commit/8894c05b0d351f998b1836542ba791247394bd12.diff
LOG: [FileCheck] GetCheckTypeAbbreviation() to handle the misspelled case.
Also fix directives not covered by D125604.
Added:
Modified:
llvm/utils/FileCheck/FileCheck.cpp
mlir/test/python/ir/integer_set.py
polly/test/GPGPU/non-read-only-scalars.ll
Removed:
################################################################################
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp
index ad647a57564ee..7ab84d88d6a3c 100644
--- a/llvm/utils/FileCheck/FileCheck.cpp
+++ b/llvm/utils/FileCheck/FileCheck.cpp
@@ -369,6 +369,8 @@ static std::string GetCheckTypeAbbreviation(Check::FileCheckType Ty) {
return "bad-not";
case Check::CheckBadCount:
return "bad-count";
+ case Check::CheckMisspelled:
+ return "misspelled";
case Check::CheckNone:
llvm_unreachable("invalid FileCheckType");
}
diff --git a/mlir/test/python/ir/integer_set.py b/mlir/test/python/ir/integer_set.py
index b916d9ab386e9..d9f158c0d29ce 100644
--- a/mlir/test/python/ir/integer_set.py
+++ b/mlir/test/python/ir/integer_set.py
@@ -126,7 +126,7 @@ def testIntegerSetProperties():
print(" == 0" if cstr.is_eq else " >= 0")
-# CHECK_LABEL: TEST: testHash
+# TODO-LABEL: TEST: testHash
@run
def testHash():
with Context():
diff --git a/polly/test/GPGPU/non-read-only-scalars.ll b/polly/test/GPGPU/non-read-only-scalars.ll
index 022fa920adb67..5036644ab3d9a 100644
--- a/polly/test/GPGPU/non-read-only-scalars.ll
+++ b/polly/test/GPGPU/non-read-only-scalars.ll
@@ -68,15 +68,15 @@
; CODE-NEXT: Stmt_bb17();
; CODE: # kernel2
-; CODE_NEXT: {
-; CODE_NEXT: read();
-; CODE_NEXT: for (int c0 = 0; c0 <= 32; c0 += 1) {
-; CODE_NEXT: Stmt_bb18(c0);
-; CODE_NEXT: if (c0 <= 31)
-; CODE_NEXT: Stmt_bb20(c0);
-; CODE_NEXT: }
-; CODE_NEXT: write();
-; CODE_NEXT: }
+; TODO-NEXT: {
+; TODO-NEXT: read();
+; TODO-NEXT: for (int c0 = 0; c0 <= 32; c0 += 1) {
+; TODO-NEXT: Stmt_bb18(c0);
+; TODO-NEXT: if (c0 <= 31)
+; TODO-NEXT: Stmt_bb20(c0);
+; TODO-NEXT: }
+; TODO-NEXT: write();
+; TODO-NEXT: }
; KERNEL-IR: define ptx_kernel void @FUNC_foo_SCOP_0_KERNEL_1(i8 addrspace(1)* %MemRef_sum_0__phi)
More information about the llvm-commits
mailing list