OpenVDB: ConstantFolder< SignatureT, I > Struct Template Reference

OpenVDB 9.0.0

Public Types | Static Public Member Functions | List of all members
ConstantFolder< SignatureT, I > Struct Template Reference

Constant folding support structure. More...

`#include <openvdb_ax/codegen/ConstantFolding.h>`

## Public Types
using | ArgT = typename FunctionTraits< SignatureT >::template Arg< I-1 >
using | ArgumentValueType = typename ArgT::Type

## Static Public Member Functions
template<typename ... Tys>
static llvm::Value * | fold (const std::vector< llvm::Constant * > &args, const SignatureT &function, llvm::LLVMContext &C, Tys &&... ts)

## Detailed Description

template<typename SignatureT, size_t I = FunctionTraits<SignatureT>::N_ARGS>
struct openvdb::v9_0::ax::codegen::ConstantFolder< SignatureT, I >

Constant folding support structure.

## Member Typedef Documentation

## ◆ ArgT

using ArgT = typename FunctionTraits<SignatureT>::template Arg<I-1>

## ◆ ArgumentValueType

using ArgumentValueType = typename ArgT::Type

## Member Function Documentation

## ◆ fold()

static llvm::Value * fold | ( | const std::vector< llvm::Constant * > & | args,
|  | const SignatureT & | function,
|  | llvm::LLVMContext & | C,
|  | Tys &&... | ts
| ) |  |
| inlinestatic