Repair a verified behavior in llvm/circt.
Repair a verified behavior in llvm/circt.: a task in OriGent-SFT-Data (Harbor dataset). The hw::HWModuleOp builder overload that accepts an HWModuleBuilder callback is unsafe when its OpBuilder is actually a PatternRewriter . It first creates a placeholder hw::OutputOp , then invokes the callback…
The task
The `hw::HWModuleOp` builder overload that accepts an `HWModuleBuilder` callback is unsafe when its `OpBuilder` is actually a `PatternRewriter`. It first creates a placeholder `hw::OutputOp`, then invokes the callback, creates a second output operation from the callback-assigned output values, and directly erases the…
Part of henryen/OriGent-SFT-Data.