MLIR  22.0.0git
Namespaces | Functions
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

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

Functions

void mlir::LLVM::detail::initializeBackendsOnce ()
 Idempotent helper to register/initialize all backends that LLVM has been configured to support. More...
 
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. More...
 
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. More...