[PATCH] D117091: [Clang] Add attributes alloc_size and alloc_align to mm_malloc
Dávid Bolvanský via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 16 08:23:51 PST 2022
xbolva00 added a comment.
Yes, test for alignment should be possible, something like
_Bool alig_test(void) {
// CHECK: ret i1 true
yvoid *p = _mm_malloc(2014, 16);
_Bool ret = ((__SIZE_TYPE__)p % 16) == 0;
_mm_free(p);
return ret;
}
For alloc size not sure how..
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117091/new/
https://reviews.llvm.org/D117091
More information about the cfe-commits
mailing list