aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-01-07 00:51:04 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-01-07 00:51:04 +0000
commitd1862037f04954f00cd6e6066ee213cfdc292877 (patch)
treeff769f7b22487bbd6717d5f898709791e50d1f93 /include
parent9631864688c593711f82bb8d21f8b724c628d786 (diff)
downloadexternal_llvm-d1862037f04954f00cd6e6066ee213cfdc292877.tar.gz
external_llvm-d1862037f04954f00cd6e6066ee213cfdc292877.tar.bz2
external_llvm-d1862037f04954f00cd6e6066ee213cfdc292877.zip
Add comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineFunction.h2
-rw-r--r--include/llvm/Target/TargetInstrInfo.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h
index f1bfa01458..a12a55aefc 100644
--- a/include/llvm/CodeGen/MachineFunction.h
+++ b/include/llvm/CodeGen/MachineFunction.h
@@ -315,6 +315,8 @@ public:
/// 'Orig' instruction, identical in all ways except the the instruction
/// has no parent, prev, or next.
///
+ /// See also TargetInstrInfo::duplicate() for target-specific fixes to cloned
+ /// instructions.
MachineInstr *CloneMachineInstr(const MachineInstr *Orig);
/// DeleteMachineInstr - Delete the given MachineInstr.
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index f7798018b5..0494ffe592 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -235,6 +235,8 @@ public:
/// duplicate - Create a duplicate of the Orig instruction in MF. This is like
/// MachineFunction::CloneMachineInstr(), but the target may update operands
/// that are required to be unique.
+ ///
+ /// The instruction must be duplicable as indicated by isNotDuplicable().
virtual MachineInstr *duplicate(MachineInstr *Orig,
MachineFunction &MF) const = 0;