mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 02:00:03 +08:00
Previously we were using PatternRewrite::replaceOpWithNewOp() to both create the new op inline and rewrite the matched op. That does not work well if we want to generate multiple ops in a sequence. To support that, this CL changed to assign each newly created op to a separate variable. This CL also refactors how PatternEmitter performs the directive dispatch logic. PiperOrigin-RevId: 233206819
6.7 KiB
6.7 KiB