diff options
Diffstat (limited to 'polly/include/polly/Support/ScopHelper.h')
-rw-r--r-- | polly/include/polly/Support/ScopHelper.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/polly/include/polly/Support/ScopHelper.h b/polly/include/polly/Support/ScopHelper.h index dc255e4f82d9..5001d121fa77 100644 --- a/polly/include/polly/Support/ScopHelper.h +++ b/polly/include/polly/Support/ScopHelper.h @@ -18,6 +18,7 @@ #include "llvm/IR/IntrinsicInst.h" #include "llvm/IR/ValueHandle.h" #include "isl/isl-noexceptions.h" +#include <optional> namespace llvm { class LoopInfo; @@ -522,16 +523,16 @@ bool hasDebugCall(ScopStmt *Stmt); /// /// Then `nullptr` is set to mark the property is existing, but does not carry /// any value. If the property does not exist, `None` is returned. -llvm::Optional<llvm::Metadata *> findMetadataOperand(llvm::MDNode *LoopMD, - llvm::StringRef Name); +std::optional<llvm::Metadata *> findMetadataOperand(llvm::MDNode *LoopMD, + llvm::StringRef Name); /// Find a boolean property value in a LoopID. The value not being defined is /// interpreted as a false value. bool getBooleanLoopAttribute(llvm::MDNode *LoopID, llvm::StringRef Name); /// Find an integers property value in a LoopID. -llvm::Optional<int> getOptionalIntLoopAttribute(llvm::MDNode *LoopID, - llvm::StringRef Name); +std::optional<int> getOptionalIntLoopAttribute(llvm::MDNode *LoopID, + llvm::StringRef Name); /// Does the loop's LoopID contain a 'llvm.loop.disable_heuristics' property? /// |