Added support in FunctionAttrs for adding relevant function/argument attributes for...
authorMichael Gottesman <mgottesman@apple.com>
Wed, 3 Jul 2013 04:00:54 +0000 (04:00 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Wed, 3 Jul 2013 04:00:54 +0000 (04:00 +0000)
commit7cb0321ad8d86c9fdfb70d3bfa1ff3e8e1ff9f71
treed5b34fedfc6186717465cac0b080dca668f3604b
parentf0f85eab0469ac93f9bb6c7d19aca2c35868d83a
Added support in FunctionAttrs for adding relevant function/argument attributes for the posix call gettimeofday.

This implies annotating it as nounwind and its arguments as nocapture. To be
conservative, we do not annotate the arguments with noalias since some platforms
do not have restrict on the declaration for gettimeofday.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185502 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/FunctionAttrs.cpp
test/Transforms/FunctionAttrs/annotate-1.ll