OpenVDB: LLVMType< AXString > Struct Reference

OpenVDB 8.0.0

Static Public Member Functions | List of all members
LLVMType< AXString > Struct Reference

`#include <Types.h>`

## Static Public Member Functions
static llvm::StructType * | get (llvm::LLVMContext &C)
static llvm::Value * | get (llvm::LLVMContext &C, llvm::Constant *string, llvm::Constant *size)
static llvm::Value * | get (llvm::LLVMContext &C, const std::string &string, llvm::IRBuilder<> &builder)
static llvm::Constant * | get (llvm::LLVMContext &C, const AXString *const string)

## Member Function Documentation

## ◆ get() [1/4]

static llvm::StructType* get | ( | llvm::LLVMContext & | C | ) |
| inlinestatic

## ◆ get() [2/4]

static llvm::Constant* get | ( | llvm::LLVMContext & | C,
|  | const AXString *const | string
| ) |  |
| inlinestatic

## ◆ get() [3/4]

static llvm::Value* get | ( | llvm::LLVMContext & | C,
|  | const std::string & | string,
|  | llvm::IRBuilder<> & | builder
| ) |  |
| inlinestatic

Note
  Creating strings from a literal requires a GEP instruction to store the string ptr on the struct.
  Usually you should be using s = builder.CreateGlobalStringPtr() followed by LLVMType<AXString>::get(C, s) rather than allocating a non global string

## ◆ get() [4/4]

static llvm::Value* get | ( | llvm::LLVMContext & | C,
|  | llvm::Constant * | string,
|  | llvm::Constant * | size
| ) |  |
| inlinestatic

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

- ax/openvdb_ax/codegen/Types.h