LLVM 24.0.0git
VectorizeOptions.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 "VectorizeOptions.h"
15
16#define OPTIONS_STRUCT_DEFS
17#include "VectorizeOptions.inc"
18
19using namespace llvm;
20
22
23const VectorizeOptions &llvm::getVectorizeOptions(const Loop &L) {
24 return getVectorizeOptions(L.getHeader()->getContext());
25}
26
27const VectorizeOptions &llvm::getVectorizeOptions(const sandboxir::Context &C) {
28 return C.getLibraryOptions().get<VectorizeOptions>();
29}
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
static llvm::opt::RegisterLibraryOptions< llvm::CGDataOptions > Registration
This pass exposes codegen information to IR-level passes.
Represents a single loop in the control flow graph.
Definition LoopInfo.h:40
Registers T::Global with cl::ParseCommandLineOptions.
This is an optimization pass for GlobalISel generic memory operations.
const VectorizeOptions & getVectorizeOptions(const LLVMContext &C)