LLVM
24.0.0git
lib
Transforms
InstCombine
InstCombineCLOptions.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 "
InstCombineCLOptions.h
"
10
#include "
llvm/IR/Function.h
"
11
#include "
llvm/IR/LLVMContext.h
"
12
#include "
llvm/Option/LibraryOptions.h
"
13
14
#define OPTIONS_STRUCT_DEFS
15
#include "InstCombineCLOptions.inc"
16
17
using namespace
llvm
;
18
19
static
llvm::opt::RegisterLibraryOptions<llvm::InstCombineCLOptions>
20
Registration
;
21
22
const
InstCombineCLOptions &
llvm::getInstCombineCLOptions
(
const
Function
&
F
) {
23
return
F
.getContext().getLibraryOptions().get<InstCombineCLOptions>();
24
}
Registration
static llvm::opt::RegisterLibraryOptions< llvm::AnalysisOptions > Registration
Definition
AnalysisOptions.cpp:19
Function.h
InstCombineCLOptions.h
LLVMContext.h
LibraryOptions.h
F
#define F(x, y, z)
Definition
MD5.cpp:54
llvm::Function
Definition
Function.h:65
llvm::opt::RegisterLibraryOptions
Registers T::Global with cl::ParseCommandLineOptions.
Definition
LibraryOptions.h:161
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
DefaultTargetInfo.h:21
llvm::getInstCombineCLOptions
const InstCombineCLOptions & getInstCombineCLOptions(const Function &F)
Definition
InstCombineCLOptions.cpp:22
Generated on
for LLVM by
1.14.0