aboutsummaryrefslogtreecommitdiffstats
path: root/include
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
commiteb21144cdc003992b81a86d92feec7ae44732ba1 (patch)
treef36fa521dd0ada9e1887e9269e7bf108cbee4daa /include
parent2561b95ecaacc5e95ac230e22e486363ef14a5f0 (diff)
downloadexternal_llvm-eb21144cdc003992b81a86d92feec7ae44732ba1.zip
external_llvm-eb21144cdc003992b81a86d92feec7ae44732ba1.tar.gz
external_llvm-eb21144cdc003992b81a86d92feec7ae44732ba1.tar.bz2
Document the meaning of -1 for getCopyCost.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetRegisterInfo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h
index 54fc00d..3b45257 100644
--- a/include/llvm/Target/TargetRegisterInfo.h
+++ b/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; }
};