[Mlir-commits] [mlir] 7b5497f - Isolate zero_whitespace parser test into its own file.

Sean Silva llvmlistbot at llvm.org
Wed Apr 22 20:00:28 PDT 2020


Author: Sean Silva
Date: 2020-04-22T19:58:40-07:00
New Revision: 7b5497f25857c52c514477f0c7cb4e3c26ac1873

URL: https://github.com/llvm/llvm-project/commit/7b5497f25857c52c514477f0c7cb4e3c26ac1873
DIFF: https://github.com/llvm/llvm-project/commit/7b5497f25857c52c514477f0c7cb4e3c26ac1873.diff

LOG: Isolate zero_whitespace parser test into its own file.

Summary:
This test is in a different file because it contains a literal NUL
character, which causes various tools to treat it as a binary file.
Hence it is useful to have this test kept in a separate, rarely-changing
file.

Differential Revision: https://reviews.llvm.org/D78689

Added: 
    mlir/test/IR/zero_whitespace.mlir

Modified: 
    mlir/test/IR/parser.mlir

Removed: 
    


################################################################################
diff  --git a/mlir/test/IR/parser.mlir b/mlir/test/IR/parser.mlir
index a42bf3238ea3..585f7de40aaf 100644
--- a/mlir/test/IR/parser.mlir
+++ b/mlir/test/IR/parser.mlir
@@ -1224,10 +1224,3 @@ func @pretty_names() {
   // CHECK: return
   return
 }
-
-// CHECK-LABEL: func @zero_whitespace() {
-// CHECK-NEXT: return
-func @zero_whitespace() {
-     // This is a \0 byte.
-  return
-}

diff  --git a/mlir/test/IR/zero_whitespace.mlir b/mlir/test/IR/zero_whitespace.mlir
new file mode 100644
index 000000000000..eb5de67747f3
Binary files /dev/null and b/mlir/test/IR/zero_whitespace.mlir 
diff er


        


More information about the Mlir-commits mailing list