This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Implement bitcasts
AbandonedPublic

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

Details

Summary

I really don't know much about these, so limited tests included.

Diff Detail

Event Timeline

tbaeder created this revision.Jan 7 2023, 3:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 7 2023, 3:21 AM
tbaeder requested review of this revision.Jan 7 2023, 3:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 7 2023, 3:21 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Note that this "implementation" is based on my knowledge about what bitcasts are, so no idea. Is that documented anywhere or should I check ExprConstant.cpp, or is this implementation fine for the time being (IIRC this was needed to make a stdlib header work)?

I think VisitCastExpr is the right place to start looking for what to do.

tbaeder abandoned this revision.Mar 10 2023, 1:16 AM

Abandoning this since it's superseded by https://reviews.llvm.org/D144943