SDBMConstantExpr stripeFactor) {
assert(var && "expected SDBM variable expression");
assert(stripeFactor && "expected non-null stripe factor");
- assert(stripeFactor.getValue() > 0 && "non-positive stripe factor");
+ if (stripeFactor.getValue() <= 0)
+ llvm::report_fatal_error("non-positive stripe factor");
MLIRContextImpl &impl = var.getContext()->getImpl();
auto key = std::make_tuple(var, stripeFactor);
)
add_dependencies(MLIRLLVMIR MLIRLLVMOpsIncGen MLIRLLVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport)
target_link_libraries(MLIRLLVMIR LLVMAsmParser LLVMCore LLVMSupport)
+add_llvm_library(MLIRNVVMIR
+ IR/NVVMDialect.cpp
+
+ ADDITIONAL_HEADER_DIRS
+ ${MLIR_MAIN_INCLUDE_DIR}/mlir/LLVMIR
+ )
+add_dependencies(MLIRNVVMIR MLIRNVVMOpsIncGen MLIRNVVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport)
+target_link_libraries(MLIRNVVMIR LLVMAsmParser LLVMCore LLVMSupport)