LLVM 24.0.0git
llvm::ModuleLibcallLoweringInfo Class Reference

Records a mapping from an opaque lowering context to its LibcallLoweringInfo. More...

#include "llvm/Analysis/LibcallLoweringInfo.h"

Public Member Functions

 ModuleLibcallLoweringInfo ()=default
 ModuleLibcallLoweringInfo (RTLIB::RuntimeLibcallsInfo &RTLCI)
void init (const RTLIB::RuntimeLibcallsInfo *RT)
void clear ()
 operator bool () const
LLVM_ABI bool invalidate (Module &, const PreservedAnalyses &, ModuleAnalysisManager::Invalidator &)
template<typename KeyT>
const LibcallLoweringInfogetLibcallLowering (const KeyT *Key, LibcallLoweringInfo::ApplyContextRulesFn ApplyContextRules={}) const
 Return the LibcallLoweringInfo for the context identified by Key, creating it (via ApplyContextRules) on first request.

Detailed Description

Records a mapping from an opaque lowering context to its LibcallLoweringInfo.

The context is identified by an opaque key (which should be TargetSubtargetInfo*)

Definition at line 98 of file LibcallLoweringInfo.h.

Constructor & Destructor Documentation

◆ ModuleLibcallLoweringInfo() [1/2]

llvm::ModuleLibcallLoweringInfo::ModuleLibcallLoweringInfo ( )
default

◆ ModuleLibcallLoweringInfo() [2/2]

llvm::ModuleLibcallLoweringInfo::ModuleLibcallLoweringInfo ( RTLIB::RuntimeLibcallsInfo & RTLCI)
inline

Definition at line 106 of file LibcallLoweringInfo.h.

Member Function Documentation

◆ clear()

void llvm::ModuleLibcallLoweringInfo::clear ( )
inline

Definition at line 111 of file LibcallLoweringInfo.h.

◆ getLibcallLowering()

template<typename KeyT>
const LibcallLoweringInfo & llvm::ModuleLibcallLoweringInfo::getLibcallLowering ( const KeyT * Key,
LibcallLoweringInfo::ApplyContextRulesFn ApplyContextRules = {} ) const
inline

Return the LibcallLoweringInfo for the context identified by Key, creating it (via ApplyContextRules) on first request.

Key should be TargetSubtargetInfo*.

Definition at line 125 of file LibcallLoweringInfo.h.

References llvm::InnerAnalysisManagerProxy< AnalysisManagerT, IRUnitT, ExtraArgTs... >::Key.

Referenced by llvm::getLibcallLowering(), and llvm::LibcallLoweringInfoWrapper::getLibcallLowering().

◆ init()

void llvm::ModuleLibcallLoweringInfo::init ( const RTLIB::RuntimeLibcallsInfo * RT)
inline

◆ invalidate()

bool ModuleLibcallLoweringInfo::invalidate ( Module & ,
const PreservedAnalyses & PA,
ModuleAnalysisManager::Invalidator &  )

Definition at line 36 of file LibcallLoweringInfo.cpp.

References llvm::PreservedAnalyses::getChecker().

◆ operator bool()

llvm::ModuleLibcallLoweringInfo::operator bool ( ) const
inline

Definition at line 116 of file LibcallLoweringInfo.h.


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