16#include "mlir/Dialect/Math/IR/MathOpsDialect.cpp.inc"
21struct MathInlinerInterface :
public DialectInlinerInterface {
22 using DialectInlinerInterface::DialectInlinerInterface;
25 bool isLegalToInline(Operation *, Region *,
bool, IRMapping &)
const final {
31void mlir::math::MathDialect::initialize() {
34#include "mlir/Dialect/Math/IR/MathOps.cpp.inc"
36 addInterfaces<MathInlinerInterface>();
37 declarePromisedInterface<ConvertToLLVMPatternInterface, MathDialect>();
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.