[Mlir-commits] [mlir] [MLIR][LLVMIR][DLTI] Pass to update #llvm.target's features per relevant backend (PR #154938)
Mehdi Amini
llvmlistbot at llvm.org
Sat Aug 23 05:56:44 PDT 2025
================
@@ -9,12 +9,26 @@
#ifndef MLIR_TARGET_LLVMIR_TRANSFORMS_PASSES_H
#define MLIR_TARGET_LLVMIR_TRANSFORMS_PASSES_H
+#include "mlir/Dialect/LLVMIR/LLVMInterfaces.h"
#include "mlir/Pass/Pass.h"
+#include "llvm/Support/Threading.h"
+#include "llvm/Target/TargetMachine.h"
namespace mlir {
namespace LLVM {
+namespace detail {
+
+void initializeBackendsOnce();
+
+FailureOr<std::unique_ptr<llvm::TargetMachine>>
+getTargetMachine(mlir::LLVM::TargetAttrInterface attr);
+
+FailureOr<llvm::DataLayout> getDataLayout(mlir::LLVM::TargetAttrInterface attr);
----------------
joker-eph wrote:
None of the APIs here looks like related to pass management?
https://github.com/llvm/llvm-project/pull/154938
More information about the Mlir-commits
mailing list