From: Ivan Kosarev Date: Thu, 26 May 2022 11:20:15 +0000 (+0100) Subject: [FileCheck] GetCheckTypeAbbreviation() to handle the misspelled case. X-Git-Tag: upstream/15.0.7~6654 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8894c05b0d351f998b1836542ba791247394bd12;p=platform%2Fupstream%2Fllvm.git [FileCheck] GetCheckTypeAbbreviation() to handle the misspelled case. Also fix directives not covered by D125604. --- diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp index ad647a5..7ab84d8 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 b916d9ab3..d9f158c 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 022fa92..5036644 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)