[all-commits] [llvm/llvm-project] d24f23: [Clang] NFC: Move Arm type attributes to separate ...
Sander de Smalen via All-commits
all-commits at lists.llvm.org
Wed Jan 17 23:03:39 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d24f23ed0c09f6899874ca692f7df0584d3c736c
https://github.com/llvm/llvm-project/commit/d24f23ed0c09f6899874ca692f7df0584d3c736c
Author: Sander de Smalen <sander.desmalen at arm.com>
Date: 2024-01-18 (Thu, 18 Jan 2024)
Changed paths:
M clang/include/clang/AST/Type.h
M clang/lib/AST/ASTContext.cpp
M clang/lib/AST/Type.cpp
Log Message:
-----------
[Clang] NFC: Move Arm type attributes to separate trailing object. (#78424)
This decouples the Arm type attributes from other bits, which means
the data will only be allocated when a function uses these Arm
attributes.
The first patch adds the bit `HasArmTypeAttributes` to
`FunctionTypeBitfields`, which grows from 62 bits to 63 bits.
In the second patch, I've moved this bit (`HasArmTypeAttributes`) to
`FunctionTypeExtraBitfields`, because it looks like the bits in
`FunctionTypeBitfields` are precious and we really don't want that
struct
to grow beyond 64 bits.
I've split this out into two patches to explain the rationale, but those
can be squashed before merging.
More information about the All-commits
mailing list