[PATCH] D87974: Summary: [Builtin] Add __builtin_zero_non_value_bits.
Zoe Carver via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 19 13:25:24 PDT 2020
zoecarver created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
zoecarver requested review of this revision.
Adds `__builtin_zero_non_value_bits` to zero all padding bits of a
struct.
Currently does not support unions or bitfields.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87974
Files:
clang/include/clang/Basic/Builtins.def
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGenCXX/builtin-zero-non-value-bits.cpp
clang/test/SemaCXX/builtin-zero-non-value-bits.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87974.292987.patch
Type: text/x-patch
Size: 10435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200919/cc8ec2b2/attachment-0001.bin>
More information about the cfe-commits
mailing list