/external/llvm-project/mlir/lib/TableGen/ |
D | Attribute.cpp | 36 assert(isSubClassOf("AttrConstraint") && in AttrConstraint() 40 bool AttrConstraint::isSubClassOf(StringRef className) const { in isSubClassOf() function in AttrConstraint 41 return def->isSubClassOf(className); in isSubClassOf() 45 assert(record->isSubClassOf("Attr") && in Attribute() 51 bool Attribute::isDerivedAttr() const { return isSubClassOf("DerivedAttr"); } in isDerivedAttr() 53 bool Attribute::isTypeAttr() const { return isSubClassOf("TypeAttrBase"); } in isTypeAttr() 59 return isSubClassOf("SymbolRefAttr") || isSubClassOf("FlatSymbolRefAttr"); in isSymbolRefAttr() 62 bool Attribute::isEnumAttr() const { return isSubClassOf("EnumAttrInfo"); } in isEnumAttr() 142 assert(def->isSubClassOf("ConstantAttr") && in ConstantAttr() 155 assert(isSubClassOf("EnumAttrCaseInfo") && in EnumAttrCase() [all …]
|
D | Constraint.cpp | 21 if (def->isSubClassOf("OpVariable")) in Constraint() 23 if (def->isSubClassOf("TypeConstraint")) { in Constraint() 25 } else if (def->isSubClassOf("AttrConstraint")) { in Constraint() 27 } else if (def->isSubClassOf("RegionConstraint")) { in Constraint() 29 } else if (def->isSubClassOf("SuccessorConstraint")) { in Constraint() 32 assert(def->isSubClassOf("Constraint")); in Constraint() 39 if (def->isSubClassOf("OpVariable")) in Constraint()
|
D | OpTrait.cpp | 26 if (def->isSubClassOf("PredOpTrait")) in create() 28 if (def->isSubClassOf("GenInternalOpTrait")) in create() 30 if (def->isSubClassOf("OpInterfaceTrait")) in create() 32 assert(def->isSubClassOf("NativeOpTrait")); in create() 67 return def->isSubClassOf("DeclareOpInterfaceMethods"); in shouldDeclareMethods()
|
D | Operator.cpp | 118 if (!result->isSubClassOf("OpVariable")) in getResultDecorators() 156 if (!arg->isSubClassOf("OpVariable")) in getArgDecorators() 323 if (def.isSubClassOf( in populateTypeInferenceInfo() 330 if (!def.isSubClassOf("AllTypesMatch")) in populateTypeInferenceInfo() 374 if (argDef->isSubClassOf(opVarClass)) in populateOpStructure() 377 if (argDef->isSubClassOf(typeConstraintClass)) { in populateOpStructure() 380 } else if (argDef->isSubClassOf(attrClass)) { in populateOpStructure() 383 if (argDef->isSubClassOf(derivedAttrClass)) in populateOpStructure() 399 if (!record->isSubClassOf(attrClass)) in populateOpStructure() 401 if (!record->isSubClassOf(derivedAttrClass)) in populateOpStructure() [all …]
|
D | Interfaces.cpp | 42 return def->isSubClassOf("StaticInterfaceMethod"); in isStatic() 74 assert(def->isSubClassOf("Interface") && in Interface() 127 return interface->getDef().isSubClassOf("AttrInterface"); in classof() 135 return interface->getDef().isSubClassOf("OpInterface"); in classof() 143 return interface->getDef().isSubClassOf("TypeInterface"); in classof()
|
D | Predicate.cpp | 26 assert(def->isSubClassOf("Pred") && in Pred() 38 if (def->isSubClassOf("CombinedPred")) in getCondition() 40 if (def->isSubClassOf("CPred")) in getCondition() 46 return def && def->isSubClassOf("CombinedPred"); in isCombined() 52 assert(def->isSubClassOf("CPred") && in CPred() 57 assert((!def || def->isSubClassOf("CPred")) && in CPred() 68 assert(def->isSubClassOf("CombinedPred") && in CombinedPred() 73 assert((!def || def->isSubClassOf("CombinedPred")) && in CombinedPred()
|
D | Type.cpp | 22 assert(def->isSubClassOf("TypeConstraint") && in TypeConstraint() 30 return def->isSubClassOf("Optional"); in isOptional() 34 return def->isSubClassOf("Variadic"); in isVariadic()
|
/external/llvm-project/llvm/utils/TableGen/ |
D | PredicateExpander.cpp | 64 assert(Reg->isSubClassOf("Register") && "Expected a register Record!"); in expandCheckRegOperand() 285 if (Rec->isSubClassOf("MCOpcodeSwitchStatement")) { in expandStatement() 291 if (Rec->isSubClassOf("MCReturnStatement")) { in expandStatement() 301 if (Rec->isSubClassOf("MCTrue")) { in expandPredicate() 307 if (Rec->isSubClassOf("MCFalse")) { in expandPredicate() 313 if (Rec->isSubClassOf("CheckNot")) { in expandPredicate() 320 if (Rec->isSubClassOf("CheckIsRegOperand")) in expandPredicate() 323 if (Rec->isSubClassOf("CheckIsImmOperand")) in expandPredicate() 326 if (Rec->isSubClassOf("CheckRegOperand")) in expandPredicate() 331 if (Rec->isSubClassOf("CheckRegOperandSimple")) in expandPredicate() [all …]
|
D | CallingConvEmitter.cpp | 98 if (Action->isSubClassOf("CCPredicateAction")) { in EmitAction() 101 if (Action->isSubClassOf("CCIfType")) { in EmitAction() 109 } else if (Action->isSubClassOf("CCIf")) { in EmitAction() 120 if (Action->isSubClassOf("CCDelegateTo")) { in EmitAction() 125 } else if (Action->isSubClassOf("CCAssignToReg")) { in EmitAction() 146 } else if (Action->isSubClassOf("CCAssignToRegWithShadow")) { in EmitAction() 188 } else if (Action->isSubClassOf("CCAssignToStack")) { in EmitAction() 213 } else if (Action->isSubClassOf("CCAssignToStackWithShadow")) { in EmitAction() 235 } else if (Action->isSubClassOf("CCPromoteToType")) { in EmitAction() 249 } else if (Action->isSubClassOf("CCPromoteToUpperBitsInType")) { in EmitAction() [all …]
|
D | DAGISelMatcherGen.cpp | 234 if (LeafRec->isSubClassOf("ValueType")) { in EmitLeafMatchCode() 243 LeafRec->isSubClassOf("RegisterClass") || in EmitLeafMatchCode() 244 LeafRec->isSubClassOf("RegisterOperand") || in EmitLeafMatchCode() 245 LeafRec->isSubClassOf("PointerLikeRegClass") || in EmitLeafMatchCode() 246 LeafRec->isSubClassOf("SubRegIndex") || in EmitLeafMatchCode() 253 if (LeafRec->isSubClassOf("Register")) { in EmitLeafMatchCode() 260 if (LeafRec->isSubClassOf("CondCode")) in EmitLeafMatchCode() 263 if (LeafRec->isSubClassOf("ComplexPattern")) { in EmitLeafMatchCode() 310 if (N->getOperator()->isSubClassOf("ComplexPattern")) { in EmitOperatorMatchCode() 680 if (Def->isSubClassOf("Register")) { in EmitResultLeafAsOperand() [all …]
|
D | CodeGenInstruction.cpp | 83 if (Rec->isSubClassOf("RegisterOperand")) { in CGIOperandList() 88 } else if (Rec->isSubClassOf("Operand")) { in CGIOperandList() 108 if (Rec->isSubClassOf("PredicateOp")) in CGIOperandList() 110 else if (Rec->isSubClassOf("OptionalDefOperand")) in CGIOperandList() 117 } else if (Rec->isSubClassOf("RegisterClass")) { in CGIOperandList() 119 } else if (!Rec->isSubClassOf("PointerLikeRegClass") && in CGIOperandList() 120 !Rec->isSubClassOf("unknown_class")) in CGIOperandList() 462 assert(FirstImplicitDef->isSubClassOf("Register")); in HasOneImplicitDefWithKnownVT() 528 return Constraint->getDef()->isSubClassOf("TypedOperand") && in isOperandImpl() 561 if (InstOpRec->isSubClassOf("RegisterOperand")) in tryAliasOpMatch() [all …]
|
D | InfoByHwMode.cpp | 42 if (R->isSubClassOf("PtrValueType")) in ValueTypeByHwMode() 112 if (!Rec->isSubClassOf("ValueType")) in getValueTypeByHwMode() 115 assert(Rec->isSubClassOf("ValueType") && in getValueTypeByHwMode() 117 if (Rec->isSubClassOf("HwModeSelect")) in getValueTypeByHwMode() 133 bool RegSizeInfo::isSubClassOf(const RegSizeInfo &I) const { in isSubClassOf() function in RegSizeInfo 164 bool RegSizeInfoByHwMode::isSubClassOf(const RegSizeInfoByHwMode &I) const { in isSubClassOf() function in RegSizeInfoByHwMode 166 return get(M0).isSubClassOf(I.get(M0)); in isSubClassOf() 198 assert(P.second && P.second->isSubClassOf("InstructionEncoding") && in EncodingInfoByHwMode()
|
D | X86EVEX2VEXTablesEmitter.cpp | 147 return Rec->isSubClassOf("RegisterClass") || in isRegisterOperand() 148 Rec->isSubClassOf("RegisterOperand"); in isRegisterOperand() 152 return Rec->isSubClassOf("Operand") && in isMemoryOperand() 157 return Rec->isSubClassOf("Operand") && in isImmediateOperand() 162 if (RegRec->isSubClassOf("RegisterClass")) in getRegOperandSize() 164 if (RegRec->isSubClassOf("RegisterOperand")) in getRegOperandSize() 179 if (!Inst->TheDef->isSubClassOf("X86Inst")) in run()
|
D | CodeGenTarget.cpp | 715 assert(TyEl->isSubClassOf("LLVMType") && "Expected a type!"); in CodeGenIntrinsic() 717 if (TyEl->isSubClassOf("LLVMMatchType")) in CodeGenIntrinsic() 732 assert(TyEl->isSubClassOf("LLVMType") && "Expected a type!"); in CodeGenIntrinsic() 734 if (TyEl->isSubClassOf("LLVMMatchType")) { in CodeGenIntrinsic() 742 assert(((!TyEl->isSubClassOf("LLVMExtendedType") && in CodeGenIntrinsic() 743 !TyEl->isSubClassOf("LLVMTruncatedType")) || in CodeGenIntrinsic() 763 assert(TyEl->isSubClassOf("LLVMType") && "Expected a type!"); in CodeGenIntrinsic() 765 if (TyEl->isSubClassOf("LLVMMatchType")) { in CodeGenIntrinsic() 778 assert(((!TyEl->isSubClassOf("LLVMExtendedType") && in CodeGenIntrinsic() 779 !TyEl->isSubClassOf("LLVMTruncatedType")) || in CodeGenIntrinsic() [all …]
|
D | CodeGenDAGPatterns.cpp | 1453 if (R->isSubClassOf("SDTCisVT")) { in SDTypeConstraint() 1459 } else if (R->isSubClassOf("SDTCisPtrTy")) { in SDTypeConstraint() 1461 } else if (R->isSubClassOf("SDTCisInt")) { in SDTypeConstraint() 1463 } else if (R->isSubClassOf("SDTCisFP")) { in SDTypeConstraint() 1465 } else if (R->isSubClassOf("SDTCisVec")) { in SDTypeConstraint() 1467 } else if (R->isSubClassOf("SDTCisSameAs")) { in SDTypeConstraint() 1470 } else if (R->isSubClassOf("SDTCisVTSmallerThanOp")) { in SDTypeConstraint() 1474 } else if (R->isSubClassOf("SDTCisOpSmallerThanOp")) { in SDTypeConstraint() 1478 } else if (R->isSubClassOf("SDTCisEltOfVec")) { in SDTypeConstraint() 1481 } else if (R->isSubClassOf("SDTCisSubVecOfVec")) { in SDTypeConstraint() [all …]
|
D | IntrinsicEmitter.cpp | 295 if (R->isSubClassOf("LLVMMatchType")) { in EncodeFixedType() 298 if (R->isSubClassOf("LLVMExtendedType")) in EncodeFixedType() 300 else if (R->isSubClassOf("LLVMTruncatedType")) in EncodeFixedType() 302 else if (R->isSubClassOf("LLVMHalfElementsVectorType")) in EncodeFixedType() 304 else if (R->isSubClassOf("LLVMScalarOrSameVectorWidth")) { in EncodeFixedType() 311 else if (R->isSubClassOf("LLVMPointerTo")) in EncodeFixedType() 313 else if (R->isSubClassOf("LLVMVectorOfAnyPointersToElt")) { in EncodeFixedType() 320 } else if (R->isSubClassOf("LLVMPointerToElt")) in EncodeFixedType() 322 else if (R->isSubClassOf("LLVMVectorElementType")) in EncodeFixedType() 324 else if (R->isSubClassOf("LLVMSubdivide2VectorType")) in EncodeFixedType() [all …]
|
D | CodeGenSchedule.cpp | 481 if (Queue->isSubClassOf("LoadQueue")) { in collectLoadStoreQueueInfo() 492 if (Queue->isSubClassOf("StoreQueue")) { in collectLoadStoreQueueInfo() 547 if (ModelKey->isSubClassOf("SchedMachineModel")) { in addProcModel() 568 if (RWDef->isSubClassOf("WriteSequence")) { in scanSchedRW() 573 else if (RWDef->isSubClassOf("SchedVariant")) { in scanSchedRW() 602 if (RW->isSubClassOf("SchedWrite")) in collectSchedRW() 605 assert(RW->isSubClassOf("SchedRead") && "Unknown SchedReadWrite"); in collectSchedRW() 616 if (RWDef->isSubClassOf("SchedWrite")) in collectSchedRW() 619 assert(RWDef->isSubClassOf("SchedRead") && "Unknown SchedReadWrite"); in collectSchedRW() 630 if (RWDef->isSubClassOf("SchedWrite")) in collectSchedRW() [all …]
|
/external/llvm/utils/TableGen/ |
D | CallingConvEmitter.cpp | 85 if (Action->isSubClassOf("CCPredicateAction")) { in EmitAction() 88 if (Action->isSubClassOf("CCIfType")) { in EmitAction() 96 } else if (Action->isSubClassOf("CCIf")) { in EmitAction() 107 if (Action->isSubClassOf("CCDelegateTo")) { in EmitAction() 112 } else if (Action->isSubClassOf("CCAssignToReg")) { in EmitAction() 133 } else if (Action->isSubClassOf("CCAssignToRegWithShadow")) { in EmitAction() 174 } else if (Action->isSubClassOf("CCAssignToStack")) { in EmitAction() 198 } else if (Action->isSubClassOf("CCAssignToStackWithShadow")) { in EmitAction() 221 } else if (Action->isSubClassOf("CCPromoteToType")) { in EmitAction() 235 } else if (Action->isSubClassOf("CCPromoteToUpperBitsInType")) { in EmitAction() [all …]
|
D | DAGISelMatcherGen.cpp | 233 if (LeafRec->isSubClassOf("ValueType")) { in EmitLeafMatchCode() 242 LeafRec->isSubClassOf("RegisterClass") || in EmitLeafMatchCode() 243 LeafRec->isSubClassOf("RegisterOperand") || in EmitLeafMatchCode() 244 LeafRec->isSubClassOf("PointerLikeRegClass") || in EmitLeafMatchCode() 245 LeafRec->isSubClassOf("SubRegIndex") || in EmitLeafMatchCode() 252 if (LeafRec->isSubClassOf("Register")) { in EmitLeafMatchCode() 259 if (LeafRec->isSubClassOf("CondCode")) in EmitLeafMatchCode() 262 if (LeafRec->isSubClassOf("ComplexPattern")) { in EmitLeafMatchCode() 287 if (N->getOperator()->isSubClassOf("ComplexPattern")) { in EmitOperatorMatchCode() 617 if (Def->isSubClassOf("Register")) { in EmitResultLeafAsOperand() [all …]
|
D | CodeGenInstruction.cpp | 76 if (Rec->isSubClassOf("RegisterOperand")) { in CGIOperandList() 80 } else if (Rec->isSubClassOf("Operand")) { in CGIOperandList() 99 if (Rec->isSubClassOf("PredicateOp")) in CGIOperandList() 101 else if (Rec->isSubClassOf("OptionalDefOperand")) in CGIOperandList() 106 } else if (Rec->isSubClassOf("RegisterClass")) { in CGIOperandList() 108 } else if (!Rec->isSubClassOf("PointerLikeRegClass") && in CGIOperandList() 109 !Rec->isSubClassOf("unknown_class")) in CGIOperandList() 375 assert(FirstImplicitDef->isSubClassOf("Register")); in HasOneImplicitDefWithKnownVT() 460 if (InstOpRec->isSubClassOf("RegisterOperand")) in tryAliasOpMatch() 463 if (ADI && ADI->getDef()->isSubClassOf("RegisterOperand")) in tryAliasOpMatch() [all …]
|
D | CodeGenDAGPatterns.cpp | 876 if (!Def->isSubClassOf("Predicate")) { in getPredicateCheck() 905 if (R->isSubClassOf("SDTCisVT")) { in SDTypeConstraint() 911 } else if (R->isSubClassOf("SDTCisPtrTy")) { in SDTypeConstraint() 913 } else if (R->isSubClassOf("SDTCisInt")) { in SDTypeConstraint() 915 } else if (R->isSubClassOf("SDTCisFP")) { in SDTypeConstraint() 917 } else if (R->isSubClassOf("SDTCisVec")) { in SDTypeConstraint() 919 } else if (R->isSubClassOf("SDTCisSameAs")) { in SDTypeConstraint() 922 } else if (R->isSubClassOf("SDTCisVTSmallerThanOp")) { in SDTypeConstraint() 926 } else if (R->isSubClassOf("SDTCisOpSmallerThanOp")) { in SDTypeConstraint() 930 } else if (R->isSubClassOf("SDTCisEltOfVec")) { in SDTypeConstraint() [all …]
|
D | CodeGenTarget.cpp | 501 assert(TyEl->isSubClassOf("LLVMType") && "Expected a type!"); in CodeGenIntrinsic() 503 if (TyEl->isSubClassOf("LLVMMatchType")) { in CodeGenIntrinsic() 511 assert(((!TyEl->isSubClassOf("LLVMExtendedType") && in CodeGenIntrinsic() 512 !TyEl->isSubClassOf("LLVMTruncatedType")) || in CodeGenIntrinsic() 535 assert(TyEl->isSubClassOf("LLVMType") && "Expected a type!"); in CodeGenIntrinsic() 537 if (TyEl->isSubClassOf("LLVMMatchType")) { in CodeGenIntrinsic() 545 assert(((!TyEl->isSubClassOf("LLVMExtendedType") && in CodeGenIntrinsic() 546 !TyEl->isSubClassOf("LLVMTruncatedType") && in CodeGenIntrinsic() 547 !TyEl->isSubClassOf("LLVMVectorSameWidth") && in CodeGenIntrinsic() 548 !TyEl->isSubClassOf("LLVMPointerToElt")) || in CodeGenIntrinsic() [all …]
|
/external/llvm-project/clang/utils/TableGen/ |
D | ClangSyntaxEmitter.cpp | 55 assert(N.Record->isSubClassOf("Alternatives") || in Hierarchy() 56 N.Record->isSubClassOf("External") || N.Derived.empty()); in Hierarchy() 57 assert(!N.Record->isSubClassOf("Alternatives") || !N.Derived.empty()); in Hierarchy() 113 if (R.isSubClassOf("Optional")) { in SyntaxConstraint() 115 } else if (R.isSubClassOf("AnyToken")) { in SyntaxConstraint() 117 } else if (R.isSubClassOf("NodeType")) { in SyntaxConstraint() 202 if (N.Record->isSubClassOf("External")) in EmitClangSyntaxNodeClasses() 216 if (N.Record->isSubClassOf("Sequence")) { in EmitClangSyntaxNodeClasses() 219 assert(C->isSubClassOf("Role")); in EmitClangSyntaxNodeClasses()
|
D | ClangTypeNodesEmitter.cpp | 155 if (type.isSubClassOf(AlwaysDependentClassName)) in emitNodeInvocations() 157 if (type.isSubClassOf(NeverCanonicalClassName)) in emitNodeInvocations() 159 if (type.isSubClassOf(NeverCanonicalUnlessDependentClassName)) in emitNodeInvocations() 188 if (!type.isSubClassOf(LeafTypeClassName)) continue; in emitLeafNodeInvocations()
|
D | ASTTableGen.h | 109 bool isSubClassOf(llvm::StringRef className) const { in isSubClassOf() function 110 return get()->isSubClassOf(className); in isSubClassOf() 115 return (isSubClassOf(NodeClass::getTableGenNodeClassName()) in getAs() 282 if (isSubClassOf(ArrayTypeClassName)) in getArrayElementType() 289 if (isSubClassOf(OptionalTypeClassName)) in getOptionalElementType() 296 if (isSubClassOf(SubclassPropertyTypeClassName)) in getSuperclassType() 310 return isSubClassOf(EnumPropertyTypeClassName); in isEnum()
|