aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorCassandra Beckley <beckl.ds@gmail.com>2025-05-27 08:40:54 -0700
committerGitHub <noreply@github.com>2025-05-27 11:40:54 -0400
commit5a4571133af78e365e6e7b271688b9ceaa653e67 (patch)
tree5018fb04b5ca4301262735fb16d7d27a20414799 /clang/lib/Serialization/ASTWriter.cpp
parent58f80536d3ee1a9ca3e8aa62da92d33d4bc9cc8c (diff)
downloadllvm-5a4571133af78e365e6e7b271688b9ceaa653e67.zip
llvm-5a4571133af78e365e6e7b271688b9ceaa653e67.tar.gz
llvm-5a4571133af78e365e6e7b271688b9ceaa653e67.tar.bz2
[HLSL] Implement `SpirvType` and `SpirvOpaqueType` (#134034)
This implements the design proposed by [Representing SpirvType in Clang's Type System](https://github.com/llvm/wg-hlsl/pull/181). It creates `HLSLInlineSpirvType` as a new `Type` subclass, and `__hlsl_spirv_type` as a new builtin type template to create such a type. This new type is lowered to the `spirv.Type` target extension type, as described in [Target Extension Types for Inline SPIR-V and Decorated Types](https://github.com/llvm/wg-hlsl/blob/main/proposals/0017-inline-spirv-and-decorated-types.md).
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index 1b3d3c2..cc9916a 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -604,6 +604,10 @@ void TypeLocWriter::VisitHLSLAttributedResourceTypeLoc(
// Nothing to do.
}
+void TypeLocWriter::VisitHLSLInlineSpirvTypeLoc(HLSLInlineSpirvTypeLoc TL) {
+ // Nothing to do.
+}
+
void TypeLocWriter::VisitTemplateTypeParmTypeLoc(TemplateTypeParmTypeLoc TL) {
addSourceLocation(TL.getNameLoc());
}