|
MLIR 22.0.0git
|
#include "mlir/Conversion/GPUToROCDL/GPUToROCDLPass.h"#include "mlir/Dialect/Arith/Transforms/Passes.h"#include "mlir/Pass/Pass.h"#include "mlir/Pass/PassManager.h"#include "mlir/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.h"#include "mlir/Conversion/ConvertToLLVM/ToLLVMInterface.h"#include "mlir/Conversion/ConvertToLLVM/ToLLVMPass.h"#include "mlir/Conversion/GPUCommon/GPUCommonPass.h"#include "mlir/Conversion/LLVMCommon/ConversionTarget.h"#include "mlir/Conversion/LLVMCommon/LoweringOptions.h"#include "mlir/Conversion/LLVMCommon/Pattern.h"#include "mlir/Conversion/LLVMCommon/TypeConverter.h"#include "mlir/Conversion/MathToLLVM/MathToLLVM.h"#include "mlir/Conversion/MathToROCDL/MathToROCDL.h"#include "mlir/Dialect/AMDGPU/IR/AMDGPUDialect.h"#include "mlir/Dialect/ControlFlow/IR/ControlFlow.h"#include "mlir/Dialect/Func/IR/FuncOps.h"#include "mlir/Dialect/GPU/IR/GPUDialect.h"#include "mlir/Dialect/GPU/Transforms/Passes.h"#include "mlir/Dialect/LLVMIR/LLVMDialect.h"#include "mlir/Dialect/LLVMIR/ROCDLDialect.h"#include "mlir/Dialect/MemRef/IR/MemRef.h"#include "mlir/Dialect/Vector/IR/VectorOps.h"#include "mlir/IR/BuiltinAttributes.h"#include "mlir/Transforms/DialectConversion.h"#include "mlir/Transforms/GreedyPatternRewriteDriver.h"#include "../GPUCommon/GPUOpsLowering.h"#include "../GPUCommon/IndexIntrinsicsOpLowering.h"#include "mlir/Conversion/Passes.h.inc"#include "GPUToROCDL.cpp.inc"Go to the source code of this file.
Classes | |
| class | mlir::impl::ConvertGpuOpsToROCDLOpsBase< DerivedT > |
Namespaces | |
| namespace | mlir |
| Include the generated interface declarations. | |
| namespace | mlir::impl |
| Attribute collections provide a dictionary-like interface. | |
Macros | |
| #define | GEN_PASS_DEF_CONVERTGPUOPSTOROCDLOPS |
Functions | |
| std::unique_ptr<::mlir::Pass > | mlir::impl::createConvertGpuOpsToROCDLOps () |
| std::unique_ptr<::mlir::Pass > | mlir::impl::createConvertGpuOpsToROCDLOps (ConvertGpuOpsToROCDLOpsOptions options) |
| std::unique_ptr<::mlir::Pass > | mlir::createConvertGpuOpsToROCDLOps () |
| std::unique_ptr<::mlir::Pass > | mlir::createConvertGpuOpsToROCDLOps (ConvertGpuOpsToROCDLOpsOptions options) |
| static Value | truncOrExtToLLVMType (ConversionPatternRewriter &rewriter, Location loc, Value value, const LLVMTypeConverter &converter) |
| static bool | canBeCalledWithBarePointers (gpu::GPUFuncOp func) |
| Returns true if the given gpu.func can be safely called using the bare pointer calling convention. | |
| static Value | getLaneId (RewriterBase &rewriter, Location loc) |
Variables | |
| static constexpr StringLiteral | amdgcnDataLayout |
| #define GEN_PASS_DEF_CONVERTGPUOPSTOROCDLOPS |
Definition at line 46 of file LowerGpuOpsToROCDLOps.cpp.
|
static |
Returns true if the given gpu.func can be safely called using the bare pointer calling convention.
Definition at line 73 of file LowerGpuOpsToROCDLOps.cpp.
References mlir::LLVMTypeConverter::canConvertToBarePtr().
|
static |
Definition at line 81 of file LowerGpuOpsToROCDLOps.cpp.
References mlir::arith::ConstantIntOp::create(), mlir::Builder::getArrayAttr(), mlir::Builder::getContext(), mlir::Builder::getDictionaryAttr(), mlir::Builder::getNamedAttr(), and mlir::Builder::getUnitAttr().
|
static |
Definition at line 54 of file LowerGpuOpsToROCDLOps.cpp.
References mlir::LLVMTypeConverter::getIndexTypeBitwidth(), and mlir::Value::getType().
|
staticconstexpr |
Definition at line 105 of file LowerGpuOpsToROCDLOps.cpp.