[llvm-commits] [llvm] r45470 - in /llvm/trunk: include/llvm/Target/ lib/CodeGen/ lib/CodeGen/SelectionDAG/ lib/Target/ARM/ lib/Target/Alpha/ lib/Target/CellSPU/ lib/Target/IA64/ lib/Target/Mips/ lib/Target/PowerPC/ lib/Target/Sparc/ lib/Target/X86/
Bill Wendling
isanbard at gmail.com
Mon Dec 31 02:48:52 PST 2007
Hi Owen,
> ======================================================================
> ========
> --- llvm/trunk/include/llvm/Target/TargetInstrInfo.h (original)
> +++ llvm/trunk/include/llvm/Target/TargetInstrInfo.h Mon Dec 31
> 00:32:00 2007
> @@ -458,6 +458,15 @@
> return 0;
> }
>
> + /// copyRegToReg - Add a copy between a pair of registers
> + virtual void copyRegToReg(MachineBasicBlock &MBB,
> + MachineBasicBlock::iterator MI,
> + unsigned DestReg, unsigned SrcReg,
> + const TargetRegisterClass *DestRC,
> + const TargetRegisterClass *SrcRC) const {
> + assert(0 && "Target didn't implement
> TargetInstrInfo::copyRegToReg!");
> + }
> +
> /// BlockHasNoFallThrough - Return true if the specified block
> does not
> /// fall-through into its successor block. This is primarily
> used when a
> /// branch is unanalyzable. It is useful for things like
> unconditional
>
Is there any reason not to make this a pure virtual function?
Just wondering. :-)
-bw
More information about the llvm-commits
mailing list