LLVM
8.0.1
|
Functions in this group operate on composite constants. More...
Functions | |
LLVMValueRef | LLVMConstStringInContext (LLVMContextRef C, const char *Str, unsigned Length, LLVMBool DontNullTerminate) |
Create a ConstantDataSequential and initialize it with a string. More... | |
LLVMValueRef | LLVMConstString (const char *Str, unsigned Length, LLVMBool DontNullTerminate) |
Create a ConstantDataSequential with string content in the global context. More... | |
LLVMBool | LLVMIsConstantString (LLVMValueRef c) |
Returns true if the specified constant is an array of i8. More... | |
const char * | LLVMGetAsString (LLVMValueRef c, size_t *Length) |
Get the given constant data sequential as a string. More... | |
LLVMValueRef | LLVMConstStructInContext (LLVMContextRef C, LLVMValueRef *ConstantVals, unsigned Count, LLVMBool Packed) |
Create an anonymous ConstantStruct with the specified values. More... | |
LLVMValueRef | LLVMConstStruct (LLVMValueRef *ConstantVals, unsigned Count, LLVMBool Packed) |
Create a ConstantStruct in the global Context. More... | |
LLVMValueRef | LLVMConstArray (LLVMTypeRef ElementTy, LLVMValueRef *ConstantVals, unsigned Length) |
Create a ConstantArray from values. More... | |
LLVMValueRef | LLVMConstNamedStruct (LLVMTypeRef StructTy, LLVMValueRef *ConstantVals, unsigned Count) |
Create a non-anonymous ConstantStruct from values. More... | |
LLVMValueRef | LLVMGetElementAsConstant (LLVMValueRef C, unsigned idx) |
Get an element at specified index as a constant. More... | |
LLVMValueRef | LLVMConstVector (LLVMValueRef *ScalarConstantVals, unsigned Size) |
Create a ConstantVector from values. More... | |
Functions in this group operate on composite constants.
LLVMValueRef LLVMConstArray | ( | LLVMTypeRef | ElementTy, |
LLVMValueRef * | ConstantVals, | ||
unsigned | Length | ||
) |
Create a ConstantArray from values.
Definition at line 1373 of file Core.cpp.
References llvm::ArrayType::get(), llvm::ConstantArray::get(), llvm::unwrap(), and llvm::wrap().
LLVMValueRef LLVMConstNamedStruct | ( | LLVMTypeRef | StructTy, |
LLVMValueRef * | ConstantVals, | ||
unsigned | Count | ||
) |
Create a non-anonymous ConstantStruct from values.
Definition at line 1393 of file Core.cpp.
References llvm::ConstantStruct::get(), llvm::makeArrayRef(), llvm::unwrap(), and llvm::wrap().
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.
Definition at line 1353 of file Core.cpp.
References LLVMConstStringInContext(), and LLVMGetGlobalContext().
LLVMValueRef LLVMConstStringInContext | ( | LLVMContextRef | C, |
const char * | Str, | ||
unsigned | Length, | ||
LLVMBool | DontNullTerminate | ||
) |
Create a ConstantDataSequential and initialize it with a string.
Definition at line 1344 of file Core.cpp.
References llvm::ConstantDataArray::getString(), llvm::unwrap(), and llvm::wrap().
Referenced by LLVMConstString().
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.
Definition at line 1387 of file Core.cpp.
References LLVMConstStructInContext(), and LLVMGetGlobalContext().
LLVMValueRef LLVMConstStructInContext | ( | LLVMContextRef | C, |
LLVMValueRef * | ConstantVals, | ||
unsigned | Count, | ||
LLVMBool | Packed | ||
) |
Create an anonymous ConstantStruct with the specified values.
Definition at line 1379 of file Core.cpp.
References llvm::ConstantStruct::getAnon(), llvm::makeArrayRef(), llvm::unwrap(), and llvm::wrap().
Referenced by LLVMConstStruct().
LLVMValueRef LLVMConstVector | ( | LLVMValueRef * | ScalarConstantVals, |
unsigned | Size | ||
) |
Create a ConstantVector from values.
Definition at line 1402 of file Core.cpp.
References llvm::ConstantVector::get(), llvm::makeArrayRef(), and llvm::wrap().
const char* LLVMGetAsString | ( | LLVMValueRef | c, |
size_t * | Length | ||
) |
Get the given constant data sequential as a string.
Definition at line 1367 of file Core.cpp.
References C, llvm::StringRef::data(), and llvm::StringRef::size().
LLVMValueRef LLVMGetElementAsConstant | ( | LLVMValueRef | C, |
unsigned | idx | ||
) |
Get an element at specified index as a constant.
Definition at line 1359 of file Core.cpp.
References llvm::wrap().
LLVMBool LLVMIsConstantString | ( | LLVMValueRef | c | ) |