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