PipelineDataTransfer.cpp
SimplifyAffineStructures.cpp
StripDebugInfo.cpp
- TestConstantFold.cpp
- TestLoopFusion.cpp
Utils/FoldUtils.cpp
Utils/GreedyPatternRewriteDriver.cpp
Utils/LoopFusionUtils.cpp
Utils/Utils.cpp
Vectorization
Vectorize.cpp
- Vectorization/VectorizerTestPass.cpp
ViewFunctionGraph.cpp
ADDITIONAL_HEADER_DIRS
add_subdirectory(EDSC)
add_subdirectory(mlir-cpu-runner)
add_subdirectory(SDBM)
-add_subdirectory(TestDialect)
+add_subdirectory(lib)
llvm_canonicalize_cmake_booleans(
LLVM_BUILD_EXAMPLES
mlir-opt
mlir-sdbm-api-test
mlir-tblgen
- mlir-test-opt
mlir-translate
cblas
cblas_interface
-// RUN: mlir-test-opt %s -split-input-file -verify-diagnostics | FileCheck %s
+// RUN: mlir-opt %s -split-input-file -verify-diagnostics | FileCheck %s
//===----------------------------------------------------------------------===//
// Test TypeArrayAttr
-// RUN: mlir-test-opt %s -split-input-file -verify-diagnostics | FileCheck %s
+// RUN: mlir-opt %s -split-input-file -verify-diagnostics | FileCheck %s
//===----------------------------------------------------------------------===//
// Test mixed normal and variadic operands
-// RUN: mlir-test-opt %s -split-input-file -verify-diagnostics | FileCheck %s
+// RUN: mlir-opt %s -split-input-file -verify-diagnostics | FileCheck %s
//===----------------------------------------------------------------------===//
// Test the number of regions
-// RUN: mlir-test-opt %s -split-input-file -verify-diagnostics | FileCheck %s
+// RUN: mlir-opt %s -split-input-file -verify-diagnostics | FileCheck %s
//===----------------------------------------------------------------------===//
// Test mixed normal and variadic results
-// RUN: mlir-test-opt %s -split-input-file -verify-diagnostics | FileCheck %s
+// RUN: mlir-opt %s -split-input-file -verify-diagnostics | FileCheck %s
// CHECK: succeededSameOperandAndResultElementType
func @succeededSameOperandAndResultElementType(%t10x10 : tensor<10x10xf32>, %t1: tensor<1xf32>, %v1: vector<1xf32>, %t1i: tensor<1xi32>) {
-// RUN: mlir-test-opt -test-legalize-patterns -split-input-file -verify-diagnostics %s | FileCheck %s --dump-input=fail
+// RUN: mlir-opt -test-legalize-patterns -split-input-file -verify-diagnostics %s | FileCheck %s --dump-input=fail
// CHECK-LABEL: verifyDirectPattern
func @verifyDirectPattern() -> i32 {
--- /dev/null
+add_subdirectory(TestDialect)
+add_subdirectory(Transforms)
)
add_dependencies(MLIRTestDialect
MLIRTestOpsIncGen
+ MLIRTypeUtilities
LLVMSupport
)
target_link_libraries(MLIRTestDialect
- LLVMSupport
-)
-
-add_llvm_executable(mlir-test-opt
- ${MLIR_MAIN_SRC_DIR}/../tools/mlir-opt/mlir-opt.cpp
- TestDialect.cpp
- TestPatterns.cpp
-)
-llvm_update_compile_flags(mlir-test-opt)
-whole_archive_link(mlir-test-opt
- MLIRStandardOps
-)
-target_link_libraries(mlir-test-opt
- PRIVATE
- MLIRMlirOptLib
- MLIROptMain
MLIRTypeUtilities
LLVMSupport
)
--- /dev/null
+add_llvm_library(MLIRTestTransforms
+ TestConstantFold.cpp
+ TestLoopFusion.cpp
+ TestVectorizationUtils.cpp
+
+ ADDITIONAL_HEADER_DIRS
+ ${MLIR_MAIN_INCLUDE_DIR}/mlir/Transforms
+ )
+add_dependencies(MLIRTestTransforms MLIRStandardOpsIncGen)
+target_link_libraries(MLIRTestTransforms
+ MLIRAffineOps
+ MLIRAnalysis
+ MLIRPass
+ MLIRVectorOps
+ )
tools = [
'mlir-opt',
'mlir-tblgen',
- 'mlir-test-opt',
'mlir-translate',
'mlir-edsc-builder-api-test',
]
-// RUN: mlir-test-opt -test-patterns -mlir-print-debuginfo %s | FileCheck %s
+// RUN: mlir-opt -test-patterns -mlir-print-debuginfo %s | FileCheck %s
// CHECK-LABEL: verifyConstantAttr
func @verifyConstantAttr(%arg0 : i32) -> i32 {
-// RUN: mlir-test-opt %s -split-input-file -verify-diagnostics | FileCheck %s
+// RUN: mlir-opt %s -split-input-file -verify-diagnostics | FileCheck %s
// -----
-// RUN: mlir-test-opt -test-patterns %s | FileCheck %s
+// RUN: mlir-opt -test-patterns %s | FileCheck %s
//===----------------------------------------------------------------------===//
// Test 'verifyUnusedValue'
MLIRStandardOps
MLIRStandardToLLVM
MLIRTransforms
+ MLIRTestDialect
+ MLIRTestTransforms
MLIRSupport
MLIRVectorOps
)