aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2016-08-02 16:17:10 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2016-08-02 16:17:10 +0000
commit24712655080209457ce6f82a5526c2611c7d690e (patch)
tree6c553f5e6ae2c1a32a3e7169fce833f0d066d9de /llvm/lib/CodeGen/MachineFunction.cpp
parent18d88983179a300adcae41c835fbcf7990c91b2d (diff)
downloadllvm-24712655080209457ce6f82a5526c2611c7d690e.zip
llvm-24712655080209457ce6f82a5526c2611c7d690e.tar.gz
llvm-24712655080209457ce6f82a5526c2611c7d690e.tar.bz2
[GlobalISel] Add RegBankSelected MachineFunction property.
RegBankSelected: the RegBankSelect pass ran and all generic virtual registers have been assigned to a register bank. This lets us enforce certain invariants across passes. This property is GlobalISel-specific, but is always available. llvm-svn: 277475
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 202cf3c..6cd3b65b 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -79,6 +79,9 @@ void MachineFunctionProperties::print(raw_ostream &ROS, bool OnlySet) const {
case Property::Legalized:
ROS << (HasProperty ? "" : "not ") << "legalized";
break;
+ case Property::RegBankSelected:
+ ROS << (HasProperty ? "" : "not ") << "RegBank-selected";
+ break;
default:
break;
}