mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add begin_access and end_access instructions.
NFC because we're not actually emitting them.
This commit is contained in:
@@ -1634,6 +1634,15 @@ public:
|
||||
*this << PEBI->getType().getObjectType()
|
||||
<< " in " << getIDAndType(PEBI->getOperand());
|
||||
}
|
||||
void visitBeginAccessInst(BeginAccessInst *BAI) {
|
||||
*this << '[' << getSILAccessKindName(BAI->getAccessKind()) << "] ["
|
||||
<< getSILAccessEnforcementName(BAI->getEnforcement())
|
||||
<< "] " << getIDAndType(BAI->getOperand());
|
||||
}
|
||||
void visitEndAccessInst(EndAccessInst *EAI) {
|
||||
*this << (EAI->isAborting() ? "[abort] " : "")
|
||||
<< getIDAndType(EAI->getOperand());
|
||||
}
|
||||
|
||||
void visitCondFailInst(CondFailInst *FI) {
|
||||
*this << getIDAndType(FI->getOperand());
|
||||
|
||||
Reference in New Issue
Block a user