#include "mlir/Dialect/ControlFlow/Transforms/BufferizableOpInterfaceImpl.h"
#include "mlir/Dialect/Bufferization/IR/Bufferization.h"
#include "mlir/Dialect/Bufferization/IR/UnstructuredControlFlow.h"
#include "mlir/Dialect/Bufferization/Transforms/OneShotAnalysis.h"
#include "mlir/Dialect/ControlFlow/IR/ControlFlowOps.h"
#include "mlir/Dialect/MemRef/IR/MemRef.h"
#include "mlir/IR/Dialect.h"
#include "mlir/IR/Operation.h"
usingnamespacemlir;
usingnamespacemlir::bufferization;
namespace mlir {
namespace cf {
namespace {
template <typename ConcreteModel, typename ConcreteOp>
struct BranchLikeOpInterface
: public BranchOpBufferizableOpInterfaceExternalModel<ConcreteModel,
ConcreteOp> { … };
struct BranchOpInterface
: public BranchLikeOpInterface<BranchOpInterface, cf::BranchOp> { … };
struct CondBranchOpInterface
: public BranchLikeOpInterface<CondBranchOpInterface, cf::CondBranchOp> { … };
}
}
}
void mlir::cf::registerBufferizableOpInterfaceExternalModels(
DialectRegistry ®istry) { … }