#include "llvm/Pass.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Transforms/IPO.h"
+#include <optional>
#include <vector>
#define DEBUG_TYPE "iroutliner"
/// The argument that needs to be marked with the swifterr attribute. If not
/// needed, there is no value.
- Optional<unsigned> SwiftErrorArgument;
+ std::optional<unsigned> SwiftErrorArgument;
/// For the \ref Regions, we look at every Value. If it is a constant,
/// we check whether it is the same in Region.
LoadInst *LI) {
// For and load instructions following the call
Value *Operand = LI->getPointerOperand();
- Optional<unsigned> OutputIdx;
+ std::optional<unsigned> OutputIdx;
// Find if the operand it is an output register.
for (unsigned ArgIdx = Region.NumExtractedInputs;
ArgIdx < Region.Call->arg_size(); ArgIdx++) {