[SIL] Phi with incoming lexical value is lexical.

Added SILPhiArgument::isLexical.  It's true for phis which have an
incoming value that's lexical.  Dispatch to this member from
ValueBase::isLexical.
This commit is contained in:
Nate Chandler
2023-02-23 16:22:50 -08:00
parent 5d4b9154bc
commit 7ea4523ee6
4 changed files with 340 additions and 0 deletions

View File

@@ -241,6 +241,9 @@ public:
/// result.
bool isPhi() const;
/// Whether any of the values incoming to this phi are lexical.
bool isLexical() const;
/// Return true if this block argument is a terminator result.
bool isTerminatorResult() const { return !isPhi(); }