Function is_constant_string

Source
pub fn is_constant_string(val: &ValueRef) -> bool
Expand description

Returns true if the specified constant is an array of i8.

§Details

Checks if the value is a constant string.

This function wraps the LLVMIsConstantString function from the LLVM core library. It determines whether the value represented by ValueRef is a constant string. This is useful when you need to verify if a particular LLVM value is a constant string within the IR.

§Returns

Returns true if the value is a constant string, otherwise returns false.