14#ifndef LLVM_CLANG_AST_MATRIXUTILS_H
15#define LLVM_CLANG_AST_MATRIXUTILS_H
30 if (LangOpts.HLSL && !T.isNull()) {
32 while (
const auto *AT = Cur->
getAs<AttributedType>()) {
33 switch (AT->getAttrKind()) {
34 case attr::HLSLRowMajor:
36 case attr::HLSLColumnMajor:
41 Cur = AT->getModifiedType();
44 return LangOpts.getDefaultMatrixMemoryLayout() ==
Defines the clang::attr::Kind enum.
Defines the clang::LangOptions interface.
C Language Family Type Representation.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
A (possibly-)qualified type.
const T * getAs() const
Member-template getAs<specific type>'.
The JSON file list parser is used to communicate input to InstallAPI.
bool isMatrixRowMajor(const LangOptions &LangOpts, QualType T)
Returns true if matrices of T should be laid out in row-major order.