Lines Matching defs:QTy
84 static bool TypeHasMayAlias(QualType QTy) {
86 if (auto *TD = QTy->getAsTagDecl())
93 while (auto *TT = QTy->getAs<TypedefType>()) {
96 QTy = TT->desugar();
102 static bool isValidBaseType(QualType QTy) {
103 if (const RecordType *TTy = QTy->getAs<RecordType>()) {
278 llvm::MDNode *CodeGenTBAA::getTypeInfo(QualType QTy) {
285 if (TypeHasMayAlias(QTy))
295 if (isValidBaseType(QTy))
296 return getValidBaseTypeInfo(QTy);
298 const Type *Ty = Context.getCanonicalType(QTy).getTypePtr();
331 QualType QTy,
337 if (const RecordType *TTy = QTy->getAs<RecordType>()) {
339 uint64_t Size = Context.getTypeSizeInChars(QTy).getQuantity();
400 uint64_t Size = Context.getTypeSizeInChars(QTy).getQuantity();
401 llvm::MDNode *TBAAType = MayAlias ? getChar() : getTypeInfo(QTy);
408 CodeGenTBAA::getTBAAStructInfo(QualType QTy) {
412 const Type *Ty = Context.getCanonicalType(QTy).getTypePtr();
418 if (CollectFields(0, QTy, Fields, TypeHasMayAlias(QTy)))
509 llvm::MDNode *CodeGenTBAA::getValidBaseTypeInfo(QualType QTy) {
510 assert(isValidBaseType(QTy) && "Must be a valid base type");
512 const Type *Ty = Context.getCanonicalType(QTy).getTypePtr();
529 llvm::MDNode *CodeGenTBAA::getBaseTypeInfo(QualType QTy) {
530 return isValidBaseType(QTy) ? getValidBaseTypeInfo(QTy) : nullptr;