Skip to content

Commit

Permalink
remove stale enzyme-tblgen changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jumerckx committed Dec 2, 2024
1 parent a501cb6 commit 2cb5765
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions enzyme/tools/enzyme-tblgen/enzyme-tblgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1785,13 +1785,6 @@ static void emitDerivatives(const RecordKeeper &recordKeeper, raw_ostream &os,
os << " LogicalResult createForwardModeTangent(Operation *op0, "
"OpBuilder &builder, MGradientUtils *gutils) const {\n";
os << " auto op = cast<" << dialect << "::" << opName << ">(op0);\n";
os << " if (gutils->width != 1) {\n"
<< " auto newop = gutils->getNewFromOriginal(op0);\n"
<< " for (auto res : newop->getResults()) {\n"
<< " res.setType(mlir::RankedTensorType::get({gutils->width}, "
"res.getType()));\n"
<< " }\n"
<< " }\n";
origName = "op";
break;
}
Expand Down

0 comments on commit 2cb5765

Please sign in to comment.