18 #define GEN_PASS_DEF_SPIRVCANONICALIZEGLPASS
19 #include "mlir/Dialect/SPIRV/Transforms/Passes.h.inc"
26 class CanonicalizeGLPass final
27 :
public spirv::impl::SPIRVCanonicalizeGLPassBase<CanonicalizeGLPass> {
29 void runOnOperation()
override {
34 return signalPassFailure();
static MLIRContext * getContext(OpFoldResult val)
void populateSPIRVGLCanonicalizationPatterns(RewritePatternSet &results)
Populates patterns to run canoncalization that involves GL ops.
Include the generated interface declarations.
LogicalResult applyPatternsAndFoldGreedily(Region ®ion, const FrozenRewritePatternSet &patterns, GreedyRewriteConfig config=GreedyRewriteConfig(), bool *changed=nullptr)
Rewrite ops in the given region, which must be isolated from above, by repeatedly applying the highes...
bool failed(LogicalResult result)
Utility function that returns true if the provided LogicalResult corresponds to a failure value.