|
MLIR 23.0.0git
|
Namespaces | |
| namespace | detail |
Functions | |
| void | populateUBToLLVMConversionPatterns (const LLVMTypeConverter &converter, RewritePatternSet &patterns) |
| void | registerConvertUBToLLVMInterface (DialectRegistry ®istry) |
| void | populateUBToSPIRVConversionPatterns (const SPIRVTypeConverter &converter, RewritePatternSet &patterns) |
| detail::poison_attr_matcher | m_Poison () |
| Matches a poison constant (any attribute implementing PoisonAttrInterface). | |
|
inline |
Matches a poison constant (any attribute implementing PoisonAttrInterface).
Works with matchPattern on Value, Operation*, and Attribute.
Examples: matchPattern(value, ub::m_Poison()) // Matches ub.poison op via Value. matchPattern(op, ub::m_Poison()) // Matches ub.poison op directly. matchPattern(attr, ub::m_Poison()) // Matches PoisonAttr(Interface).
Definition at line 46 of file UBMatchers.h.
Referenced by foldFromElementsToConstant(), foldPoisonSrcExtractOp(), and padOperand().
| void mlir::ub::populateUBToLLVMConversionPatterns | ( | const LLVMTypeConverter & | converter, |
| RewritePatternSet & | patterns ) |
Definition at line 115 of file UBToLLVM.cpp.
References mlir::RewritePatternSet::add().
| void mlir::ub::populateUBToSPIRVConversionPatterns | ( | const SPIRVTypeConverter & | converter, |
| RewritePatternSet & | patterns ) |
Definition at line 87 of file UBToSPIRV.cpp.
References mlir::RewritePatternSet::add(), and mlir::RewritePatternSet::getContext().
| void mlir::ub::registerConvertUBToLLVMInterface | ( | DialectRegistry & | registry | ) |
Definition at line 142 of file UBToLLVM.cpp.
References mlir::DialectRegistry::addExtension().
Referenced by mlir::registerAllExtensions().