diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-08-02 15:10:25 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-08-02 15:10:25 +0000 |
commit | 0d7b0cb865514a04cf18a220c80d6d0301f339ee (patch) | |
tree | 9f1eb37f80b5de039a74af1eeb806dc1b5650349 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | cb2bac6e98b23aa8e7fb6741ac08269f34f2475f (diff) | |
download | bcm5719-llvm-0d7b0cb865514a04cf18a220c80d6d0301f339ee.tar.gz bcm5719-llvm-0d7b0cb865514a04cf18a220c80d6d0301f339ee.zip |
[GlobalISel] Add Legalized MachineFunction property.
Legalized: The MachineLegalizer ran; all pre-isel generic instructions
have been legalized, i.e., all instructions are now one of:
- generic and always legal (e.g., COPY)
- target-specific
- legal pre-isel generic instructions.
This lets us enforce certain invariants across passes.
This property is GlobalISel-specific, but is always available.
llvm-svn: 277470
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index a4c4ea4bb95..202cf3cdf03 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -76,6 +76,9 @@ void MachineFunctionProperties::print(raw_ostream &ROS, bool OnlySet) const { case Property::AllVRegsAllocated: ROS << (HasProperty ? "AllVRegsAllocated" : "HasVRegs"); break; + case Property::Legalized: + ROS << (HasProperty ? "" : "not ") << "legalized"; + break; default: break; } |