MLIR  19.0.0git
Classes | Namespaces | Macros | Typedefs | Functions
GPUCommonPass.h File Reference
#include "mlir/Dialect/GPU/Transforms/Utils.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/Types.h"
#include "mlir/Support/LLVM.h"
#include "llvm/ADT/StringRef.h"
#include <functional>
#include <vector>
#include "mlir/Conversion/Passes.h.inc"

Go to the source code of this file.

Classes

struct  mlir::FunctionCallBuilder
 

Namespaces

 llvm
 Include the generated interface declarations.
 
 mlir
 Include the generated interface declarations.
 
 mlir::gpu
 
 mlir::LLVM
 

Macros

#define GEN_PASS_DECL_GPUTOLLVMCONVERSIONPASS
 

Typedefs

using mlir::OwnedBlob = std::unique_ptr< std::vector< char > >
 
using mlir::BlobGenerator = std::function< OwnedBlob(const std::string &, Location, StringRef)>
 
using mlir::LoweringCallback = std::function< std::unique_ptr< llvm::Module >(Operation *, llvm::LLVMContext &, StringRef)>
 
using mlir::MemorySpaceMapping = std::function< unsigned(gpu::AddressSpace)>
 A function that maps a MemorySpace enum to a target-specific integer value. More...
 

Functions

void mlir::populateGpuToLLVMConversionPatterns (LLVMTypeConverter &converter, RewritePatternSet &patterns, StringRef gpuBinaryAnnotation={}, bool kernelBarePtrCallConv=false, SymbolTable *cachedModuleTable=nullptr)
 Collect a set of patterns to convert from the GPU dialect to LLVM and populate converter for gpu types. More...
 
void mlir::populateGpuMemorySpaceAttributeConversions (TypeConverter &typeConverter, const MemorySpaceMapping &mapping)
 Populates memory space attribute conversion rules for lowering gpu.address_space to integer values. More...
 

Macro Definition Documentation

◆ GEN_PASS_DECL_GPUTOLLVMCONVERSIONPASS

#define GEN_PASS_DECL_GPUTOLLVMCONVERSIONPASS

Definition at line 46 of file GPUCommonPass.h.