@@ -260,6 +260,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
260260 DependentBitIntTypes;
261261 mutable llvm::FoldingSet<BTFTagAttributedType> BTFTagAttributedTypes;
262262 llvm::FoldingSet<HLSLAttributedResourceType> HLSLAttributedResourceTypes;
263+ llvm::FoldingSet<HLSLInlineSpirvType> HLSLInlineSpirvTypes;
263264
264265 mutable llvm::FoldingSet<CountAttributedType> CountAttributedTypes;
265266
@@ -582,7 +583,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
582583 llvm::DenseMap<UsingEnumDecl *, UsingEnumDecl *>
583584 InstantiatedFromUsingEnumDecl;
584585
585- // / Simlarly maps instantiated UsingShadowDecls to their origin.
586+ // / Similarly maps instantiated UsingShadowDecls to their origin.
586587 llvm::DenseMap<UsingShadowDecl*, UsingShadowDecl*>
587588 InstantiatedFromUsingShadowDecl;
588589
@@ -790,7 +791,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
790791 }
791792 return new (*this ) DeclListNode (ND);
792793 }
793- // / Deallcates a \c DeclListNode by returning it to the \c ListNodeFreeList
794+ // / Deallocates a \c DeclListNode by returning it to the \c ListNodeFreeList
794795 // / pool.
795796 void DeallocateDeclListNode (DeclListNode *N) {
796797 N->Rest = ListNodeFreeList;
@@ -1123,7 +1124,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
11231124
11241125 // / Clean up the merged definition list. Call this if you might have
11251126 // / added duplicates into the list.
1126- void deduplicateMergedDefinitonsFor (NamedDecl *ND);
1127+ void deduplicateMergedDefinitionsFor (NamedDecl *ND);
11271128
11281129 // / Get the additional modules in which the definition \p Def has
11291130 // / been merged.
@@ -1808,6 +1809,10 @@ class ASTContext : public RefCountedBase<ASTContext> {
18081809 QualType Wrapped, QualType Contained,
18091810 const HLSLAttributedResourceType::Attributes &Attrs);
18101811
1812+ QualType getHLSLInlineSpirvType (uint32_t Opcode, uint32_t Size,
1813+ uint32_t Alignment,
1814+ ArrayRef<SpirvOperand> Operands);
1815+
18111816 QualType getSubstTemplateTypeParmType (QualType Replacement,
18121817 Decl *AssociatedDecl, unsigned Index,
18131818 UnsignedOrNone PackIndex,
@@ -2565,7 +2570,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
25652570 // / Return the ABI-specified natural alignment of a (complete) type \p T,
25662571 // / before alignment adjustments, in bits.
25672572 // /
2568- // / This alignment is curently used only by ARM and AArch64 when passing
2573+ // / This alignment is currently used only by ARM and AArch64 when passing
25692574 // / arguments of a composite type.
25702575 unsigned getTypeUnadjustedAlign (QualType T) const {
25712576 return getTypeUnadjustedAlign (T.getTypePtr ());
@@ -2638,7 +2643,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
26382643 // / considered specifically for the query.
26392644 CharUnits getAlignOfGlobalVarInChars (QualType T, const VarDecl *VD) const ;
26402645
2641- // / Return the minimum alignement as specified by the target. If \p VD is
2646+ // / Return the minimum alignment as specified by the target. If \p VD is
26422647 // / non-null it may be used to identify external or weak variables.
26432648 unsigned getMinGlobalAlignOfVar (uint64_t Size, const VarDecl *VD) const ;
26442649
0 commit comments