[clang] [clang][Sema] Track trivial-relocatability as a type trait (PR #84621)

via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 12 06:36:13 PDT 2024


================
@@ -189,6 +189,11 @@ FIELD(DeclaredNonTrivialSpecialMembers, 6, MERGE_OR)
 /// SMF_MoveConstructor, and SMF_Destructor are meaningful here.
 FIELD(DeclaredNonTrivialSpecialMembersForCall, 6, MERGE_OR)
 
+/// True when this class's bases and fields are all trivially relocatable
+/// or references, and the class itself has no user-provided special
+/// member functions.
+FIELD(IsNaturallyTriviallyRelocatable, 1, NO_MERGE)
----------------
cor3ntin wrote:

I know you are trying to distinguish from the abi_tag but naturally is not saying much.

Either `IsTriviallyRelocatable` or, `IsImplicitlyTriviallyRelocatable`

https://github.com/llvm/llvm-project/pull/84621


More information about the cfe-commits mailing list