[all-commits] [llvm/llvm-project] 2c9175: [Clang] Add attributes alloc_size and alloc_align ...
Dávid Bolvanský via All-commits
all-commits at lists.llvm.org
Thu Feb 17 10:59:55 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2c91754a13f333d7fe9f9d3d40fb618e40c48cab
https://github.com/llvm/llvm-project/commit/2c91754a13f333d7fe9f9d3d40fb618e40c48cab
Author: Dávid Bolvanský <david.bolvansky at gmail.com>
Date: 2022-02-17 (Thu, 17 Feb 2022)
Changed paths:
M clang/lib/Headers/mm_malloc.h
A clang/test/Headers/Inputs/include/malloc.h
A clang/test/Headers/mm_malloc.c
Log Message:
-----------
[Clang] Add attributes alloc_size and alloc_align to mm_malloc
LLVM optimizes source codes with mm_malloc better, especially due to alignment info.
alloc align https://clang.llvm.org/docs/AttributeReference.html#alloc-align
alloc size https://clang.llvm.org/docs/AttributeReference.html#alloc-size
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D117091
More information about the All-commits
mailing list