Add begin_access and end_access instructions.

NFC because we're not actually emitting them.
This commit is contained in:
John McCall
2017-03-26 04:15:55 -04:00
parent f95133070e
commit 57ecaa7fae
18 changed files with 612 additions and 34 deletions

View File

@@ -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());