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"
15#include "llvm/IR/Module.h"
17
18#define OPTIONS_STRUCT_DEFS
19#include "AnalysisOptions.inc"
20
21using namespace llvm;
22
23LLVM_REGISTER_LIBRARY_OPTIONS(llvm::AnalysisOptions)
24
25const AnalysisOptions &llvm::getAnalysisOptions(const Module &M) {
26 return getAnalysisOptions(M.getContext());
27}
28
29const AnalysisOptions &llvm::getAnalysisOptions(const Loop &L) {
30 return getAnalysisOptions(L.getHeader()->getContext());
31}
aarch64 promote const
This file defines the IR2Vec vocabulary analysis(IR2VecVocabAnalysis), the core ir2vec::Embedder inte...
Module.h This file contains the declarations for the Module class.
#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
A Module instance is used to store all the information related to an LLVM module.
Definition Module.h:68
This is an optimization pass for GlobalISel generic memory operations.
const AnalysisOptions & getAnalysisOptions(const LLVMContext &C)