This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Implement __assert_fail in the new device runtime
ClosedPublic

Authored by jhuber6 on Sep 16 2021, 7:39 AM.

Details

Summary

This patch implements the __assert_fail function in the new device
runtime. This allows users and developers to use the standars assert
function inside of the device.

Diff Detail

Event Timeline

jhuber6 created this revision.Sep 16 2021, 7:39 AM
jhuber6 requested review of this revision.Sep 16 2021, 7:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 16 2021, 7:39 AM
tianshilei1992 added inline comments.Sep 16 2021, 7:41 AM
openmp/libomptarget/DeviceRTL/src/Debug.cpp
34

No trap?

jhuber6 updated this revision to Diff 372944.Sep 16 2021, 7:41 AM

Adding trap, had it in a previous version but forgot to commit that part.

This revision is now accepted and ready to land.Sep 16 2021, 7:42 AM
This revision was landed with ongoing or failed builds.Sep 17 2021, 6:25 PM
This revision was automatically updated to reflect the committed changes.