[PATCH] D154951: [clang][Interp] __builtin_bit_cast, Take 2
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 11 04:47:19 PDT 2023
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, shafik, cor3ntin.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This implements `__builtin_bit_cast()`.
The new opcodes are `BitCast`, which bitcasts to a non-floating primitive type, `BitCastFP`, which bitcasts to a floating type, and `BitCastPtr`, which bitcasts to a composite type. Everything is implemented in `InterpBitcast.cpp`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D154951
Files:
clang/lib/AST/CMakeLists.txt
clang/lib/AST/Interp/Boolean.h
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/ByteCodeExprGen.h
clang/lib/AST/Interp/Floating.h
clang/lib/AST/Interp/Integral.h
clang/lib/AST/Interp/Interp.cpp
clang/lib/AST/Interp/Interp.h
clang/lib/AST/Interp/InterpBitcast.cpp
clang/lib/AST/Interp/Opcodes.td
clang/lib/AST/Interp/PrimType.h
clang/test/AST/Interp/builtin-bit-cast.cpp
clang/test/AST/Interp/literals.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154951.539025.patch
Type: text/x-patch
Size: 58660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230711/b8f2aa94/attachment-0001.bin>
More information about the cfe-commits
mailing list