mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add 'mark_dependence', which indicates that an address
or pointer depends on another for validity in a non-obvious way. Also, document some basic value-propagation rules based roughly on the optimization rules for ARC. Swift SVN r23695
This commit is contained in:
@@ -1093,6 +1093,10 @@ public:
|
||||
void visitFixLifetimeInst(FixLifetimeInst *RI) {
|
||||
OS << "fix_lifetime " << getIDAndType(RI->getOperand());
|
||||
}
|
||||
void visitMarkDependenceInst(MarkDependenceInst *MDI) {
|
||||
OS << "mark_dependence " << getIDAndType(MDI->getValue())
|
||||
<< " on " << getIDAndType(MDI->getBase());
|
||||
}
|
||||
void visitCopyBlockInst(CopyBlockInst *RI) {
|
||||
OS << "copy_block " << getIDAndType(RI->getOperand());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user