This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Implement __builtin_assume
ClosedPublic

Authored by tbaeder on Jan 7 2023, 3:08 AM.

Details

Summary
Just ignore it.

As part of this, move the Ret and RetVoid implementation to Interp.h, so
they can be shared with InterpBuiltin.cpp.

Diff Detail

Event Timeline

tbaeder created this revision.Jan 7 2023, 3:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 7 2023, 3:08 AM
tbaeder requested review of this revision.Jan 7 2023, 3:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 7 2023, 3:08 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Jan 13 2023, 11:38 AM

LGTM; I verified that constant expression evaluation ignores failed assumptions: http://eel.is/c++draft/expr.const#5.8 so this is in line with the C++2b feature.

This revision is now accepted and ready to land.Jan 13 2023, 11:38 AM
This revision was landed with ongoing or failed builds.Jan 26 2023, 11:03 PM
This revision was automatically updated to reflect the committed changes.