LLVM 23.0.0git
AMDGPULowerKernelArguments.cpp
Go to the documentation of this file.
1//===-- AMDGPULowerKernelArguments.cpp ------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9/// \file This pass replaces accesses to kernel arguments with loads from
10/// offsets from the kernarg base pointer.
11//
12//===----------------------------------------------------------------------===//
13
14#include "AMDGPU.h"
16#include "GCNSubtarget.h"
22#include "llvm/IR/Argument.h"
23#include "llvm/IR/Attributes.h"
24#include "llvm/IR/Dominators.h"
25#include "llvm/IR/IRBuilder.h"
27#include "llvm/IR/Instruction.h"
29#include "llvm/IR/IntrinsicsAMDGPU.h"
30#include "llvm/IR/LLVMContext.h"
31#include "llvm/IR/MDBuilder.h"
33#include <optional>
34#include <string>
35
36#define DEBUG_TYPE "amdgpu-lower-kernel-arguments"
37
38using namespace llvm;
39
40namespace {
41
42class AMDGPULowerKernelArguments : public FunctionPass {
43public:
44 static char ID;
45
46 AMDGPULowerKernelArguments() : FunctionPass(ID) {}
47
48 bool runOnFunction(Function &F) override;
49
50 void getAnalysisUsage(AnalysisUsage &AU) const override {
53 AU.setPreservesAll();
54 }
55};
56
57} // end anonymous namespace
58
59// skip allocas
62 for (BasicBlock::iterator E = BB.end(); InsPt != E; ++InsPt) {
63 AllocaInst *AI = dyn_cast<AllocaInst>(&*InsPt);
64
65 // If this is a dynamic alloca, the value may depend on the loaded kernargs,
66 // so loads will need to be inserted before it.
67 if (!AI || !AI->isStaticAlloca())
68 break;
69 }
70
71 return InsPt;
72}
73
75 DominatorTree &DT) {
76 // Collect noalias arguments.
78
79 for (Argument &Arg : F.args())
80 if (Arg.hasNoAliasAttr() && !Arg.use_empty())
81 NoAliasArgs.push_back(&Arg);
82
83 if (NoAliasArgs.empty())
84 return;
85
86 // Add alias scopes for each noalias argument.
87 MDBuilder MDB(F.getContext());
89 MDNode *NewDomain = MDB.createAnonymousAliasScopeDomain(F.getName());
90
91 for (unsigned I = 0u; I < NoAliasArgs.size(); ++I) {
92 const Argument *Arg = NoAliasArgs[I];
93 MDNode *NewScope = MDB.createAnonymousAliasScope(NewDomain, Arg->getName());
94 NewScopes.insert({Arg, NewScope});
95 }
96
97 // Iterate over all instructions.
98 for (inst_iterator Inst = inst_begin(F), InstEnd = inst_end(F);
99 Inst != InstEnd; ++Inst) {
100 // If instruction accesses memory, collect its pointer arguments.
101 Instruction *I = &(*Inst);
103
104 if (std::optional<MemoryLocation> MO = MemoryLocation::getOrNone(I))
105 PtrArgs.push_back(MO->Ptr);
106 else if (const CallBase *Call = dyn_cast<CallBase>(I)) {
107 if (Call->doesNotAccessMemory())
108 continue;
109
110 for (Value *Arg : Call->args()) {
111 if (!Arg->getType()->isPointerTy())
112 continue;
113
114 PtrArgs.push_back(Arg);
115 }
116 }
117
118 if (PtrArgs.empty())
119 continue;
120
121 // Collect underlying objects of pointer arguments.
125
126 for (const Value *Val : PtrArgs) {
128 getUnderlyingObjects(Val, Objects);
129 ObjSet.insert_range(Objects);
130 }
131
132 bool RequiresNoCaptureBefore = false;
133 bool UsesUnknownObject = false;
134 bool UsesAliasingPtr = false;
135
136 for (const Value *Val : ObjSet) {
137 if (isa<ConstantData>(Val))
138 continue;
139
140 if (const Argument *Arg = dyn_cast<Argument>(Val)) {
141 if (!Arg->hasAttribute(Attribute::NoAlias))
142 UsesAliasingPtr = true;
143 } else
144 UsesAliasingPtr = true;
145
146 if (isEscapeSource(Val))
147 RequiresNoCaptureBefore = true;
148 else if (!isa<Argument>(Val) && isIdentifiedObject(Val))
149 UsesUnknownObject = true;
150 }
151
152 if (UsesUnknownObject)
153 continue;
154
155 // Collect noalias scopes for instruction.
156 for (const Argument *Arg : NoAliasArgs) {
157 if (ObjSet.contains(Arg))
158 continue;
159
160 if (!RequiresNoCaptureBefore ||
162 Arg, false, I, &DT, false, CaptureComponents::Provenance)))
163 NoAliases.push_back(NewScopes[Arg]);
164 }
165
166 // Add noalias metadata to instruction.
167 if (!NoAliases.empty()) {
168 MDNode *NewMD =
169 MDNode::concatenate(Inst->getMetadata(LLVMContext::MD_noalias),
170 MDNode::get(F.getContext(), NoAliases));
171 Inst->setMetadata(LLVMContext::MD_noalias, NewMD);
172 }
173
174 // Collect scopes for alias.scope metadata.
175 if (!UsesAliasingPtr)
176 for (const Argument *Arg : NoAliasArgs) {
177 if (ObjSet.count(Arg))
178 Scopes.push_back(NewScopes[Arg]);
179 }
180
181 // Add alias.scope metadata to instruction.
182 if (!Scopes.empty()) {
183 MDNode *NewMD =
184 MDNode::concatenate(Inst->getMetadata(LLVMContext::MD_alias_scope),
185 MDNode::get(F.getContext(), Scopes));
186 Inst->setMetadata(LLVMContext::MD_alias_scope, NewMD);
187 }
188 }
189}
190
192 DominatorTree &DT) {
193 CallingConv::ID CC = F.getCallingConv();
194 if (CC != CallingConv::AMDGPU_KERNEL || F.arg_empty())
195 return false;
196
197 const GCNSubtarget &ST = TM.getSubtarget<GCNSubtarget>(F);
198 LLVMContext &Ctx = F.getContext();
199 const DataLayout &DL = F.getDataLayout();
200 BasicBlock &EntryBlock = *F.begin();
201 IRBuilder<> Builder(&EntryBlock, getInsertPt(EntryBlock));
202
203 const Align KernArgBaseAlign(16); // FIXME: Increase if necessary
204 const uint64_t BaseOffset = ST.getExplicitKernelArgOffset();
205
206 Align MaxAlign;
207 // FIXME: Alignment is broken with explicit arg offset.;
208 const uint64_t TotalKernArgSize = ST.getKernArgSegmentSize(F, MaxAlign);
209 if (TotalKernArgSize == 0)
210 return false;
211
212 CallInst *KernArgSegment =
213 Builder.CreateIntrinsic(Intrinsic::amdgcn_kernarg_segment_ptr, {},
214 nullptr, F.getName() + ".kernarg.segment");
215 KernArgSegment->addRetAttr(Attribute::NonNull);
216 KernArgSegment->addRetAttr(
217 Attribute::getWithDereferenceableBytes(Ctx, TotalKernArgSize));
218
219 uint64_t ExplicitArgOffset = 0;
220
221 addAliasScopeMetadata(F, F.getParent()->getDataLayout(), DT);
222
223 for (Argument &Arg : F.args()) {
224 const bool IsByRef = Arg.hasByRefAttr();
225 Type *ArgTy = IsByRef ? Arg.getParamByRefType() : Arg.getType();
226 MaybeAlign ParamAlign = IsByRef ? Arg.getParamAlign() : std::nullopt;
227 Align ABITypeAlign = DL.getValueOrABITypeAlignment(ParamAlign, ArgTy);
228
229 uint64_t Size = DL.getTypeSizeInBits(ArgTy);
230 uint64_t AllocSize = DL.getTypeAllocSize(ArgTy);
231
232 uint64_t EltOffset = alignTo(ExplicitArgOffset, ABITypeAlign) + BaseOffset;
233 ExplicitArgOffset = alignTo(ExplicitArgOffset, ABITypeAlign) + AllocSize;
234
235 // Skip inreg arguments which should be preloaded.
236 if (Arg.use_empty() || Arg.hasInRegAttr())
237 continue;
238
239 // If this is byval, the loads are already explicit in the function. We just
240 // need to rewrite the pointer values.
241 if (IsByRef) {
242 Value *ArgOffsetPtr = Builder.CreateConstInBoundsGEP1_64(
243 Builder.getInt8Ty(), KernArgSegment, EltOffset,
244 Arg.getName() + ".byval.kernarg.offset");
245
246 Value *CastOffsetPtr =
247 Builder.CreateAddrSpaceCast(ArgOffsetPtr, Arg.getType());
248 Arg.replaceAllUsesWith(CastOffsetPtr);
249 continue;
250 }
251
252 if (PointerType *PT = dyn_cast<PointerType>(ArgTy)) {
253 // FIXME: Hack. We rely on AssertZext to be able to fold DS addressing
254 // modes on SI to know the high bits are 0 so pointer adds don't wrap. We
255 // can't represent this with range metadata because it's only allowed for
256 // integer types.
257 if ((PT->getAddressSpace() == AMDGPUAS::LOCAL_ADDRESS ||
258 PT->getAddressSpace() == AMDGPUAS::REGION_ADDRESS) &&
259 !ST.hasUsableDSOffset())
260 continue;
261 }
262
263 auto *VT = dyn_cast<FixedVectorType>(ArgTy);
264 bool IsV3 = VT && VT->getNumElements() == 3;
265 bool DoShiftOpt = Size < 32 && !ArgTy->isAggregateType();
266
267 VectorType *V4Ty = nullptr;
268
269 int64_t AlignDownOffset = alignDown(EltOffset, 4);
270 int64_t OffsetDiff = EltOffset - AlignDownOffset;
271 Align AdjustedAlign = commonAlignment(
272 KernArgBaseAlign, DoShiftOpt ? AlignDownOffset : EltOffset);
273
274 Value *ArgPtr;
275 Type *AdjustedArgTy;
276 if (DoShiftOpt) { // FIXME: Handle aggregate types
277 // Since we don't have sub-dword scalar loads, avoid doing an extload by
278 // loading earlier than the argument address, and extracting the relevant
279 // bits.
280 // TODO: Update this for GFX12 which does have scalar sub-dword loads.
281 //
282 // Additionally widen any sub-dword load to i32 even if suitably aligned,
283 // so that CSE between different argument loads works easily.
284 ArgPtr = Builder.CreateConstInBoundsGEP1_64(
285 Builder.getInt8Ty(), KernArgSegment, AlignDownOffset,
286 Arg.getName() + ".kernarg.offset.align.down");
287 AdjustedArgTy = Builder.getInt32Ty();
288 } else {
289 ArgPtr = Builder.CreateConstInBoundsGEP1_64(
290 Builder.getInt8Ty(), KernArgSegment, EltOffset,
291 Arg.getName() + ".kernarg.offset");
292 AdjustedArgTy = ArgTy;
293 }
294
295 if (IsV3 && Size >= 32) {
296 V4Ty = FixedVectorType::get(VT->getElementType(), 4);
297 // Use the hack that clang uses to avoid SelectionDAG ruining v3 loads
298 AdjustedArgTy = V4Ty;
299 }
300
301 LoadInst *Load =
302 Builder.CreateAlignedLoad(AdjustedArgTy, ArgPtr, AdjustedAlign);
303 Load->setMetadata(LLVMContext::MD_invariant_load, MDNode::get(Ctx, {}));
304
305 MDBuilder MDB(Ctx);
306
307 if (Arg.hasAttribute(Attribute::NoUndef))
308 Load->setMetadata(LLVMContext::MD_noundef, MDNode::get(Ctx, {}));
309
310 if (Arg.hasAttribute(Attribute::Range)) {
311 const ConstantRange &Range =
312 Arg.getAttribute(Attribute::Range).getValueAsConstantRange();
313 Load->setMetadata(LLVMContext::MD_range,
314 MDB.createRange(Range.getLower(), Range.getUpper()));
315 }
316
317 if (isa<PointerType>(ArgTy)) {
318 if (Arg.hasNonNullAttr())
319 Load->setMetadata(LLVMContext::MD_nonnull, MDNode::get(Ctx, {}));
320
321 uint64_t DerefBytes = Arg.getDereferenceableBytes();
322 if (DerefBytes != 0) {
323 Load->setMetadata(
324 LLVMContext::MD_dereferenceable,
325 MDNode::get(Ctx,
326 MDB.createConstant(
327 ConstantInt::get(Builder.getInt64Ty(), DerefBytes))));
328 }
329
330 uint64_t DerefOrNullBytes = Arg.getDereferenceableOrNullBytes();
331 if (DerefOrNullBytes != 0) {
332 Load->setMetadata(
333 LLVMContext::MD_dereferenceable_or_null,
334 MDNode::get(Ctx,
335 MDB.createConstant(ConstantInt::get(Builder.getInt64Ty(),
336 DerefOrNullBytes))));
337 }
338
339 if (MaybeAlign ParamAlign = Arg.getParamAlign()) {
340 Load->setMetadata(
341 LLVMContext::MD_align,
342 MDNode::get(Ctx, MDB.createConstant(ConstantInt::get(
343 Builder.getInt64Ty(), ParamAlign->value()))));
344 }
345 }
346
347 if (DoShiftOpt) {
348 Value *ExtractBits = OffsetDiff == 0 ?
349 Load : Builder.CreateLShr(Load, OffsetDiff * 8);
350
351 IntegerType *ArgIntTy = Builder.getIntNTy(Size);
352 Value *Trunc = Builder.CreateTrunc(ExtractBits, ArgIntTy);
353 Value *NewVal = Builder.CreateBitCast(Trunc, ArgTy,
354 Arg.getName() + ".load");
355 Arg.replaceAllUsesWith(NewVal);
356 } else if (IsV3) {
357 Value *Shuf = Builder.CreateShuffleVector(Load, ArrayRef<int>{0, 1, 2},
358 Arg.getName() + ".load");
359 Arg.replaceAllUsesWith(Shuf);
360 } else {
361 Load->setName(Arg.getName() + ".load");
362 Arg.replaceAllUsesWith(Load);
363 }
364 }
365
366 KernArgSegment->addRetAttr(
367 Attribute::getWithAlignment(Ctx, std::max(KernArgBaseAlign, MaxAlign)));
368
369 return true;
370}
371
372bool AMDGPULowerKernelArguments::runOnFunction(Function &F) {
373 auto &TPC = getAnalysis<TargetPassConfig>();
374 const TargetMachine &TM = TPC.getTM<TargetMachine>();
375 DominatorTree &DT = getAnalysis<DominatorTreeWrapperPass>().getDomTree();
376 return lowerKernelArguments(F, TM, DT);
377}
378
379INITIALIZE_PASS_BEGIN(AMDGPULowerKernelArguments, DEBUG_TYPE,
380 "AMDGPU Lower Kernel Arguments", false, false)
381INITIALIZE_PASS_END(AMDGPULowerKernelArguments, DEBUG_TYPE, "AMDGPU Lower Kernel Arguments",
383
384char AMDGPULowerKernelArguments::ID = 0;
385
387 return new AMDGPULowerKernelArguments();
388}
389
393 bool Changed = lowerKernelArguments(F, TM, DT);
394 if (Changed) {
395 // TODO: Preserves a lot more.
398 return PA;
399 }
400
401 return PreservedAnalyses::all();
402}
static void addAliasScopeMetadata(Function &F, const DataLayout &DL, DominatorTree &DT)
static BasicBlock::iterator getInsertPt(BasicBlock &BB)
static bool lowerKernelArguments(Function &F, const TargetMachine &TM, DominatorTree &DT)
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
This file contains the simple types necessary to represent the attributes associated with functions a...
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
static cl::opt< bool > NoAliases("csky-no-aliases", cl::desc("Disable the emission of assembler pseudo instructions"), cl::init(false), cl::Hidden)
static bool runOnFunction(Function &F, bool PostInlining)
AMD GCN specific subclass of TargetSubtarget.
#define DEBUG_TYPE
#define F(x, y, z)
Definition MD5.cpp:54
#define I(x, y, z)
Definition MD5.cpp:57
ConstantRange Range(APInt(BitWidth, Low), APInt(BitWidth, High))
#define INITIALIZE_PASS_END(passName, arg, name, cfg, analysis)
Definition PassSupport.h:44
#define INITIALIZE_PASS_BEGIN(passName, arg, name, cfg, analysis)
Definition PassSupport.h:39
This is the interface for a metadata-based scoped no-alias analysis.
Target-Independent Code Generator Pass Configuration Options pass.
PreservedAnalyses run(Function &, FunctionAnalysisManager &)
an instruction to allocate memory on the stack
LLVM_ABI bool isStaticAlloca() const
Return true if this alloca is in the entry block of the function and is a constant size.
PassT::Result & getResult(IRUnitT &IR, ExtraArgTs... ExtraArgs)
Get the result of an analysis pass for a given IR unit.
Represent the analysis usage information of a pass.
AnalysisUsage & addRequired()
void setPreservesAll()
Set by analyses that do not transform their input at all.
This class represents an incoming formal argument to a Function.
Definition Argument.h:32
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition ArrayRef.h:40
static LLVM_ABI Attribute getWithDereferenceableBytes(LLVMContext &Context, uint64_t Bytes)
static LLVM_ABI Attribute getWithAlignment(LLVMContext &Context, Align Alignment)
Return a uniquified Attribute object that has the specific alignment set.
LLVM Basic Block Representation.
Definition BasicBlock.h:62
iterator end()
Definition BasicBlock.h:483
LLVM_ABI const_iterator getFirstInsertionPt() const
Returns an iterator to the first instruction in this block that is suitable for inserting a non-PHI i...
InstListType::iterator iterator
Instruction iterators...
Definition BasicBlock.h:170
Represents analyses that only rely on functions' control flow.
Definition Analysis.h:73
Base class for all callable instructions (InvokeInst and CallInst) Holds everything related to callin...
void addRetAttr(Attribute::AttrKind Kind)
Adds the attribute to the return value.
This class represents a function call, abstracting a target machine's calling convention.
This class represents a range of values.
A parsed version of the target data layout string in and methods for querying it.
Definition DataLayout.h:64
std::pair< iterator, bool > insert(const std::pair< KeyT, ValueT > &KV)
Definition DenseMap.h:241
Analysis pass which computes a DominatorTree.
Definition Dominators.h:283
Legacy analysis pass which computes a DominatorTree.
Definition Dominators.h:321
Concrete subclass of DominatorTreeBase that is used to compute a normal dominator tree.
Definition Dominators.h:164
static LLVM_ABI FixedVectorType * get(Type *ElementType, unsigned NumElts)
Definition Type.cpp:802
FunctionPass class - This class is used to implement most global optimizations.
Definition Pass.h:314
This provides a uniform API for creating instructions and inserting them into a basic block: either a...
Definition IRBuilder.h:2762
Class to represent integer types.
This is an important class for using LLVM in a threaded context.
Definition LLVMContext.h:68
An instruction for reading from memory.
MDNode * createAnonymousAliasScope(MDNode *Domain, StringRef Name=StringRef())
Return metadata appropriate for an alias scope root node.
Definition MDBuilder.h:181
LLVM_ABI ConstantAsMetadata * createConstant(Constant *C)
Return the given constant as metadata.
Definition MDBuilder.cpp:25
LLVM_ABI MDNode * createRange(const APInt &Lo, const APInt &Hi)
Return metadata describing the range [Lo, Hi).
Definition MDBuilder.cpp:96
MDNode * createAnonymousAliasScopeDomain(StringRef Name=StringRef())
Return metadata appropriate for an alias scope domain node.
Definition MDBuilder.h:174
Metadata node.
Definition Metadata.h:1078
static LLVM_ABI MDNode * concatenate(MDNode *A, MDNode *B)
Methods for metadata merging.
static MDTuple * get(LLVMContext &Context, ArrayRef< Metadata * > MDs)
Definition Metadata.h:1569
static LLVM_ABI std::optional< MemoryLocation > getOrNone(const Instruction *Inst)
A set of analyses that are preserved following a run of a transformation pass.
Definition Analysis.h:112
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
Definition Analysis.h:118
PreservedAnalyses & preserveSet()
Mark an analysis set as preserved.
Definition Analysis.h:151
size_type count(ConstPtrType Ptr) const
count - Return 1 if the specified pointer is in the set, 0 otherwise.
void insert_range(Range &&R)
bool contains(ConstPtrType Ptr) const
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements.
void push_back(const T &Elt)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Primary interface to the complete machine description for the target machine.
const STC & getSubtarget(const Function &F) const
This method returns a pointer to the specified type of TargetSubtargetInfo.
Target-Independent Code Generator Pass Configuration Options.
The instances of the Type class are immutable: once they are created, they are never changed.
Definition Type.h:45
static LLVM_ABI IntegerType * getInt32Ty(LLVMContext &C)
Definition Type.cpp:296
bool isAggregateType() const
Return true if the type is an aggregate type.
Definition Type.h:304
static LLVM_ABI IntegerType * getIntNTy(LLVMContext &C, unsigned N)
Definition Type.cpp:300
LLVM Value Representation.
Definition Value.h:75
Type * getType() const
All values are typed, get the type of this value.
Definition Value.h:256
LLVM_ABI void replaceAllUsesWith(Value *V)
Change all uses of this to point to a new Value.
Definition Value.cpp:553
LLVM_ABI StringRef getName() const
Return a constant reference to the value's name.
Definition Value.cpp:322
CallInst * Call
Changed
@ REGION_ADDRESS
Address space for region memory. (GDS)
@ LOCAL_ADDRESS
Address space for local memory.
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
Definition CallingConv.h:24
@ AMDGPU_KERNEL
Used for AMDGPU code object kernels.
This is an optimization pass for GlobalISel generic memory operations.
Definition Types.h:26
InstIterator< SymbolTableList< BasicBlock >, Function::iterator, BasicBlock::iterator, Instruction > inst_iterator
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.
Definition Casting.h:643
constexpr T alignDown(U Value, V Align, W Skew=0)
Returns the largest unsigned integer less than or equal to Value and is Skew mod Align.
Definition MathExtras.h:546
inst_iterator inst_begin(Function *F)
LLVM_ABI bool PointerMayBeCapturedBefore(const Value *V, bool ReturnCaptures, const Instruction *I, const DominatorTree *DT, bool IncludeI=false, unsigned MaxUsesToExplore=0, const LoopInfo *LI=nullptr)
PointerMayBeCapturedBefore - Return true if this pointer value may be captured by the enclosing funct...
FunctionPass * createAMDGPULowerKernelArgumentsPass()
bool isa(const From &Val)
isa<X> - Return true if the parameter to the template is an instance of one of the template type argu...
Definition Casting.h:547
inst_iterator inst_end(Function *F)
uint64_t alignTo(uint64_t Size, Align A)
Returns a multiple of A needed to store Size bytes.
Definition Alignment.h:144
LLVM_ABI bool isEscapeSource(const Value *V)
Returns true if the pointer is one which would have been considered an escape by isNotCapturedBefore.
Align commonAlignment(Align A, uint64_t Offset)
Returns the alignment that satisfies both alignments.
Definition Alignment.h:201
bool capturesAnything(CaptureComponents CC)
Definition ModRef.h:324
AnalysisManager< Function > FunctionAnalysisManager
Convenience typedef for the Function analysis manager.
LLVM_ABI void getUnderlyingObjects(const Value *V, SmallVectorImpl< const Value * > &Objects, const LoopInfo *LI=nullptr, unsigned MaxLookup=MaxLookupSearchDepth)
This method is similar to getUnderlyingObject except that it can look through phi and select instruct...
LLVM_ABI bool isIdentifiedObject(const Value *V)
Return true if this pointer refers to a distinct and identifiable object.
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition Alignment.h:39
This struct is a compact representation of a valid (power of two) or undefined (0) alignment.
Definition Alignment.h:106