llvm_lib::core::values::constants

Module composite

source
Expand description

Functions in this group operate on composite constants.

Functions§

  • Create a ConstantArray from values.
  • Create a non-anonymous ConstantStruct from values.
  • Create a ConstantDataSequential with string content in the global context.
  • Create a ConstantDataSequential and initialize it with a string.
  • Create a ConstantStruct in the global Context.
  • Create an anonymous ConstantStruct with the specified values.
  • Create a ConstantVector from values.
  • Get element of a constant aggregate (struct, array or vector) at the specified index. Returns None 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.)
  • Get the given constant data sequential as a string.
  • Returns true if the specified constant is an array of i8.