This is an archive of the discontinued LLVM Phabricator instance.

Use MSVC-equivalents of attributes
ClosedPublic

Authored by angelsl on Oct 3 2015, 10:43 AM.

Details

Reviewers
compnerd

Diff Detail

Event Timeline

angelsl updated this revision to Diff 36441.Oct 3 2015, 10:43 AM
angelsl retitled this revision from to Use MSVC-equivalents of attributes.
angelsl updated this object.
angelsl added a reviewer: compnerd.
angelsl added subscribers: compnerd, llvm-commits.
compnerd edited edge metadata.Oct 4 2015, 11:08 AM

The NOINLINE and UNUSED should be moved into int_lib.h, which would avoid the duplication.

majnemer added inline comments.
lib/builtins/int_util.h
22–28

Why are these macros underscore prefixed? I don't think we should invade the implementor's namespace here.

angelsl updated this revision to Diff 36483.Oct 4 2015, 11:48 PM
angelsl edited edge metadata.

Corrections made.

angelsl updated this revision to Diff 36484.Oct 4 2015, 11:49 PM
aaron.ballman added inline comments.
lib/builtins/int_lib.h
47

Please model this macro after LLVM_ATTRIBUTE_NORETURN from Compiler.h. It makes the usage far less ugly.

angelsl updated this revision to Diff 36526.Oct 5 2015, 9:47 AM

Corrections made.

Didn't know that attributes could go before the declaration.

angelsl marked an inline comment as done.Oct 5 2015, 9:48 AM
compnerd added inline comments.Oct 5 2015, 6:59 PM
lib/builtins/int_lib.h
38

This should be:

#if defined(__arm__) && defined(_WIN32) && !(defined(_MSC_VER) && defined(__clang__))
angelsl updated this revision to Diff 36576.Oct 5 2015, 7:12 PM

Corrections made.

angelsl marked 2 inline comments as done.Oct 5 2015, 7:13 PM
compnerd accepted this revision.Oct 5 2015, 7:38 PM
compnerd edited edge metadata.
This revision is now accepted and ready to land.Oct 5 2015, 7:38 PM
compnerd closed this revision.Oct 5 2015, 9:35 PM

SVN r249375.