#include <Types.h>
|
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) |
|
◆ 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: