This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
#include <algorithm>
#include <cassert>
#include <cstdint>
+#include <optional>
using namespace llvm;
using namespace llvm::PatternMatch;
Optional<unsigned> calculateIterationsToPeel();
protected:
- using PeelCounter = Optional<unsigned>;
+ using PeelCounter = std::optional<unsigned>;
const PeelCounter Unknown = None;
// Add 1 respecting Unknown and return Unknown if result over MaxIterations