SILFunction: add getMemoryBehavior

This retrieves the side effect information from the function effects.
This commit is contained in:
Erik Eckstein
2022-10-19 19:10:17 +02:00
parent 143d432e56
commit 698196b1eb
4 changed files with 35 additions and 2 deletions

View File

@@ -1055,6 +1055,7 @@ public:
void copyEffects(SILFunction *from);
bool hasArgumentEffects() const;
void visitArgEffects(std::function<void(int, int, bool)> c) const;
SILInstruction::MemoryBehavior getMemoryBehavior(bool observeRetains);
Purpose getSpecialPurpose() const { return specialPurpose; }