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
LLVM_REGISTER_LIBRARY_OPTIONS
(llvm::InstCombineCLOptions)
20
21
const
InstCombineCLOptions &
llvm
::
getInstCombineCLOptions
(
const
Function
&
F
) {
22
return
F
.getContext().getLibraryOptions().
get<InstCombineCLOptions>
();
23
}
const
aarch64 promote const
Definition
AArch64PromoteConstant.cpp:223
Function.h
InstCombineCLOptions.h
LLVMContext.h
LibraryOptions.h
LLVM_REGISTER_LIBRARY_OPTIONS
#define LLVM_REGISTER_LIBRARY_OPTIONS(T)
Defines the file-scope registration of options struct T for a library that has no initialization func...
Definition
LibraryOptions.h:184
F
#define F(x, y, z)
Definition
MD5.cpp:54
llvm::Function
Definition
Function.h:65
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:21
llvm::get
decltype(auto) get(const PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info > &Pair)
Definition
PointerIntPair.h:258
Generated on
for LLVM by
1.14.0