HomePhabricator

Support the assume_aligned function attribute

Description

Support the assume_aligned function attribute

In addition to __builtin_assume_aligned, GCC also supports an assume_aligned
attribute which specifies the alignment (and optional offset) of a function's
return value. Here we implement support for the assume_aligned attribute by making
use of the @llvm.assume intrinsic.

Details

Committed
hfinkelSep 25 2014, 10:04 PM
Parents
rL218499: Fix build breakage on MSVC 2013
Branches
Unknown
Tags
Unknown

Event Timeline