[Mlir-commits] [mlir] [mlir] Remove the mlir-spirv-cpu-runner (move to mlir-cpu-runner) (PR #114563)
Andrea Faulds
llvmlistbot at llvm.org
Thu Nov 7 07:11:39 PST 2024
================
@@ -17,10 +17,65 @@
#include "mlir/ExecutionEngine/OptUtils.h"
#include "mlir/IR/Dialect.h"
#include "mlir/Target/LLVMIR/Dialect/All.h"
+#include "mlir/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.h"
+#include "mlir/Target/LLVMIR/Export.h"
+#include "llvm/IR/LLVMContext.h"
+#include "llvm/IR/Module.h"
+#include "llvm/Linker/Linker.h"
+#include "llvm/Support/CommandLine.h"
#include "llvm/Support/InitLLVM.h"
#include "llvm/Support/TargetSelect.h"
+using namespace mlir;
+
+llvm::cl::opt<bool> LinkNestedModules(
+ "link-nested-modules",
+ llvm::cl::desc("Link two nested MLIR modules into a single LLVM IR module. "
+ "Useful if both the host and device code can be run on the "
+ "same CPU, as in mlir-spirv-cpu-runner tests."));
----------------
andfau-amd wrote:
For my part I think this commit is still an improvement as it stands and I'd rather it be merged more or less as-is (modulo some naming changes etc), then further changes to the shape of this can be experimented with later if necessary. The SPIR-V CPU runner is pretty obscure and rarely used though, so it's not that important that it have the ideal shape, if that makes sense. If there's something worth arguing about it might be how the Vulkan SPIR-V runner changes look.
https://github.com/llvm/llvm-project/pull/114563
More information about the Mlir-commits
mailing list