9 #ifndef MLIR_TARGET_LLVMIR_TRANSFORMS_TARGETUTILS_H
10 #define MLIR_TARGET_LLVMIR_TRANSFORMS_TARGETUTILS_H
13 #include "llvm/Support/Threading.h"
14 #include "llvm/Target/TargetMachine.h"
25 FailureOr<std::unique_ptr<llvm::TargetMachine>>
30 FailureOr<llvm::DataLayout>
getDataLayout(mlir::LLVM::TargetAttrInterface attr);
FailureOr< std::unique_ptr< llvm::TargetMachine > > getTargetMachine(mlir::LLVM::TargetAttrInterface attr)
Helper to obtain the TargetMachine specified by the properties of the TargetAttrInterface-implementin...
FailureOr< llvm::DataLayout > getDataLayout(mlir::LLVM::TargetAttrInterface attr)
Helper to obtain the DataLayout of the target specified by the properties of the TargetAttrInterface-...
void initializeBackendsOnce()
Idempotent helper to register/initialize all backends that LLVM has been configured to support.
Include the generated interface declarations.