This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP] Delay emission of the asm target-specific error messages.
ClosedPublic

Authored by ABataev on Feb 14 2019, 9:32 AM.

Details

Summary

Added the ability to emit target-specific builtin assembler error
messages only in case if the function is really is going to be emitted
for the device.

Diff Detail

Repository
rL LLVM

Event Timeline

ABataev created this revision.Feb 14 2019, 9:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2019, 9:32 AM
ABataev added a subscriber: caomhin.
tra added a subscriber: tra.Feb 19 2019, 10:42 AM
tra added inline comments.
lib/Sema/SemaStmtAsm.cpp
256–263 ↗(On Diff #186860)

Now that inline asm errors are delayed, do we still need this check?

ABataev marked an inline comment as done.Feb 19 2019, 12:20 PM
ABataev added inline comments.
lib/Sema/SemaStmtAsm.cpp
256–263 ↗(On Diff #186860)

With this patch, it is going to be delayed only for OpenMP. After the commit, we could extend it for CUDA and remove this code. But not at the moment.

tra added inline comments.Feb 19 2019, 12:57 PM
lib/Sema/SemaStmtAsm.cpp
256–263 ↗(On Diff #186860)

SGTM.

The change looks okay to me.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 20 2019, 9:43 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 20 2019, 9:43 AM