Lines Matching defs:funcOp
46 /// Return the unique ReturnOp that terminates `funcOp`.
48 static func::ReturnOp getAssumedUniqueReturnOp(func::FuncOp funcOp) {
50 for (Block &b : funcOp.getBody()) {
82 for (auto funcOp : module.getOps<func::FuncOp>()) {
83 if (funcOp.isExternal())
85 func::ReturnOp returnOp = getAssumedUniqueReturnOp(funcOp);
92 BitVector erasedResultIndices(funcOp.getFunctionType().getNumResults());
96 for (BlockArgument bbArg : funcOp.getArguments()) {
116 funcOp.eraseResults(erasedResultIndices);
120 for (func::CallOp callOp : callerMap[funcOp]) {
122 auto newCallOp = rewriter.create<func::CallOp>(callOp.getLoc(), funcOp,