MLIR 22.0.0git
mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyThreadPool Class Reference

Wrapper around MlirLlvmThreadPool Python object owns the C++ thread pool. More...

#include "mlir/Bindings/Python/IRCore.h"

Public Member Functions

 PyThreadPool ()
 PyThreadPool (const PyThreadPool &)=delete
 PyThreadPool (PyThreadPool &&)=delete
int getMaxConcurrency () const
MlirLlvmThreadPool get ()
std::string _mlir_thread_pool_ptr () const

Detailed Description

Wrapper around MlirLlvmThreadPool Python object owns the C++ thread pool.

Definition at line 183 of file IRCore.h.

Constructor & Destructor Documentation

◆ PyThreadPool() [1/3]

mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyThreadPool::PyThreadPool ( )

Definition at line 429 of file IRCore.cpp.

Referenced by PyThreadPool(), and PyThreadPool().

◆ PyThreadPool() [2/3]

mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyThreadPool::PyThreadPool ( const PyThreadPool & )
delete

References PyThreadPool().

◆ PyThreadPool() [3/3]

mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyThreadPool::PyThreadPool ( PyThreadPool && )
delete

References PyThreadPool().

Member Function Documentation

◆ _mlir_thread_pool_ptr()

std::string mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyThreadPool::_mlir_thread_pool_ptr ( ) const

◆ get()

MlirLlvmThreadPool mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyThreadPool::get ( )
inline

Definition at line 190 of file IRCore.h.

References wrap().

Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRCore().

◆ getMaxConcurrency()

int mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyThreadPool::getMaxConcurrency ( ) const
inline

Definition at line 189 of file IRCore.h.

Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRCore().


The documentation for this class was generated from the following files: