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
19LLVM_REGISTER_LIBRARY_OPTIONS(llvm::InstCombineCLOptions)
20
22 return F.getContext().getLibraryOptions().get<InstCombineCLOptions>();
23}
aarch64 promote const
#define LLVM_REGISTER_LIBRARY_OPTIONS(T)
Defines the file-scope registration of options struct T for a library that has no initialization func...
#define F(x, y, z)
Definition MD5.cpp:54
This is an optimization pass for GlobalISel generic memory operations.
const InstCombineCLOptions & getInstCombineCLOptions(const Function &F)
decltype(auto) get(const PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info > &Pair)