Home
last modified time | relevance | path

Searched refs:TypeIdx (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizeMutations.cpp17 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 DLegalityPredicates.cpp28 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 DLegacyLegalizerInfo.cpp110 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 DLegalizerInfo.cpp130 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 DLegalizerHelper.cpp137 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 DLegalizerInfo.h146 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 DLegalizerHelper.h105 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 DLegacyLegalizerInfo.h106 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 DGIMatchTableExecutorImpl.h791 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 DLegalizationArtifactCombiner.h1111 if (ActionStep.TypeIdx == 1) in tryCombineUnmergeValues()
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTBitCodes.h99 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 DASTDeserializationListener.h47 virtual void TypeRead(serialization::TypeIdx Idx, QualType T) { } in TypeRead()
100 void TypeRead(serialization::TypeIdx Idx, QualType T) override { in TypeRead()
H A DASTWriter.h115 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 DPPCLegalizerInfo.cpp21 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 DRISCVLegalizerInfo.cpp36 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 DASTCommon.h47 TypeIdx TypeIdxFromBuiltin(const BuiltinType *BT);
H A DASTCommon.cpp25 serialization::TypeIdx
291 return TypeIdx(0, ID); in TypeIdxFromBuiltin()
H A DASTWriter.cpp3363 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 DAMDGPULegalizerInfo.cpp72 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 DSPIRVLegalizerInfo.cpp27 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 DMultiplexConsumer.h37 void TypeRead(serialization::TypeIdx Idx, QualType T) override;
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DMultiplexConsumer.cpp50 serialization::TypeIdx Idx, QualType T) { in TypeRead()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineVerifier.cpp1137 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 DSemaTemplate.cpp2860 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 DDemangleTestCases.inc1070 …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…
2170TypeIdx, 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…

12