1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#include "ScalarOptions.h"
10#include "llvm/Analysis/LoopInfo.h"
11#include "llvm/Option/LibraryOptions.h"
12
13#define OPTIONS_STRUCT_DEFS
14#include "ScalarOptions.inc"
15
16using namespace llvm;
17
18LLVM_REGISTER_LIBRARY_OPTIONS(llvm::ScalarOptions)
19
20const ScalarOptions &llvm::getScalarOptions(const Loop &L) {
21 return getScalarOptions(C: L.getHeader()->getContext());
22}
23