Project Alice
|
Functions in this group operate on composite constants.
LLVM_ATTRIBUTE_C_DEPRECATED | ( | LLVMValueRef | LLVMGetElementAsConstantLLVMValueRef C, unsigned idx, |
"Use LLVMGetAggregateElement instead" | |||
) |
Get an element at specified index as a constant.
LLVMValueRef LLVMConstArray | ( | LLVMTypeRef | ElementTy, |
LLVMValueRef * | ConstantVals, | ||
unsigned | Length | ||
) |
Create a ConstantArray from values.
LLVMValueRef LLVMConstArray2 | ( | LLVMTypeRef | ElementTy, |
LLVMValueRef * | ConstantVals, | ||
uint64_t | Length | ||
) |
Create a ConstantArray from values.
LLVMValueRef LLVMConstNamedStruct | ( | LLVMTypeRef | StructTy, |
LLVMValueRef * | ConstantVals, | ||
unsigned | Count | ||
) |
Create a non-anonymous ConstantStruct from values.
LLVMValueRef LLVMConstString | ( | const char * | Str, |
unsigned | Length, | ||
LLVMBool | DontNullTerminate | ||
) |
Create a ConstantDataSequential with string content in the global context.
This is the same as LLVMConstStringInContext except it operates on the global context.
LLVMValueRef LLVMConstStringInContext | ( | LLVMContextRef | C, |
const char * | Str, | ||
unsigned | Length, | ||
LLVMBool | DontNullTerminate | ||
) |
Create a ConstantDataSequential and initialize it with a string.
LLVMValueRef LLVMConstStruct | ( | LLVMValueRef * | ConstantVals, |
unsigned | Count, | ||
LLVMBool | Packed | ||
) |
Create a ConstantStruct in the global Context.
This is the same as LLVMConstStructInContext except it operates on the global Context.
LLVMValueRef LLVMConstStructInContext | ( | LLVMContextRef | C, |
LLVMValueRef * | ConstantVals, | ||
unsigned | Count, | ||
LLVMBool | Packed | ||
) |
Create an anonymous ConstantStruct with the specified values.
LLVMValueRef LLVMConstVector | ( | LLVMValueRef * | ScalarConstantVals, |
unsigned | Size | ||
) |
Create a ConstantVector from values.
LLVMValueRef LLVMGetAggregateElement | ( | LLVMValueRef | C, |
unsigned | Idx | ||
) |
Get element of a constant aggregate (struct, array or vector) at the specified index. Returns null if the index is out of range, or it's not possible to determine the element (e.g., because the constant is a constant expression.)
const char * LLVMGetAsString | ( | LLVMValueRef | c, |
size_t * | Length | ||
) |
Get the given constant data sequential as a string.
LLVMBool LLVMIsConstantString | ( | LLVMValueRef | c | ) |
Returns true if the specified constant is an array of i8.