-
Notifications
You must be signed in to change notification settings - Fork 14.5k
[HLSL] Replace element_type*
handles in HLSLExternalSemaSource with __hlsl_resource_t
builtin type
#110079
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HLSL] Replace element_type*
handles in HLSLExternalSemaSource with __hlsl_resource_t
builtin type
#110079
Changes from all commits
970aab0
71c4a93
aabec4b
0c17b5a
f071284
5bce32f
94ddb92
74d8b0b
10944cd
3a57407
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2272,8 +2272,8 @@ TypeInfo ASTContext::getTypeInfoImpl(const Type *T) const { | |
#include "clang/Basic/AMDGPUTypes.def" | ||
#define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) case BuiltinType::Id: | ||
#include "clang/Basic/HLSLIntangibleTypes.def" | ||
Width = 0; | ||
Align = 8; | ||
Width = Target->getPointerWidth(LangAS::Default); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this saying that an intangible type is the same size as a pointer type? Is that right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. Conceptually we wanted the intangible types to be sizeless, but since the codegen is translating them to llvm target type that has a size, the size here must be non-zero as well. |
||
Align = Target->getPointerAlign(LangAS::Default); | ||
break; | ||
} | ||
break; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug fix - make sure template instantiation transforms the Contained type.