Lines Matching refs:Legality
49 enum class Legality { never, always, formerly }; enum
55 constexpr Legality IsLegalDoTerm(const parser::Statement<A> &) { in IsLegalDoTerm()
58 return Legality::always; in IsLegalDoTerm()
64 return Legality::formerly; in IsLegalDoTerm()
66 return Legality::never; in IsLegalDoTerm()
70 constexpr Legality IsLegalDoTerm( in IsLegalDoTerm()
74 return Legality::always; in IsLegalDoTerm()
89 return Legality::formerly; in IsLegalDoTerm()
91 return Legality::never; in IsLegalDoTerm()
100 constexpr Legality IsLegalBranchTarget(const parser::Statement<A> &) { in IsLegalBranchTarget()
125 return Legality::always; in IsLegalBranchTarget()
127 return Legality::never; in IsLegalBranchTarget()
135 if (IsLegalDoTerm(statement) == Legality::always) { in ConstructBranchTargetFlags()
137 } else if (IsLegalDoTerm(statement) == Legality::formerly) { in ConstructBranchTargetFlags()
140 if (IsLegalBranchTarget(statement) == Legality::always) { in ConstructBranchTargetFlags()
142 } else if (IsLegalBranchTarget(statement) == Legality::formerly) { in ConstructBranchTargetFlags()