Issue 163888
Summary [CIR] Upstream handling for overflow builtins
Labels ClangIR
Assignees
Reporter andykaylor
    ### Overview
Upstream handling for the `__builtin_add_overflow`, `__builtin_sub_overflow`, and `__builtin_mul_overflow` functions, including implemetation and lowering of the `cir.binop.overflow` operation and the related variations of these builtins.

### Suggested minimal test case
```
bool test_add_overflow_uint_uint_uint(unsigned x, unsigned y, unsigned *res) {
  return __builtin_add_overflow(x, y, res);
}
```

### Existing incubator tests
clang/test/CIR/CodeGen/builtins-overflow.cpp
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to