[llvm] [NFC][LV] Introduce enums for uncountable exit detail and style (PR #184808)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 11 02:58:43 PDT 2026


================
@@ -245,6 +245,13 @@ struct HistogramInfo {
       : Load(Load), Update(Update), Store(Store) {}
 };
 
+/// Indicates the characteristics of a loop with an uncountable early exit.
+/// * None      -- No uncountable exit present.
+/// * ReadOnly  -- At least one uncountable exit in a readonly loop.
+/// * ReadWrite -- At least one uncountable exit in a loop with side effects
+///                that may require masking.
+enum class UncountableEarlyExitDetail { None, ReadOnly, ReadWrite };
----------------
sdesmalen-arm wrote:

nit: I find 'Detail' a bit odd, perhaps rename to:
```suggestion
enum class UncountableEarlyExitTrait { None, ReadOnly, ReadWrite };
```
?

https://github.com/llvm/llvm-project/pull/184808


More information about the llvm-commits mailing list