LLVM  14.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"
17 #include "llvm/InitializePasses.h"
18 
19 namespace llvm {
20 class InjectTLIMappings : public PassInfoMixin<InjectTLIMappings> {
21 public:
23 };
24 
25 // Legacy pass
27 public:
28  static char ID;
31  }
32  void getAnalysisUsage(AnalysisUsage &AU) const override;
33  bool runOnFunction(Function &F) override;
34 };
35 
36 } // End namespace llvm
37 #endif // LLVM_TRANSFORMS_UTILS_INJECTTLIMAPPINGS_H
llvm::PreservedAnalyses
A set of analyses that are preserved following a run of a transformation pass.
Definition: PassManager.h:155
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::PassInfoMixin
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:374
llvm::Function
Definition: Function.h:62
llvm::InjectTLIMappingsLegacy::InjectTLIMappingsLegacy
InjectTLIMappingsLegacy()
Definition: InjectTLIMappings.h:29
F
#define F(x, y, z)
Definition: MD5.cpp:56
llvm::InjectTLIMappingsLegacy
Definition: InjectTLIMappings.h:26
llvm::PassRegistry::getPassRegistry
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
Definition: PassRegistry.cpp:31
llvm::AnalysisUsage
Represent the analysis usage information of a pass.
Definition: PassAnalysisSupport.h:47
llvm::InjectTLIMappingsLegacy::getAnalysisUsage
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
Definition: InjectTLIMappings.cpp:152
llvm::InjectTLIMappings::run
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
Definition: InjectTLIMappings.cpp:135
PassManager.h
llvm::InjectTLIMappings
Definition: InjectTLIMappings.h:20
llvm::initializeInjectTLIMappingsLegacyPass
void initializeInjectTLIMappingsLegacyPass(PassRegistry &)
llvm::InjectTLIMappingsLegacy::runOnFunction
bool runOnFunction(Function &F) override
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass.
Definition: InjectTLIMappings.cpp:146
llvm::AnalysisManager
A container for analyses that lazily runs them and caches their results.
Definition: InstructionSimplify.h:44
llvm::FunctionPass
FunctionPass class - This class is used to implement most global optimizations.
Definition: Pass.h:298
InitializePasses.h
llvm::InjectTLIMappingsLegacy::ID
static char ID
Definition: InjectTLIMappings.h:28