MLIR 22.0.0git
TargetUtils.h File Reference
#include "mlir/Dialect/LLVMIR/LLVMInterfaces.h"
#include "llvm/Support/Threading.h"
#include "llvm/Target/TargetMachine.h"

Go to the source code of this file.

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::LLVM
namespace  mlir::LLVM::detail

Functions

void mlir::LLVM::detail::initializeBackendsOnce ()
 Idempotent helper to register/initialize all backends that LLVM has been configured to support.
FailureOr< std::unique_ptr< llvm::TargetMachine > > mlir::LLVM::detail::getTargetMachine (mlir::LLVM::TargetAttrInterface attr)
 Helper to obtain the TargetMachine specified by the properties of the TargetAttrInterface-implementing attribute.
FailureOr< llvm::DataLayout > mlir::LLVM::detail::getDataLayout (mlir::LLVM::TargetAttrInterface attr)
 Helper to obtain the DataLayout of the target specified by the properties of the TargetAttrInterface-implementing attribute.