LLVM 17.0.0git
InjectTLIMappings.h
Go to the documentation of this file.
1//===- InjectTLIMAppings.h - TLI to VFABI attribute injection ------------===//
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// Populates the VFABI attribute with the scalar-to-vector mappings
10// from the TargetLibraryInfo.
11//
12//===----------------------------------------------------------------------===//
13#ifndef LLVM_TRANSFORMS_UTILS_INJECTTLIMAPPINGS_H
14#define LLVM_TRANSFORMS_UTILS_INJECTTLIMAPPINGS_H
15
16#include "llvm/IR/PassManager.h"
18#include "llvm/Pass.h"
19
20namespace llvm {
21class Function;
22class InjectTLIMappings : public PassInfoMixin<InjectTLIMappings> {
23public:
25};
26
27// Legacy pass
29public:
30 static char ID;
33 }
34 void getAnalysisUsage(AnalysisUsage &AU) const override;
35 bool runOnFunction(Function &F) override;
36};
37
38} // End namespace llvm
39#endif // LLVM_TRANSFORMS_UTILS_INJECTTLIMAPPINGS_H
#define F(x, y, z)
Definition: MD5.cpp:55
This header defines various interfaces for pass management in LLVM.
A container for analyses that lazily runs them and caches their results.
Definition: PassManager.h:620
Represent the analysis usage information of a pass.
FunctionPass class - This class is used to implement most global optimizations.
Definition: Pass.h:308
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
bool runOnFunction(Function &F) override
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass.
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
A set of analyses that are preserved following a run of a transformation pass.
Definition: PassManager.h:152
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
void initializeInjectTLIMappingsLegacyPass(PassRegistry &)
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:371