================
@@ -2057,6 +2057,14 @@ class TargetInstrInfo : public MCInstrInfo {
"Target didn't implement TargetInstrInfo::insertOutlinedCall!");
}
+ /// Insert an architecture-specific instruction to clear a register.
+ virtual void buildClearRegister(Register Reg, MachineBasicBlock &MBB,
+ MachineBasicBlock::iterator Iter,
----------------
nickdesaulniers wrote:
In the interest of passing one less parameter, if `Iter`'s `->getParent() ==
MBB`, then consider just passing `Iter` (not `MBB`) and get `MBB` in
`buildClearRegister` via `Iter->getParent()`. Not sure if that's the case
though. If not, feel free to reject the suggestion.
https://github.com/llvm/llvm-project/pull/66958
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits