pub fn const_not(val: &ValueRef) -> ValueRef
Expand description
Create a logical NOT operation on a constant value.
§Details
Creates a new constant integer value representing the bitwise negation (NOT) of the original value.
This function wraps the LLVMConstNot
function from the LLVM core library, which computes the bitwise
complement of the given constant integer value (~ValueRef
). The result is a new constant where each
bit of the original value is inverted (i.e., 0
becomes 1
and 1
becomes 0
).
§Returns
Returns a new constant integer value representing the result of the bitwise NOT operation (~ValueRef
).