Lines Matching defs:QTy
83 static bool TypeHasMayAlias(QualType QTy) {
85 if (auto *TD = QTy->getAsTagDecl())
92 while (auto *TT = QTy->getAs<TypedefType>()) {
95 QTy = TT->desugar();
101 static bool isValidBaseType(QualType QTy) {
102 if (const RecordType *TTy = QTy->getAs<RecordType>()) {
316 llvm::MDNode *CodeGenTBAA::getTypeInfo(QualType QTy) {
325 if (TypeHasMayAlias(QTy))
335 if (isValidBaseType(QTy))
336 return getValidBaseTypeInfo(QTy);
338 const Type *Ty = Context.getCanonicalType(QTy).getTypePtr();
371 QualType QTy,
377 if (const RecordType *TTy = QTy->getAs<RecordType>()) {
379 uint64_t Size = Context.getTypeSizeInChars(QTy).getQuantity();
440 uint64_t Size = Context.getTypeSizeInChars(QTy).getQuantity();
441 llvm::MDNode *TBAAType = MayAlias ? getChar() : getTypeInfo(QTy);
448 CodeGenTBAA::getTBAAStructInfo(QualType QTy) {
452 const Type *Ty = Context.getCanonicalType(QTy).getTypePtr();
458 if (CollectFields(0, QTy, Fields, TypeHasMayAlias(QTy)))
549 llvm::MDNode *CodeGenTBAA::getValidBaseTypeInfo(QualType QTy) {
550 assert(isValidBaseType(QTy) && "Must be a valid base type");
552 const Type *Ty = Context.getCanonicalType(QTy).getTypePtr();
569 llvm::MDNode *CodeGenTBAA::getBaseTypeInfo(QualType QTy) {
570 return isValidBaseType(QTy) ? getValidBaseTypeInfo(QTy) : nullptr;