LLVM 24.0.0git
ScalarOptions.cpp
Go to the documentation of this file.
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"
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(L.getHeader()->getContext());
22}
aarch64 promote const
#define LLVM_REGISTER_LIBRARY_OPTIONS(T)
Defines the file-scope registration of options struct T for a library that has no initialization func...
Represents a single loop in the control flow graph.
Definition LoopInfo.h:40
This is an optimization pass for GlobalISel generic memory operations.
const ScalarOptions & getScalarOptions(const LLVMContext &C)