LLVM 19.0.0git
Public Types | Public Member Functions | List of all members
llvm::TargetLibraryAnalysis Class Reference

Analysis pass providing the TargetLibraryInfo. More...

#include "llvm/Analysis/TargetLibraryInfo.h"

Inheritance diagram for llvm::TargetLibraryAnalysis:
Inheritance graph
[legend]

Public Types

typedef TargetLibraryInfo Result
 

Public Member Functions

 TargetLibraryAnalysis ()=default
 Default construct the library analysis.
 
 TargetLibraryAnalysis (TargetLibraryInfoImpl BaselineInfoImpl)
 Construct a library analysis with baseline Module-level info.
 
TargetLibraryInfo run (const Function &F, FunctionAnalysisManager &)
 
- Public Member Functions inherited from llvm::PassInfoMixin< DerivedT >
void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::AnalysisInfoMixin< TargetLibraryAnalysis >
static AnalysisKeyID ()
 Returns an opaque, unique ID for this analysis type.
 
- Static Public Member Functions inherited from llvm::PassInfoMixin< DerivedT >
static StringRef name ()
 Gets the name of the pass we are mixed into.
 

Detailed Description

Analysis pass providing the TargetLibraryInfo.

Note that this pass's result cannot be invalidated, it is immutable for the life of the module.

Definition at line 599 of file TargetLibraryInfo.h.

Member Typedef Documentation

◆ Result

Definition at line 601 of file TargetLibraryInfo.h.

Constructor & Destructor Documentation

◆ TargetLibraryAnalysis() [1/2]

llvm::TargetLibraryAnalysis::TargetLibraryAnalysis ( )
default

Default construct the library analysis.

This will use the module's triple to construct the library info for that module.

◆ TargetLibraryAnalysis() [2/2]

llvm::TargetLibraryAnalysis::TargetLibraryAnalysis ( TargetLibraryInfoImpl  BaselineInfoImpl)
inline

Construct a library analysis with baseline Module-level info.

This will be supplemented with Function-specific info in the Result.

Definition at line 612 of file TargetLibraryInfo.h.

Member Function Documentation

◆ run()

TargetLibraryInfo TargetLibraryAnalysis::run ( const Function F,
FunctionAnalysisManager  
)

Definition at line 1336 of file TargetLibraryInfo.cpp.

References F.

Referenced by llvm::TargetLibraryInfoWrapperPass::getTLI().


The documentation for this class was generated from the following files: