25#include "mlir/Dialect/AMDGPU/IR/AMDGPUDialect.cpp.inc"
28struct AMDGPUInlinerInterface final : DialectInlinerInterface {
29 using DialectInlinerInterface::DialectInlinerInterface;
30 bool isLegalToInline(Operation *, Region *,
bool, IRMapping &)
const final {
36void AMDGPUDialect::initialize() {
37 addInterfaces<AMDGPUInlinerInterface>();
38 declarePromisedInterfaces<
39 memref::IndexedAccessOpInterface, TransposeLoadOp, GlobalTransposeLoadOp,
40 MakeDmaDescriptorOp, MakeGatherDmaDescriptorOp, DsBarrierInitOp,
41 DsBarrierPollStateOp, DsAsyncBarrierArriveOp, DsBarrierArriveOp>();
42 declarePromisedInterfaces<memref::IndexedMemCopyOpInterface, GatherToLDSOp,
43 GlobalLoadAsyncToLDSOp, MakeDmaBaseOp,
44 MakeGatherDmaBaseOp>();
static bool isLegalToInline(InlinerInterface &interface, Region *src, Region *insertRegion, bool shouldCloneInlinedRegion, IRMapping &valueMapping)
Utility to check that all of the operations within 'src' can be inlined.
Include the generated interface declarations.