25 void transform::ApplyFuncToLLVMConversionPatternsOp::populatePatterns(
32 transform::ApplyFuncToLLVMConversionPatternsOp::verifyTypeConverter(
33 transform::TypeConverterBuilderOpInterface builder) {
34 if (builder.getTypeConverterType() !=
"LLVMTypeConverter")
35 return emitOpError(
"expected LLVMTypeConverter");
44 class FuncTransformDialectExtension
46 FuncTransformDialectExtension> {
51 declareGeneratedDialect<LLVM::LLVMDialect>();
55 #include "mlir/Dialect/Func/TransformOps/FuncTransformOps.cpp.inc"
61 #define GET_OP_CLASSES
62 #include "mlir/Dialect/Func/TransformOps/FuncTransformOps.cpp.inc"
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
void addExtensions()
Add the given extensions to the registry.
Conversion from types to the LLVM IR dialect.
Base class for extensions of the Transform dialect that supports injecting operations into the Transf...
void registerTransformDialectExtension(DialectRegistry ®istry)
Include the generated interface declarations.
void populateFuncToLLVMConversionPatterns(LLVMTypeConverter &converter, RewritePatternSet &patterns, const SymbolTable *symbolTable=nullptr)
Collect the patterns to convert from the Func dialect to LLVM.
LogicalResult success(bool isSuccess=true)
Utility function to generate a LogicalResult.
This class represents an efficient way to signal success or failure.