OpenVDB 12.0.0
 
Loading...
Searching...
No Matches
LLVMType< T[S]> Struct Template Reference

#include <openvdb_ax/codegen/Types.h>

Static Public Member Functions

static llvm::Type * get (llvm::LLVMContext &C)
 
static llvm::Constant * get (llvm::LLVMContext &C, const T(&array)[S])
 
static llvm::Constant * get (llvm::LLVMContext &C, const T(*array)[S])
 
static llvm::Type * get (llvm::LLVMContext &C)
 Return an LLVM type which represents T.
 
static llvm::Constant * get (llvm::LLVMContext &C, const T V)
 Return an LLVM constant Value which represents T value.
 
static llvm::Constant * get (llvm::LLVMContext &C, const T *const V)
 Return an LLVM constant which holds an uintptr_t, representing the current address of the given value.
 

Member Function Documentation

◆ get() [1/6]

static llvm::Type * get ( llvm::LLVMContext & C)
inlinestatic

Return an LLVM type which represents T.

Parameters
CThe LLVMContext to request the Type from.

◆ get() [2/6]

template<typename T, size_t S>
static llvm::Type * get ( llvm::LLVMContext & C)
inlinestatic

◆ get() [3/6]

static llvm::Constant * get ( llvm::LLVMContext & C,
const T *const V )
inlinestatic

Return an LLVM constant which holds an uintptr_t, representing the current address of the given value.

Parameters
CThe LLVMContext
VThe address of a given type to convert to an LLVM constant

◆ get() [4/6]

static llvm::Constant * get ( llvm::LLVMContext & C,
const T V )
inlinestatic

Return an LLVM constant Value which represents T value.

Parameters
CThe LLVMContext
VThe value to convert to an LLVM constant
Returns
If successful, returns a pointer to an LLVM constant which holds the value T.

◆ get() [5/6]

template<typename T, size_t S>
static llvm::Constant * get ( llvm::LLVMContext & C,
const T(&) array[S] )
inlinestatic

◆ get() [6/6]

template<typename T, size_t S>
static llvm::Constant * get ( llvm::LLVMContext & C,
const T(*) array[S] )
inlinestatic