Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerInfo.h154 unsigned TypeIdx; member
158 LegalizeActionStep(LegalizeAction Action, unsigned TypeIdx, in LegalizeActionStep()
160 : Action(Action), TypeIdx(TypeIdx), NewType(NewType) {} in LegalizeActionStep()
163 return std::tie(Action, TypeIdx, NewType) ==
164 std::tie(RHS.Action, RHS.TypeIdx, RHS.NewType);
221 LegalityPredicate typeIs(unsigned TypeIdx, LLT TypesInit);
223 LegalityPredicate typeInSet(unsigned TypeIdx,
227 inline LegalityPredicate typeIsNot(unsigned TypeIdx, LLT Type) { in typeIsNot() argument
229 return Query.Types[TypeIdx] != Type; in typeIsNot()
244 LegalityPredicate isScalar(unsigned TypeIdx);
[all …]
H A DLegalizerHelper.h88 LegalizeResult narrowScalar(MachineInstr &MI, unsigned TypeIdx, LLT NarrowTy);
93 LegalizeResult widenScalar(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
96 LegalizeResult bitcast(MachineInstr &MI, unsigned TypeIdx, LLT Ty);
100 LegalizeResult lower(MachineInstr &MI, unsigned TypeIdx, LLT Ty);
104 LegalizeResult fewerElementsVector(MachineInstr &MI, unsigned TypeIdx,
109 LegalizeResult moreElementsVector(MachineInstr &MI, unsigned TypeIdx,
166 widenScalarMergeValues(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
168 widenScalarUnmergeValues(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
170 widenScalarExtract(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
172 widenScalarInsert(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
[all …]
H A DLegalizationArtifactCombiner.h571 if (ActionStep.TypeIdx == 1) in tryCombineUnmergeValues()
/netbsd-src/external/apache2/llvm/dist/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()
67 LegalityPredicate LegalityPredicates::isScalar(unsigned TypeIdx) { in isScalar() argument
69 return Query.Types[TypeIdx].isScalar(); in isScalar()
73 LegalityPredicate LegalityPredicates::isVector(unsigned TypeIdx) { in isVector() argument
75 return Query.Types[TypeIdx].isVector(); in isVector()
79 LegalityPredicate LegalityPredicates::isPointer(unsigned TypeIdx) { in isPointer() argument
81 return Query.Types[TypeIdx].isPointer(); in isPointer()
[all …]
H A DLegalizerInfo.cpp129 const unsigned TypeIdx = Mutation.first; in mutationIsSane() local
130 const LLT OldTy = Q.Types[TypeIdx]; in mutationIsSane()
299 for (unsigned TypeIdx = 0; TypeIdx != SpecifiedActions[OpcodeIdx].size(); in computeTables() local
300 ++TypeIdx) { in computeTables()
309 for (auto LLT2Action : SpecifiedActions[OpcodeIdx][TypeIdx]) { in computeTables()
329 if (TypeIdx < ScalarSizeChangeStrategies[OpcodeIdx].size() && in computeTables()
330 ScalarSizeChangeStrategies[OpcodeIdx][TypeIdx] != nullptr) in computeTables()
331 S = ScalarSizeChangeStrategies[OpcodeIdx][TypeIdx]; in computeTables()
334 setScalarAction(Opcode, TypeIdx, S(ScalarSpecifiedActions)); in computeTables()
344 Opcode, TypeIdx, PointerSpecifiedActions.first, in computeTables()
[all …]
H A DLegalizerHelper.cpp122 return narrowScalar(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
125 return widenScalar(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
128 return bitcast(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
131 return lower(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
134 return fewerElementsVector(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
137 return moreElementsVector(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
781 unsigned TypeIdx, in narrowScalar() argument
859 return narrowScalarExt(MI, TypeIdx, NarrowTy); in narrowScalar()
861 if (TypeIdx != 1) in narrowScalar()
877 return reduceOperationWidth(MI, TypeIdx, NarrowTy); in narrowScalar()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Serialization/
H A DASTCommon.h47 TypeIdx TypeIdxFromBuiltin(const BuiltinType *BT);
66 return TypeIdx(PREDEF_TYPE_AUTO_DEDUCT).asTypeID(FastQuals); in MakeTypeID()
68 return TypeIdx(PREDEF_TYPE_AUTO_RREF_DEDUCT).asTypeID(FastQuals); in MakeTypeID()
H A DASTCommon.cpp25 serialization::TypeIdx
270 return TypeIdx(ID); in TypeIdxFromBuiltin()
H A DASTWriter.cpp2857 TypeIdx &IdxRef = TypeIdxs[T]; in WriteType()
2859 IdxRef = TypeIdx(NextTypeID++); in WriteType()
2860 TypeIdx Idx = IdxRef; in WriteType()
5175 return MakeTypeID(*Context, T, [&](QualType T) -> TypeIdx { in GetOrCreateTypeID()
5177 return TypeIdx(); in GetOrCreateTypeID()
5180 TypeIdx &Idx = TypeIdxs[T]; in GetOrCreateTypeID()
5184 return TypeIdx(); in GetOrCreateTypeID()
5189 Idx = TypeIdx(NextTypeID++); in GetOrCreateTypeID()
5198 return MakeTypeID(*Context, T, [&](QualType T) -> TypeIdx { in getTypeID()
5200 return TypeIdx(); in getTypeID()
[all …]
H A DASTReader.cpp7080 DeserializationListener->TypeRead(TypeIdx::fromTypeID(ID), in GetType()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Serialization/
H A DASTBitCodes.h88 class TypeIdx {
92 TypeIdx() = default;
93 explicit TypeIdx(uint32_t index) : Idx(index) {} in TypeIdx() function
104 static TypeIdx fromTypeID(TypeID ID) { in fromTypeID()
106 return TypeIdx(-1); in fromTypeID()
108 return TypeIdx(ID >> Qualifiers::FastWidth); in fromTypeID()
H A DASTDeserializationListener.h45 virtual void TypeRead(serialization::TypeIdx Idx, QualType T) { } in TypeRead()
H A DASTWriter.h119 using TypeIdxMap = llvm::DenseMap<QualType, serialization::TypeIdx,
722 void TypeRead(serialization::TypeIdx Idx, QualType T) override;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPULegalizerInfo.cpp65 static LegalityPredicate isSmallOddVector(unsigned TypeIdx) { in isSmallOddVector() argument
67 const LLT Ty = Query.Types[TypeIdx]; in isSmallOddVector()
79 static LegalityPredicate sizeIsMultipleOf32(unsigned TypeIdx) { in sizeIsMultipleOf32() argument
81 const LLT Ty = Query.Types[TypeIdx]; in sizeIsMultipleOf32()
86 static LegalityPredicate isWideVec16(unsigned TypeIdx) { in isWideVec16() argument
88 const LLT Ty = Query.Types[TypeIdx]; in isWideVec16()
94 static LegalizeMutation oneMoreElement(unsigned TypeIdx) { in oneMoreElement() argument
96 const LLT Ty = Query.Types[TypeIdx]; in oneMoreElement()
98 return std::make_pair(TypeIdx, LLT::vector(Ty.getNumElements() + 1, EltTy)); in oneMoreElement()
102 static LegalizeMutation fewerEltsToSize64Vector(unsigned TypeIdx) { in fewerEltsToSize64Vector() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Frontend/
H A DMultiplexConsumer.h37 void TypeRead(serialization::TypeIdx Idx, QualType T) override;
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/
H A DMultiplexConsumer.cpp47 serialization::TypeIdx Idx, QualType T) { in TypeRead()
H A DFrontendAction.cpp65 void TypeRead(serialization::TypeIdx Idx, QualType T) override { in TypeRead()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DMachineVerifier.cpp907 size_t TypeIdx = MCID.OpInfo[I].getGenericTypeIndex(); in verifyPreISelGenericInstruction() local
908 Types.resize(std::max(TypeIdx + 1, Types.size())); in verifyPreISelGenericInstruction()
922 if (!Types[TypeIdx].isValid()) in verifyPreISelGenericInstruction()
923 Types[TypeIdx] = OpTy; in verifyPreISelGenericInstruction()
924 else if (Types[TypeIdx] != OpTy) in verifyPreISelGenericInstruction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/GISel/
H A DAArch64LegalizerInfo.cpp529 auto notValidElt = [](const LegalityQuery &Query, unsigned TypeIdx) { in AArch64LegalizerInfo() argument
530 const LLT &Ty = Query.Types[TypeIdx]; in AArch64LegalizerInfo()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaTemplate.cpp3198 for (unsigned TypeIdx = 0, NumTypes = NestedTypes.size(); TypeIdx != NumTypes; in MatchTemplateParametersToScopeSpecifier() local
3199 ++TypeIdx) { in MatchTemplateParametersToScopeSpecifier()
3200 T = NestedTypes[TypeIdx]; in MatchTemplateParametersToScopeSpecifier()
3241 TypeIdx == NumTypes - 1) in MatchTemplateParametersToScopeSpecifier()
3277 if (TypeIdx == NumTypes - 1) in MatchTemplateParametersToScopeSpecifier()