summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-02-06 17:01:33 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-02-06 17:01:33 +0000
commit1731125787f8e782d789bbd1c4d883d31c676e3f (patch)
treedb6eb3a906d9818a328637e1438230ce4e9fec4a
parent87cab1e75105386390e9195797182ec28fb067d9 (diff)
downloadbcm5719-llvm-1731125787f8e782d789bbd1c4d883d31c676e3f.tar.gz
bcm5719-llvm-1731125787f8e782d789bbd1c4d883d31c676e3f.zip
Document the meaning of -1 for getCopyCost.
llvm-svn: 63933
-rw-r--r--llvm/include/llvm/Target/TargetRegisterInfo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/Target/TargetRegisterInfo.h b/llvm/include/llvm/Target/TargetRegisterInfo.h
index 54fc00dd84c..3b452573fc0 100644
--- a/llvm/include/llvm/Target/TargetRegisterInfo.h
+++ b/llvm/include/llvm/Target/TargetRegisterInfo.h
@@ -202,7 +202,8 @@ public:
unsigned getAlignment() const { return Alignment; }
/// getCopyCost - Return the cost of copying a value between two registers in
- /// this class.
+ /// this class. -1 means the register class is very expensive to copy e.g.
+ /// status flag register classes.
int getCopyCost() const { return CopyCost; }
};
OpenPOWER on IntegriCloud