Set both nuw
and nsw
in slice size calculation
There's an old note in the code to do this, and now that LLVM-C has an API for it, we might as well.
This commit is contained in:
parent
a567209daa
commit
9ad6839f7a
7 changed files with 81 additions and 44 deletions
|
@ -1430,6 +1430,8 @@ unsafe extern "C" {
|
|||
|
||||
// Extra flags on arithmetic
|
||||
pub(crate) fn LLVMSetIsDisjoint(Instr: &Value, IsDisjoint: Bool);
|
||||
pub(crate) fn LLVMSetNUW(ArithInst: &Value, HasNUW: Bool);
|
||||
pub(crate) fn LLVMSetNSW(ArithInst: &Value, HasNSW: Bool);
|
||||
|
||||
// Memory
|
||||
pub(crate) fn LLVMBuildAlloca<'a>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue