projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add two new calling conventions for runtime calls
[oota-llvm.git]
/
lib
/
CodeGen
/
TargetRegisterInfo.cpp
diff --git
a/lib/CodeGen/TargetRegisterInfo.cpp
b/lib/CodeGen/TargetRegisterInfo.cpp
index ffcee1f51dd82df4f2fe7ac223e7b88639e63620..5a1524364b6b5249bfa1f37f0db2a54334f8b53a 100644
(file)
--- a/
lib/CodeGen/TargetRegisterInfo.cpp
+++ b/
lib/CodeGen/TargetRegisterInfo.cpp
@@
-73,6
+73,14
@@
void PrintRegUnit::print(raw_ostream &OS) const {
OS << '~' << TRI->getName(*Roots);
}
OS << '~' << TRI->getName(*Roots);
}
+void PrintVRegOrUnit::print(raw_ostream &OS) const {
+ if (TRI && TRI->isVirtualRegister(Unit)) {
+ OS << "%vreg" << TargetRegisterInfo::virtReg2Index(Unit);
+ return;
+ }
+ PrintRegUnit::print(OS);
+}
+
/// getAllocatableClass - Return the maximal subclass of the given register
/// class that is alloctable, or NULL.
const TargetRegisterClass *
/// getAllocatableClass - Return the maximal subclass of the given register
/// class that is alloctable, or NULL.
const TargetRegisterClass *