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"
13#include "llvm/IR/Module.h"
15
16#define OPTIONS_STRUCT_DEFS
17#include "AnalysisOptions.inc"
18
19using namespace llvm;
20
22
23const AnalysisOptions &llvm::getAnalysisOptions(const Module &M) {
24 return getAnalysisOptions(M.getContext());
25}
26
27const AnalysisOptions &llvm::getAnalysisOptions(const Loop &L) {
28 return getAnalysisOptions(L.getHeader()->getContext());
29}
static llvm::opt::RegisterLibraryOptions< llvm::AnalysisOptions > Registration
This file defines the IR2Vec vocabulary analysis(IR2VecVocabAnalysis), the core ir2vec::Embedder inte...
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)