VapourSynth-llvmexpr
Loading...
Searching...
No Matches
MathLibraryManager Class Reference

#include <llvmexpr/codegen/llvm/Math.hpp>

Public Member Functions

 MathLibraryManager (llvm::Module *module, llvm::LLVMContext &context)
llvm::Function * getFunction (MathOp op)

Detailed Description

Definition at line 760 of file Math.hpp.

Constructor & Destructor Documentation

◆ MathLibraryManager()

MathLibraryManager::MathLibraryManager ( llvm::Module * module,
llvm::LLVMContext & context )
inline

Definition at line 762 of file Math.hpp.

763 : module(module), context(context) {}

Member Function Documentation

◆ getFunction()

llvm::Function * MathLibraryManager::getFunction ( MathOp op)
inline

Definition at line 765 of file Math.hpp.

765 {
766 if (auto it = func_cache.find(op); it != func_cache.end()) {
767 return it->second;
768 }
769 return generateAndCache(op);
770 }

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