|
MLIR 22.0.0git
|
#include "mlir/Conversion/GPUCommon/GPUCommonPass.h"#include "mlir/Conversion/ArithToLLVM/ArithToLLVM.h"#include "mlir/Conversion/AsyncToLLVM/AsyncToLLVM.h"#include "mlir/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.h"#include "mlir/Conversion/ConvertToLLVM/ToLLVMInterface.h"#include "mlir/Conversion/ConvertToLLVM/ToLLVMPass.h"#include "mlir/Conversion/FuncToLLVM/ConvertFuncToLLVM.h"#include "mlir/Conversion/GPUCommon/GPUToLLVM.h"#include "mlir/Conversion/LLVMCommon/Pattern.h"#include "mlir/Conversion/MemRefToLLVM/MemRefToLLVM.h"#include "mlir/Conversion/VectorToLLVM/ConvertVectorToLLVM.h"#include "mlir/Dialect/Async/IR/Async.h"#include "mlir/Dialect/GPU/IR/GPUDialect.h"#include "mlir/Dialect/GPU/Transforms/Passes.h"#include "mlir/Dialect/LLVMIR/LLVMDialect.h"#include "mlir/Dialect/MemRef/IR/MemRef.h"#include "mlir/Dialect/Vector/Transforms/LoweringPatterns.h"#include "mlir/IR/Attributes.h"#include "mlir/IR/Builders.h"#include "mlir/IR/BuiltinOps.h"#include "mlir/IR/BuiltinTypes.h"#include "mlir/Transforms/GreedyPatternRewriteDriver.h"#include "llvm/ADT/STLExtras.h"#include "mlir/Conversion/Passes.h.inc"Go to the source code of this file.
Classes | |
| class | mlir::impl::GpuToLLVMConversionPassBase< DerivedT > |
Namespaces | |
| namespace | mlir |
| Include the generated interface declarations. | |
| namespace | mlir::impl |
| Attribute collections provide a dictionary-like interface. | |
Macros | |
| #define | DEBUG_TYPE "gpu-to-llvm" |
| #define | GEN_PASS_DEF_GPUTOLLVMCONVERSIONPASS |
| #define | DECLARE_CONVERT_OP_TO_GPU_RUNTIME_CALL_PATTERN(op_name) |
| Generic rewriting rule for operation on sparse matrices. | |
Functions | |
| std::unique_ptr<::mlir::Pass > | mlir::impl::createGpuToLLVMConversionPass () |
| std::unique_ptr<::mlir::Pass > | mlir::impl::createGpuToLLVMConversionPass (GpuToLLVMConversionPassOptions options) |
| std::unique_ptr<::mlir::Pass > | mlir::createGpuToLLVMConversionPass () |
| std::unique_ptr<::mlir::Pass > | mlir::createGpuToLLVMConversionPass (GpuToLLVMConversionPassOptions options) |
| static int32_t | getCuSparseIndexTypeFrom (Type type) |
| static int32_t | getCuSparseLtDataTypeFrom (Type type) |
| static int32_t | getCuSparseDataTypeFrom (Type type) |
| static gpu::Prune2To4SpMatFlag | get2To4PruneFlag (Value spMat) |
| static bool | is2To4Sparsity (Value spMat) |
| static bool | isSpMMCusparseLtOp (Value op) |
| static LogicalResult | areAllLLVMTypes (Operation *op, ValueRange operands, ConversionPatternRewriter &rewriter) |
| static LogicalResult | isAsyncWithOneDependency (ConversionPatternRewriter &rewriter, gpu::AsyncOpInterface op) |
| static bool | isGpuAsyncTokenType (Value value) |
| static bool | isDefinedByCallTo (Value value, StringRef functionName) |
| static Value | bitAndAddrspaceCast (Location loc, ConversionPatternRewriter &rewriter, LLVM::LLVMPointerType destinationType, Value sourcePtr, const LLVMTypeConverter &typeConverter) |
| template<typename T> | |
| static Value | genConstInt32From (OpBuilder &builder, Location loc, T tValue) |
| template<typename T> | |
| static Value | genConstFloat32From (OpBuilder &builder, Location loc, T tValue) |
| template<typename T> | |
| static void | addOpaquePointerConversion (LLVMTypeConverter &converter) |
| #define DEBUG_TYPE "gpu-to-llvm" |
Definition at line 42 of file GPUToLLVMConversion.cpp.
| #define DECLARE_CONVERT_OP_TO_GPU_RUNTIME_CALL_PATTERN | ( | op_name | ) |
Generic rewriting rule for operation on sparse matrices.
Currently supports CUDA (by means of cuSparse and cuSparseLt).
Definition at line 488 of file GPUToLLVMConversion.cpp.
| #define GEN_PASS_DEF_GPUTOLLVMCONVERSIONPASS |
Definition at line 45 of file GPUToLLVMConversion.cpp.
|
static |
Definition at line 1549 of file GPUToLLVMConversion.cpp.
References mlir::LLVMTypeConverter::getContext().
Referenced by mlir::populateGpuToLLVMConversionPatterns().
|
static |
Definition at line 689 of file GPUToLLVMConversion.cpp.
References mlir::Value::getType(), mlir::LLVM::isCompatibleType(), and success().
|
static |
Definition at line 1047 of file GPUToLLVMConversion.cpp.
References mlir::Value::getType().
|
static |
Definition at line 1161 of file GPUToLLVMConversion.cpp.
References mlir::Builder::getF32FloatAttr(), and mlir::Builder::getF32Type().
Definition at line 1154 of file GPUToLLVMConversion.cpp.
References mlir::Builder::getIntegerType().
|
static |
Definition at line 647 of file GPUToLLVMConversion.cpp.
References mlir::Value::getDefiningOp().
|
static |
Definition at line 610 of file GPUToLLVMConversion.cpp.
References mlir::Type::isBF16(), mlir::Type::isF16(), mlir::Type::isF32(), mlir::Type::isF64(), and mlir::Type::isInteger().
|
static |
Definition at line 592 of file GPUToLLVMConversion.cpp.
References mlir::Type::isInteger().
|
static |
Definition at line 600 of file GPUToLLVMConversion.cpp.
References mlir::Type::isF16(), and mlir::Type::isInteger().
Definition at line 658 of file GPUToLLVMConversion.cpp.
References mlir::Value::getDefiningOp(), and mlir::Operation::print().
Referenced by isSpMMCusparseLtOp().
|
static |
Definition at line 700 of file GPUToLLVMConversion.cpp.
References success().
Definition at line 868 of file GPUToLLVMConversion.cpp.
References mlir::Value::getDefiningOp(), and mlir::Value::getType().
Definition at line 833 of file GPUToLLVMConversion.cpp.
References mlir::Value::getType().
Definition at line 676 of file GPUToLLVMConversion.cpp.
References mlir::Value::getUsers(), and is2To4Sparsity().