HomePhabricator

OpaquePtr: Don't check pointee type for byval/preallocated

Authored by arsenm on Jun 26 2020, 8:36 AM.

Description

OpaquePtr: Don't check pointee type for byval/preallocated

Since none of these users really care about the actual type, hide the
type under a new size-getting attribute to go along with
hasPassPointeeByValueAttr. This will work better for the future byref
attribute, which may end up only tracking the byte size and not the IR
type.

We currently have 3 parameter attributes that should carry the type
(technically inalloca does not yet). The APIs are somewhat awkward
since preallocated/inalloca piggyback on byval in some places, but in
others are treated as distinct attributes. Since these are all
mutually exclusive, we should probably just merge all the attribute
infrastructure treating these as totally distinct attributes.

Details

Committed
arsenmJul 9 2020, 6:37 AM
Parents
rGd12d0b73f1c9: [analyzer] Add CTUImportCppThreshold for C++ files
Branches
Unknown
Tags
Unknown