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
17using namespace llvm;
18
19LLVM_REGISTER_LIBRARY_OPTIONS(llvm::InstCombineCLOptions)
20
21const InstCombineCLOptions &llvm::getInstCombineCLOptions(const Function &F) {
22 return F.getContext().getLibraryOptions().get<InstCombineCLOptions>();
23}
24