pub fn const_add(lhs: &ValueRef, rhs: &ValueRef) -> ValueRef
Expand description
Create an addition operation on two constant values.
§Details
Creates a new constant integer value representing the addition of two constant integer values.
This function wraps the LLVMConstAdd
function from the LLVM core library, which performs the addition
of two constant integer values and returns the result as a new constant value.
§Arguments
lhs
- A reference to the left-hand side (LHS) constant integer value.rhs
- A reference to the right-hand side (RHS) constant integer value.
§Returns
Returns a new constant integer value representing the sum of lhs
and rhs
.