Home
last modified time | relevance | path

Searched refs:TypeNode (Results 1 – 15 of 15) sorted by relevance

/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DTypeNodes.td3 class TypeNode<TypeNode base, bit abstract = 0> : ASTNode {
4 TypeNode Base = base;
53 def Type : TypeNode<?, 1>;
54 def BuiltinType : TypeNode<Type>, LeafType;
55 def ComplexType : TypeNode<Type>;
56 def PointerType : TypeNode<Type>;
57 def BlockPointerType : TypeNode<Type>;
58 def ReferenceType : TypeNode<Type, 1>;
59 def LValueReferenceType : TypeNode<ReferenceType>;
60 def RValueReferenceType : TypeNode<ReferenceType>;
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DMicrosoftDemangleNodes.h290 struct TypeNode;
317 struct TypeNode : public Node { struct
318 explicit TypeNode(NodeKind K) : Node(K) {} in TypeNode() function
335 struct PrimitiveTypeNode : public TypeNode { argument
337 : TypeNode(NodeKind::PrimitiveType), PrimKind(K) {} in PrimitiveTypeNode()
349 struct FunctionSignatureNode : public TypeNode {
350 explicit FunctionSignatureNode(NodeKind K) : TypeNode(K) {} in FunctionSignatureNode()
351 FunctionSignatureNode() : TypeNode(NodeKind::FunctionSignature) {} in FunctionSignatureNode()
374 TypeNode *ReturnType = nullptr;
491 TypeNode *TargetType = nullptr;
[all …]
H A DMicrosoftDemangle.h122 TypeNode *FunctionParams[Max];
185 TypeNode *demangleType(std::string_view &MangledName,
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DClangTypeNodesEmitter.cpp92 void emitLastNodeInvocation(TypeNode lastType);
135 TypeNode lastType; in emitNodeInvocations()
137 visitASTNodeHierarchy<TypeNode>(Records, [&](TypeNode type, TypeNode base) { in emitNodeInvocations()
173 void TypeNodeEmitter::emitLastNodeInvocation(TypeNode type) { in emitLastNodeInvocation()
184 for (TypeNode type : Types) { in emitLeafNodeInvocations()
H A DASTTableGen.h203 class TypeNode : public ASTNode {
205 TypeNode(const llvm::Record *record = nullptr) : ASTNode(record) {} in ASTNode()
209 TypeNode getBase() const { return TypeNode(ASTNode::getBase().getRecord()); } in getBase()
H A DASTTableGen.cpp55 StringRef clang::tblgen::TypeNode::getClassName() const { in getClassName()
58 StringRef clang::tblgen::TypeNode::getId() const { in getId()
H A DClangASTPropertiesEmitter.cpp28 static StringRef getReaderResultType(TypeNode _) { return "QualType"; } in getReaderResultType()
595 emitASTReader<TypeNode>(records, out, "A CRTP reader for Clang Type nodes"); in EmitClangTypeReader()
609 emitASTWriter<TypeNode>(records, out, "A CRTP writer for Clang Type nodes"); in EmitClangTypeWriter()
852 auto info = ReaderWriterInfo::forReader<TypeNode>(); in EmitClangBasicReader()
863 auto info = ReaderWriterInfo::forWriter<TypeNode>(); in EmitClangBasicWriter()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTBAA.cpp395 llvm::MDNode *TypeNode = getTypeInfoHelper(Ty); in getTypeInfo() local
396 return MetadataCache[Ty] = TypeNode; in getTypeInfo()
534 llvm::MDNode *TypeNode = isValidBaseType(BaseQTy) in getBaseTypeInfoHelper() local
537 if (!TypeNode) in getBaseTypeInfoHelper()
543 llvm::MDBuilder::TBAAStructField(Offset, Size, TypeNode)); in getBaseTypeInfoHelper()
559 llvm::MDNode *TypeNode = isValidBaseType(FieldQTy) in getBaseTypeInfoHelper() local
562 if (!TypeNode) in getBaseTypeInfoHelper()
569 TypeNode)); in getBaseTypeInfoHelper()
611 llvm::MDNode *TypeNode = getBaseTypeInfoHelper(Ty); in getValidBaseTypeInfo() local
613 BaseTypeMetadataCache.insert({Ty, TypeNode}); in getValidBaseTypeInfo()
[all …]
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp197 bool TraverseType(QualType TypeNode) { in TraverseType() argument
198 if (TypeNode.isNull()) in TraverseType()
202 if (!match(*TypeNode)) in TraverseType()
205 return traverse(TypeNode); in TraverseType()
343 bool baseTraverse(QualType TypeNode) { in baseTraverse() argument
344 return VisitorBase::TraverseType(TypeNode); in baseTraverse()
489 const Type *TypeNode = DeclNode->getUnderlyingType().getTypePtr(); in VisitTypedefNameDecl() local
491 ActiveASTContext->getCanonicalType(TypeNode); in VisitTypedefNameDecl()
504 bool TraverseType(QualType TypeNode);
505 bool TraverseTypeLoc(TypeLoc TypeNode);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DWindowsResource.cpp268 TreeNode *TypeNode = TypeIt->second.get(); in cleanUpManifests() local
270 TypeNode->IDChildren.find(/* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 1); in cleanUpManifests()
271 if (NameIt == TypeNode->IDChildren.end()) in cleanUpManifests()
384 TreeNode &TypeNode = addTypeNode(Entry, StringTable); in addEntry() local
385 TreeNode &NameNode = TypeNode.addNameNode(Entry, StringTable); in addEntry()
/freebsd/contrib/llvm-project/llvm/lib/Demangle/
H A DMicrosoftDemangle.cpp380 TypeNode *Type, in synthesizeVariable()
491 TypeNode *T = demangleType(MangledName, QualifierMangleMode::Result); in demangleSpecialIntrinsic()
838 TypeNode *T = demangleType(MangledName, QualifierMangleMode::Result); in demangleTypeinfoName()
1837 TypeNode *Demangler::demangleType(std::string_view &MangledName, in demangleType()
1853 TypeNode *Ty = nullptr; in demangleType()
2272 TypeNode *TN = demangleType(MangledName, QualifierMangleMode::Drop); in demangleFunctionParameterList()
2464 TypeNode *T = Backrefs.FunctionParams[I]; in dumpBackReferences()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeBasedAliasAnalysis.cpp299 auto *TypeNode = cast<MDNode>(getNode()->getOperand(OpIndex)); in getFieldType() local
300 return TBAAStructTypeNode(TypeNode); in getFieldType()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTContext.cpp3273 const Type *TypeNode = Quals.strip(T); in getAddrSpaceQualType() local
3281 return getExtQualType(TypeNode, Quals); in getAddrSpaceQualType()
3291 const Type *TypeNode; in removeAddrSpaceQualType() local
3296 TypeNode = T.getTypePtr(); in removeAddrSpaceQualType()
3301 TypeNode = Quals.strip(T); in removeAddrSpaceQualType()
3305 if (!QualType(TypeNode, 0).hasAddressSpace()) in removeAddrSpaceQualType()
3319 return getExtQualType(TypeNode, Quals); in removeAddrSpaceQualType()
3321 return QualType(TypeNode, Quals.getFastQualifiers()); in removeAddrSpaceQualType()
3676 const Type *TypeNode = Quals.strip(T); in getObjCGCQualType() local
3684 return getExtQualType(TypeNode, Quals); in getObjCGCQualType()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.cpp4959 VTSDNode *TypeNode = cast<VTSDNode>(V.getNode()->getOperand(1)); in checkValueWidth() local
4960 if ((TypeNode->getVT() == MVT::i8) || (TypeNode->getVT() == MVT::i16)) { in checkValueWidth()
4967 VTSDNode *TypeNode = cast<VTSDNode>(V.getNode()->getOperand(1)); in checkValueWidth() local
4968 if ((TypeNode->getVT() == MVT::i8) || (TypeNode->getVT() == MVT::i16)) { in checkValueWidth()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp18623 VTSDNode *TypeNode = dyn_cast<VTSDNode>(Extend.getOperand(1)); in calculatePreExtendType() local
18624 if (!TypeNode) in calculatePreExtendType()
18626 return TypeNode->getVT(); in calculatePreExtendType()
24495 VTSDNode *TypeNode = cast<VTSDNode>(V.getNode()->getOperand(1)); in checkValueWidth() local
24496 if ((TypeNode->getVT() == MVT::i8 && width == 8) in checkValueWidth()
24497 || (TypeNode->getVT() == MVT::i16 && width == 16)) { in checkValueWidth()
24504 VTSDNode *TypeNode = cast<VTSDNode>(V.getNode()->getOperand(1)); in checkValueWidth() local
24505 if ((TypeNode->getVT() == MVT::i8 && width == 8) in checkValueWidth()
24506 || (TypeNode->getVT() == MVT::i16 && width == 16)) { in checkValueWidth()