| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalizeMutations.cpp | 17 LegalizeMutation LegalizeMutations::changeTo(unsigned TypeIdx, LLT Ty) { in changeTo() argument 19 [=](const LegalityQuery &Query) { return std::make_pair(TypeIdx, Ty); }; in changeTo() 22 LegalizeMutation LegalizeMutations::changeTo(unsigned TypeIdx, in changeTo() argument 25 return std::make_pair(TypeIdx, Query.Types[FromTypeIdx]); in changeTo() 29 LegalizeMutation LegalizeMutations::changeElementTo(unsigned TypeIdx, in changeElementTo() argument 32 const LLT OldTy = Query.Types[TypeIdx]; in changeElementTo() 34 return std::make_pair(TypeIdx, OldTy.changeElementType(NewTy)); in changeElementTo() 38 LegalizeMutation LegalizeMutations::changeElementTo(unsigned TypeIdx, in changeElementTo() argument 41 const LLT OldTy = Query.Types[TypeIdx]; in changeElementTo() 42 return std::make_pair(TypeIdx, OldTy.changeElementType(NewEltTy)); in changeElementTo() [all …]
|
| H A D | LegalityPredicates.cpp | 28 LegalityPredicate LegalityPredicates::typeIs(unsigned TypeIdx, LLT Type) { in typeIs() argument 30 [=](const LegalityQuery &Query) { return Query.Types[TypeIdx] == Type; }; in typeIs() 34 LegalityPredicates::typeInSet(unsigned TypeIdx, in typeInSet() argument 38 return llvm::is_contained(Types, Query.Types[TypeIdx]); in typeInSet() 78 LegalityPredicate LegalityPredicates::isScalar(unsigned TypeIdx) { in isScalar() argument 80 return Query.Types[TypeIdx].isScalar(); in isScalar() 84 LegalityPredicate LegalityPredicates::isVector(unsigned TypeIdx) { in isVector() argument 86 return Query.Types[TypeIdx].isVector(); in isVector() 90 LegalityPredicate LegalityPredicates::isPointer(unsigned TypeIdx) { in isPointer() argument 92 return Query.Types[TypeIdx].isPointer(); in isPointer() [all …]
|
| H A D | LegacyLegalizerInfo.cpp | 110 for (unsigned TypeIdx = 0; TypeIdx != SpecifiedActions[OpcodeIdx].size(); in computeTables() local 111 ++TypeIdx) { in computeTables() 120 for (auto LLT2Action : SpecifiedActions[OpcodeIdx][TypeIdx]) { in computeTables() 140 if (TypeIdx < ScalarSizeChangeStrategies[OpcodeIdx].size() && in computeTables() 141 ScalarSizeChangeStrategies[OpcodeIdx][TypeIdx] != nullptr) in computeTables() 142 S = ScalarSizeChangeStrategies[OpcodeIdx][TypeIdx]; in computeTables() 145 setScalarAction(Opcode, TypeIdx, S(ScalarSpecifiedActions)); in computeTables() 155 Opcode, TypeIdx, PointerSpecifiedActions.first, in computeTables() 177 Opcode, TypeIdx, ElementSize, in computeTables() 183 if (TypeIdx < VectorElementSizeChangeStrategies[OpcodeIdx].size() && in computeTables() [all …]
|
| H A D | LegalizerInfo.cpp | 130 const unsigned TypeIdx = Mutation.first; in mutationIsSane() local 131 const LLT OldTy = Q.Types[TypeIdx]; in mutationIsSane() 279 unsigned TypeIdx) { in getTypeFromTypeIdx() argument 280 assert(TypeIdx < MI.getNumOperands() && "Unexpected TypeIdx"); in getTypeFromTypeIdx() 284 if (MI.getOpcode() == TargetOpcode::G_UNMERGE_VALUES && TypeIdx == 1) in getTypeFromTypeIdx() 367 unsigned TypeIdx = OpInfo[i].getGenericTypeIndex(); in getAction() local 368 if (SeenTypes[TypeIdx]) in getAction() 371 SeenTypes.set(TypeIdx); in getAction() 373 LLT Ty = getTypeFromTypeIdx(MI, MRI, i, TypeIdx); in getAction()
|
| H A D | LegalizerHelper.cpp | 137 return narrowScalar(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep() 140 return widenScalar(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep() 143 return bitcast(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep() 146 return lower(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep() 149 return fewerElementsVector(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep() 152 return moreElementsVector(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep() 1484 unsigned TypeIdx, in narrowScalar() argument 1562 return narrowScalarExt(MI, TypeIdx, NarrowTy); in narrowScalar() 1564 if (TypeIdx != 1) in narrowScalar() 1580 if (TypeIdx != 0) in narrowScalar() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | LegalizerInfo.h | 146 unsigned TypeIdx; member 150 LegalizeActionStep(LegalizeAction Action, unsigned TypeIdx, in LegalizeActionStep() 152 : Action(Action), TypeIdx(TypeIdx), NewType(NewType) {} in LegalizeActionStep() 155 : TypeIdx(Step.TypeIdx), NewType(Step.NewType) { in LegalizeActionStep() 194 return std::tie(Action, TypeIdx, NewType) == 195 std::tie(RHS.Action, RHS.TypeIdx, RHS.NewType); 258 LLVM_ABI LegalityPredicate typeIs(unsigned TypeIdx, LLT TypesInit); 260 LLVM_ABI LegalityPredicate typeInSet(unsigned TypeIdx, 264 inline LegalityPredicate typeIsNot(unsigned TypeIdx, LLT Type) { in typeIsNot() argument 266 return Query.Types[TypeIdx] != Type; in typeIsNot() [all …]
|
| H A D | LegalizerHelper.h | 105 LLVM_ABI LegalizeResult narrowScalar(MachineInstr &MI, unsigned TypeIdx, 111 LLVM_ABI LegalizeResult widenScalar(MachineInstr &MI, unsigned TypeIdx, 115 LLVM_ABI LegalizeResult bitcast(MachineInstr &MI, unsigned TypeIdx, LLT Ty); 119 LLVM_ABI LegalizeResult lower(MachineInstr &MI, unsigned TypeIdx, LLT Ty); 124 unsigned TypeIdx, LLT NarrowTy); 128 LLVM_ABI LegalizeResult moreElementsVector(MachineInstr &MI, unsigned TypeIdx, 183 widenScalarMergeValues(MachineInstr &MI, unsigned TypeIdx, LLT WideTy); 185 widenScalarUnmergeValues(MachineInstr &MI, unsigned TypeIdx, LLT WideTy); 187 widenScalarExtract(MachineInstr &MI, unsigned TypeIdx, LLT WideTy); 189 widenScalarInsert(MachineInstr &MI, unsigned TypeIdx, LLT WideTy); [all …]
|
| H A D | LegacyLegalizerInfo.h | 106 unsigned TypeIdx; member 111 unsigned TypeIdx, const LLT NewType) in LegacyLegalizeActionStep() 112 : Action(Action), TypeIdx(TypeIdx), NewType(NewType) {} in LegacyLegalizeActionStep() 115 return std::tie(Action, TypeIdx, NewType) == 116 std::tie(RHS.Action, RHS.TypeIdx, RHS.NewType); 182 const unsigned TypeIdx, in setLegalizeScalarToDifferentSizeStrategy() argument 185 if (ScalarSizeChangeStrategies[OpcodeIdx].size() <= TypeIdx) in setLegalizeScalarToDifferentSizeStrategy() 186 ScalarSizeChangeStrategies[OpcodeIdx].resize(TypeIdx + 1); in setLegalizeScalarToDifferentSizeStrategy() 187 ScalarSizeChangeStrategies[OpcodeIdx][TypeIdx] = S; in setLegalizeScalarToDifferentSizeStrategy() 193 const unsigned TypeIdx, in setLegalizeVectorElementToDifferentSizeStrategy() argument [all …]
|
| H A D | GIMatchTableExecutorImpl.h | 791 int TypeIdx = readS8(); in executeMatchTable() local 796 << "), TypeIdx=" << TypeIdx << ")\n"); in executeMatchTable() 798 assert(TypeIdx < 0 && "Temp types always have negative indexes!"); in executeMatchTable() 800 TypeIdx = 1 - TypeIdx; in executeMatchTable() 802 if (State.RecordedTypes.size() <= (uint64_t)TypeIdx) in executeMatchTable() 803 State.RecordedTypes.resize(TypeIdx + 1, LLT()); in executeMatchTable() 804 State.RecordedTypes[TypeIdx] = MRI.getType(Op.getReg()); in executeMatchTable()
|
| H A D | LegalizationArtifactCombiner.h | 1111 if (ActionStep.TypeIdx == 1) in tryCombineUnmergeValues()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Serialization/ |
| H A D | ASTBitCodes.h | 99 class TypeIdx { 104 TypeIdx() = default; 106 explicit TypeIdx(uint32_t ModuleFileIdx, uint32_t Idx) in TypeIdx() function 121 static TypeIdx fromTypeID(TypeID ID) { in fromTypeID() 123 return TypeIdx(0, -1); in fromTypeID() 125 return TypeIdx(ID >> 32, (ID & llvm::maskTrailingOnes<TypeID>(32)) >> in fromTypeID() 130 static_assert(alignof(TypeIdx) == 4);
|
| H A D | ASTDeserializationListener.h | 47 virtual void TypeRead(serialization::TypeIdx Idx, QualType T) { } in TypeRead() 100 void TypeRead(serialization::TypeIdx Idx, QualType T) override { in TypeRead()
|
| H A D | ASTWriter.h | 115 using TypeIdxMap = llvm::DenseMap<QualType, serialization::TypeIdx, 924 void TypeRead(serialization::TypeIdx Idx, QualType T) override;
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/ |
| H A D | PPCLegalizerInfo.cpp | 21 static LegalityPredicate isRegisterType(unsigned TypeIdx) { in isRegisterType() argument 23 const LLT QueryTy = Query.Types[TypeIdx]; in isRegisterType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/ |
| H A D | RISCVLegalizerInfo.cpp | 36 typeIsLegalIntOrFPVec(unsigned TypeIdx, in typeIsLegalIntOrFPVec() argument 41 (Query.Types[TypeIdx].getScalarSizeInBits() != 64 || in typeIsLegalIntOrFPVec() 43 (Query.Types[TypeIdx].getElementCount().getKnownMinValue() != 1 || in typeIsLegalIntOrFPVec() 47 return all(typeInSet(TypeIdx, IntOrFPVecTys), P); in typeIsLegalIntOrFPVec() 51 typeIsLegalBoolVec(unsigned TypeIdx, std::initializer_list<LLT> BoolVecTys, in typeIsLegalBoolVec() argument 55 (Query.Types[TypeIdx].getElementCount().getKnownMinValue() != 1 || in typeIsLegalBoolVec() 58 return all(typeInSet(TypeIdx, BoolVecTys), P); in typeIsLegalBoolVec() 61 static LegalityPredicate typeIsLegalPtrVec(unsigned TypeIdx, in typeIsLegalPtrVec() argument 66 (Query.Types[TypeIdx].getElementCount().getKnownMinValue() != 1 || in typeIsLegalPtrVec() 68 (Query.Types[TypeIdx].getElementCount().getKnownMinValue() != 16 || in typeIsLegalPtrVec() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTCommon.h | 47 TypeIdx TypeIdxFromBuiltin(const BuiltinType *BT);
|
| H A D | ASTCommon.cpp | 25 serialization::TypeIdx 291 return TypeIdx(0, ID); in TypeIdxFromBuiltin()
|
| H A D | ASTWriter.cpp | 3363 TypeIdx &IdxRef = TypeIdxs[T]; in WriteType() 3365 IdxRef = TypeIdx(0, NextTypeID++); in WriteType() 3366 TypeIdx Idx = IdxRef; in WriteType() 6831 return TypeIdx(0, PREDEF_TYPE_AUTO_DEDUCT).asTypeID(FastQuals); in MakeTypeID() 6833 return TypeIdx(0, PREDEF_TYPE_AUTO_RREF_DEDUCT).asTypeID(FastQuals); in MakeTypeID() 6839 return MakeTypeID(Context, T, [&](QualType T) -> TypeIdx { in GetOrCreateTypeID() 6841 return TypeIdx(); in GetOrCreateTypeID() 6844 TypeIdx &Idx = TypeIdxs[T]; in GetOrCreateTypeID() 6848 return TypeIdx(); in GetOrCreateTypeID() 6853 Idx = TypeIdx(0, NextTypeID++); in GetOrCreateTypeID() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULegalizerInfo.cpp | 72 static LegalityPredicate isSmallOddVector(unsigned TypeIdx) { in isSmallOddVector() argument 74 const LLT Ty = Query.Types[TypeIdx]; in isSmallOddVector() 86 static LegalityPredicate sizeIsMultipleOf32(unsigned TypeIdx) { in sizeIsMultipleOf32() argument 88 const LLT Ty = Query.Types[TypeIdx]; in sizeIsMultipleOf32() 93 static LegalityPredicate isWideVec16(unsigned TypeIdx) { in isWideVec16() argument 95 const LLT Ty = Query.Types[TypeIdx]; in isWideVec16() 101 static LegalizeMutation oneMoreElement(unsigned TypeIdx) { in oneMoreElement() argument 103 const LLT Ty = Query.Types[TypeIdx]; in oneMoreElement() 105 return std::pair(TypeIdx, in oneMoreElement() 110 static LegalizeMutation fewerEltsToSize64Vector(unsigned TypeIdx) { in fewerEltsToSize64Vector() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVLegalizerInfo.cpp | 27 LegalityPredicate typeOfExtendedScalars(unsigned TypeIdx, bool IsExtendedInts) { in typeOfExtendedScalars() argument 28 return [IsExtendedInts, TypeIdx](const LegalityQuery &Query) { in typeOfExtendedScalars() 29 const LLT Ty = Query.Types[TypeIdx]; in typeOfExtendedScalars()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
| H A D | MultiplexConsumer.h | 37 void TypeRead(serialization::TypeIdx Idx, QualType T) override;
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | MultiplexConsumer.cpp | 50 serialization::TypeIdx Idx, QualType T) { in TypeRead()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MachineVerifier.cpp | 1137 size_t TypeIdx = MCID.operands()[I].getGenericTypeIndex(); in verifyPreISelGenericInstruction() local 1138 Types.resize(std::max(TypeIdx + 1, Types.size())); in verifyPreISelGenericInstruction() 1152 if (!Types[TypeIdx].isValid()) in verifyPreISelGenericInstruction() 1153 Types[TypeIdx] = OpTy; in verifyPreISelGenericInstruction() 1154 else if (Types[TypeIdx] != OpTy) in verifyPreISelGenericInstruction()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaTemplate.cpp | 2860 for (unsigned TypeIdx = 0, NumTypes = NestedTypes.size(); TypeIdx != NumTypes; in MatchTemplateParametersToScopeSpecifier() local 2861 ++TypeIdx) { in MatchTemplateParametersToScopeSpecifier() 2862 T = NestedTypes[TypeIdx]; in MatchTemplateParametersToScopeSpecifier() 2903 TypeIdx == NumTypes - 1) in MatchTemplateParametersToScopeSpecifier() 2939 if (TypeIdx == NumTypes - 1) in MatchTemplateParametersToScopeSpecifier()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Testing/Demangle/ |
| H A D | DemangleTestCases.inc | 1070 …peE", "clang::ASTDeserializationListener::TypeRead(clang::serialization::TypeIdx, clang::QualType)… 1167 …ang::MultiplexASTDeserializationListener::TypeRead(clang::serialization::TypeIdx, clang::QualType)… 2123 …ialization::TypeIdx, clang::ASTReader, clang::QualType>>>(clang::QualType, std::binder1st<std::con… 2170 …TypeIdx, clang::serialization::UnsafeQualTypeDenseMapInfo, llvm::DenseMapInfo<clang::serialization… 2171 … clang::serialization::TypeIdx, clang::serialization::UnsafeQualTypeDenseMapInfo, llvm::DenseMapIn… 2493 …ypeIdxENS_8QualTypeE", "clang::ASTWriter::TypeRead(clang::serialization::TypeIdx, clang::QualType)… 2518 …serialization::TypeIdx, clang::ASTWriter, clang::QualType>>>(clang::QualType, std::binder1st<std::… 2519 …ialization::TypeIdx, clang::ASTWriter, clang::QualType>>>(clang::QualType, std::binder1st<std::con…
|