This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Implement __arithmethic_fence for floating types
Needs ReviewPublic

Authored by tbaeder on Jul 17 2023, 2:31 AM.

Diff Detail

Event Timeline

tbaeder created this revision.Jul 17 2023, 2:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2023, 2:31 AM
tbaeder requested review of this revision.Jul 17 2023, 2:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2023, 2:31 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Hmmm, something is weird here. The original patch adding the LLVM intrinsic is https://reviews.llvm.org/D99675 and that says: The invocation of __arithmetic_fence is not a C/C++ constant expression, even if the operands are constant. yet https://reviews.llvm.org/D136036 changed arithmetic fence to be a constant expression. I think that was a mistake and we should back that bit of the change out. WDYT @Izaron ?

Ping @lzaron