This is an archive of the discontinued LLVM Phabricator instance.

Expand macros in OpenMP pragmas.
ClosedPublic

Authored by sfantao on Jun 15 2015, 9:29 AM.

Details

Summary

According to the OpenMP spec, all the preprocessor macros should be expanded in OpenMP pragmas. This patch adds support for that.

Diff Detail

Event Timeline

sfantao updated this revision to Diff 27683.Jun 15 2015, 9:29 AM
sfantao retitled this revision from to Expand macros in OpenMP pragmas..
sfantao updated this object.
sfantao edited the test plan for this revision. (Show Details)
sfantao added reviewers: ABataev, hfinkel, rsmith.
sfantao added a subscriber: Unknown Object (MLST).
sfantao updated this revision to Diff 27721.Jun 15 2015, 2:55 PM

Refactor to use UnknownPragmaHandler for OpenMP as well. Move regression test to test/Preprocessor.

rsmith accepted this revision.Jun 15 2015, 3:55 PM
rsmith edited edge metadata.

One minor tweak, then this LGTM, thanks!

lib/Frontend/PrintPreprocessedOutput.cpp
566

bool? And there's no point including a bit-field here; there aren't many of these objects, and no other bitfields are being packed into the same storage anyway.

This revision is now accepted and ready to land.Jun 15 2015, 3:55 PM
sfantao updated this revision to Diff 27726.Jun 15 2015, 4:50 PM
sfantao edited edge metadata.

Changes struct field to boolean.

sfantao closed this revision.Jun 15 2015, 4:52 PM

Committed in r239784.

Thanks!
Samuel

lib/Frontend/PrintPreprocessedOutput.cpp
566

Ok, I replaced that by a boolean.