diff options
Diffstat (limited to 'source/opt/decoration_manager.h')
-rw-r--r-- | source/opt/decoration_manager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/opt/decoration_manager.h b/source/opt/decoration_manager.h index b753e6be..fe78f2ce 100644 --- a/source/opt/decoration_manager.h +++ b/source/opt/decoration_manager.h @@ -90,6 +90,10 @@ class DecorationManager { bool AreDecorationsTheSame(const Instruction* inst1, const Instruction* inst2, bool ignore_target) const; + // Returns whether a decoration instruction for |id| with decoration + // |decoration| exists or not. + bool HasDecoration(uint32_t id, uint32_t decoration); + // |f| is run on each decoration instruction for |id| with decoration // |decoration|. Processed are all decorations which target |id| either // directly or indirectly by Decoration Groups. |