LLVM 24.0.0git
AnalysisOptions.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 "AnalysisOptions.h"
11#include "llvm/IR/Module.h"
13
14#define OPTIONS_STRUCT_DEFS
15#include "AnalysisOptions.inc"
16
17using namespace llvm;
18
20
21const AnalysisOptions &llvm::getAnalysisOptions(const Module &M) {
22 return getAnalysisOptions(M.getContext());
23}
24
25const AnalysisOptions &llvm::getAnalysisOptions(const Loop &L) {
26 return getAnalysisOptions(L.getHeader()->getContext());
27}
static llvm::opt::RegisterLibraryOptions< llvm::AnalysisOptions > Registration
Module.h This file contains the declarations for the Module class.
Represents a single loop in the control flow graph.
Definition LoopInfo.h:40
A Module instance is used to store all the information related to an LLVM module.
Definition Module.h:68
Registers T::Global with cl::ParseCommandLineOptions.
This is an optimization pass for GlobalISel generic memory operations.
const AnalysisOptions & getAnalysisOptions(const LLVMContext &C)