[clang] Enable matrices in HLSL (PR #111415)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 9 10:59:42 PDT 2024
================
@@ -1381,7 +1381,7 @@ void ASTContext::InitBuiltinTypes(const TargetInfo &Target,
if (LangOpts.OpenACC && !LangOpts.OpenMP) {
InitBuiltinType(ArraySectionTy, BuiltinType::ArraySection);
}
- if (LangOpts.MatrixTypes)
+ if (LangOpts.MatrixTypes || LangOpts.HLSL)
----------------
farzonl wrote:
If this is the only line this will be needed then feel free to ignore this comment.
My question is could there be places where `LangOpts.MatrixTypes` could diverge from HLSL?
If so instead is it possible for `LangOpts.HLSL` to turn on `LangOpts.MatrixTypes`?
https://github.com/llvm/llvm-project/pull/111415
More information about the cfe-commits
mailing list