#include <openvdb_ax/codegen/Codecs.h>
Given a core type supported by the AX frontend, return a llvm compatible type which represents how the core type is encoded in memory.
- Returns
- A llvm type representing the encoded C type. Can be a nullptr if this codec does not support the provided core type.
llvm::Type* encodedToDecoded |
( |
llvm::Type * |
in | ) |
const |
|
inline |
Given a llvm type, return a compatible llvm type which represents how the provided type should be exposed to the AX frontend.
- Note
- The return type is guaranteed to either be a supported CoreType (such that ax::codegen::tokenFromLLVMType(in) returns a valid value) or a nullptr.
- Returns
- A llvm type representing the decoded C type. Can be a nullptr if this codec does not support the provided core type.