llvm-project
6544686b - [CIR] Add noalias on malloc-like function returns (#221817)

Commit
38 days ago
[CIR] Add noalias on malloc-like function returns (#221817) - Stamp `llvm.noalias` on function returns when the callee has `RestrictAttr` (`__attribute__((malloc))` / `__declspec(restrict)`) and no deallocator. - Matches classic codegen in `CGCall.cpp`: return `noalias` on both `define` and `call`, and skip `malloc(dealloc)`. - Extends `restrict-noalias.c` with a malloc call, a malloc definition, and a `malloc(dealloc)` negative. Cursor assisted with this.
Author
Parents
Loading