MLIR  19.0.0git
Functions
mlir::cf Namespace Reference

Functions

void populateControlFlowToLLVMConversionPatterns (LLVMTypeConverter &converter, RewritePatternSet &patterns)
 Collect the patterns to convert from the ControlFlow dialect to LLVM. More...
 
void populateAssertToLLVMConversionPattern (LLVMTypeConverter &converter, RewritePatternSet &patterns, bool abortOnFailure=true)
 Populate the cf.assert to LLVM conversion pattern. More...
 
void registerConvertControlFlowToLLVMInterface (DialectRegistry &registry)
 
void populateControlFlowToSPIRVPatterns (SPIRVTypeConverter &typeConverter, RewritePatternSet &patterns)
 Appends to a pattern list additional patterns for translating ControlFLow ops to SPIR-V ops. More...
 
void registerBufferDeallocationOpInterfaceExternalModels (DialectRegistry &registry)
 
void registerBufferizableOpInterfaceExternalModels (DialectRegistry &registry)
 

Function Documentation

◆ populateAssertToLLVMConversionPattern()

void mlir::cf::populateAssertToLLVMConversionPattern ( LLVMTypeConverter converter,
RewritePatternSet patterns,
bool  abortOnFailure = true 
)

Populate the cf.assert to LLVM conversion pattern.

If abortOnFailure is set to false, the program execution continues when a condition is unsatisfied.

Definition at line 214 of file ControlFlowToLLVM.cpp.

References mlir::RewritePatternSet::add().

◆ populateControlFlowToLLVMConversionPatterns()

void mlir::cf::populateControlFlowToLLVMConversionPatterns ( LLVMTypeConverter converter,
RewritePatternSet patterns 
)

Collect the patterns to convert from the ControlFlow dialect to LLVM.

The conversion patterns capture the LLVMTypeConverter by reference meaning the references have to remain alive during the entire pattern lifetime.

Definition at line 203 of file ControlFlowToLLVM.cpp.

References mlir::RewritePatternSet::add().

◆ populateControlFlowToSPIRVPatterns()

void mlir::cf::populateControlFlowToSPIRVPatterns ( SPIRVTypeConverter typeConverter,
RewritePatternSet patterns 
)

Appends to a pattern list additional patterns for translating ControlFLow ops to SPIR-V ops.

Definition at line 112 of file ControlFlowToSPIRV.cpp.

References mlir::RewritePatternSet::add(), and mlir::RewritePatternSet::getContext().

◆ registerBufferDeallocationOpInterfaceExternalModels()

void mlir::cf::registerBufferDeallocationOpInterfaceExternalModels ( DialectRegistry registry)

◆ registerBufferizableOpInterfaceExternalModels()

void mlir::cf::registerBufferizableOpInterfaceExternalModels ( DialectRegistry registry)

◆ registerConvertControlFlowToLLVMInterface()

void mlir::cf::registerConvertControlFlowToLLVMInterface ( DialectRegistry registry)

Definition at line 274 of file ControlFlowToLLVM.cpp.

References mlir::DialectRegistry::addExtension().

Referenced by mlir::registerAllExtensions().