Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizeMutations.cpp22 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()
41 const LLT OldTy = Query.Types[TypeIdx]; in changeElementTo()
49 const LLT OldTy = Query.Types[TypeIdx]; in changeElementSizeTo()
59 const LLT Ty = Query.Types[TypeIdx]; in widenScalarOrEltToNextPow2()
69 const LLT VecTy = Query.Types[TypeIdx]; in moreElementsToNextPow2()
77 LegalizeMutation LegalizeMutations::scalarize(unsigned TypeIdx) { in scalarize() argument
[all …]
H A DLegalityPredicates.cpp34 LegalityPredicates::typeInSet(unsigned TypeIdx, in typeInSet() argument
69 return Query.Types[TypeIdx].isScalar(); in isScalar()
75 return Query.Types[TypeIdx].isVector(); in isVector()
81 return Query.Types[TypeIdx].isPointer(); in isPointer()
88 LLT Ty = Query.Types[TypeIdx]; in isPointer()
96 const LLT QueryTy = Query.Types[TypeIdx]; in elementTypeIs()
104 const LLT QueryTy = Query.Types[TypeIdx]; in scalarNarrowerThan()
112 const LLT QueryTy = Query.Types[TypeIdx]; in scalarWiderThan()
136 const LLT QueryTy = Query.Types[TypeIdx]; in scalarOrEltNarrowerThan()
144 const LLT QueryTy = Query.Types[TypeIdx]; in scalarOrEltWiderThan()
[all …]
H A DLegacyLegalizerInfo.cpp107 for (unsigned TypeIdx = 0; TypeIdx != SpecifiedActions[OpcodeIdx].size(); in computeTables() local
108 ++TypeIdx) { in computeTables()
117 for (auto LLT2Action : SpecifiedActions[OpcodeIdx][TypeIdx]) { in computeTables()
139 S = ScalarSizeChangeStrategies[OpcodeIdx][TypeIdx]; in computeTables()
152 Opcode, TypeIdx, PointerSpecifiedActions.first, in computeTables()
174 Opcode, TypeIdx, ElementSize, in computeTables()
183 VectorElementSizeChangeStrategies[OpcodeIdx][TypeIdx]; in computeTables()
336 const unsigned TypeIdx = Aspect.Idx; in findVectorLegalAction() local
337 if (TypeIdx >= ScalarInVectorActions[OpcodeIdx].size()) in findVectorLegalAction()
340 ScalarInVectorActions[OpcodeIdx][TypeIdx]; in findVectorLegalAction()
[all …]
H A DLegalizerInfo.cpp124 const unsigned TypeIdx = Mutation.first; in mutationIsSane() local
125 const LLT OldTy = Q.Types[TypeIdx]; in mutationIsSane()
257 unsigned TypeIdx) { in getTypeFromTypeIdx() argument
258 assert(TypeIdx < MI.getNumOperands() && "Unexpected TypeIdx"); in getTypeFromTypeIdx()
262 if (MI.getOpcode() == TargetOpcode::G_UNMERGE_VALUES && TypeIdx == 1) in getTypeFromTypeIdx()
343 unsigned TypeIdx = OpInfo[i].getGenericTypeIndex(); in getAction() local
344 if (SeenTypes[TypeIdx]) in getAction()
347 SeenTypes.set(TypeIdx); in getAction()
349 LLT Ty = getTypeFromTypeIdx(MI, MRI, i, TypeIdx); in getAction()
H A DLegalizerHelper.cpp1423 if (TypeIdx != 1) in widenScalarMergeValues()
1579 if (TypeIdx != 0) in widenScalarUnmergeValues()
1798 if (TypeIdx == 1) in widenScalarAddSubOverflow()
1916 if (TypeIdx == 1) in widenScalarMulo()
2680 if (TypeIdx != 1) in bitcastExtractVectorElt()
2820 if (TypeIdx != 0) in bitcastInsertVectorElt()
3521 if (TypeIdx != 0) in fewerElementsVectorMultiEltType()
3603 if (TypeIdx != 0) in fewerElementsVectorCasts()
3859 if (TypeIdx != 1) in fewerElementsVectorUnmergeValues()
4064 if (TypeIdx != 0) in reduceLoadStoreWidth()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerInfo.h138 unsigned TypeIdx; member
144 : Action(Action), TypeIdx(TypeIdx), NewType(NewType) {} in LegalizeActionStep()
147 : TypeIdx(Step.TypeIdx), NewType(Step.NewType) { in LegalizeActionStep()
409 assert(TypeIdx <= in typeIdx()
415 return TypeIdx; in typeIdx()
929 return minScalar(TypeIdx, MinTy).maxScalar(TypeIdx, MaxTy); in clampScalar()
940 typeIdx(TypeIdx); in minScalarSameAs()
951 typeIdx(TypeIdx); in maxScalarSameAs()
970 typeIdx(TypeIdx); in minScalarEltSameAsIf()
987 typeIdx(TypeIdx); in maxScalarEltSameAsIf()
[all …]
H A DLegalizerHelper.h99 LegalizeResult bitcast(MachineInstr &MI, unsigned TypeIdx, LLT Ty);
103 LegalizeResult lower(MachineInstr &MI, unsigned TypeIdx, LLT Ty);
107 LegalizeResult fewerElementsVector(MachineInstr &MI, unsigned TypeIdx,
112 LegalizeResult moreElementsVector(MachineInstr &MI, unsigned TypeIdx,
169 widenScalarMergeValues(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
173 widenScalarExtract(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
175 widenScalarInsert(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
180 LegalizeResult widenScalarMulo(MachineInstr &MI, unsigned TypeIdx,
301 unsigned TypeIdx,
312 LegalizeResult reduceLoadStoreWidth(GLoadStore &MI, unsigned TypeIdx,
[all …]
H A DLegacyLegalizerInfo.h104 unsigned TypeIdx; member
109 unsigned TypeIdx, const LLT NewType) in LegacyLegalizeActionStep()
110 : Action(Action), TypeIdx(TypeIdx), NewType(NewType) {} in LegacyLegalizeActionStep()
113 return std::tie(Action, TypeIdx, NewType) ==
114 std::tie(RHS.Action, RHS.TypeIdx, RHS.NewType);
180 const unsigned TypeIdx, in setLegalizeScalarToDifferentSizeStrategy() argument
183 if (ScalarSizeChangeStrategies[OpcodeIdx].size() <= TypeIdx) in setLegalizeScalarToDifferentSizeStrategy()
184 ScalarSizeChangeStrategies[OpcodeIdx].resize(TypeIdx + 1); in setLegalizeScalarToDifferentSizeStrategy()
185 ScalarSizeChangeStrategies[OpcodeIdx][TypeIdx] = S; in setLegalizeScalarToDifferentSizeStrategy()
194 if (VectorElementSizeChangeStrategies[OpcodeIdx].size() <= TypeIdx) in setLegalizeVectorElementToDifferentSizeStrategy()
[all …]
H A DLegalizationArtifactCombiner.h812 if (ActionStep.TypeIdx == 1) in tryCombineUnmergeValues()
/freebsd-13.1/contrib/llvm-project/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()
5200 return TypeIdx(); in getTypeID()
5664 void ASTWriter::TypeRead(TypeIdx Idx, QualType T) { in TypeRead()
[all …]
H A DASTReader.cpp7102 DeserializationListener->TypeRead(TypeIdx::fromTypeID(ID), in GetType()
/freebsd-13.1/contrib/llvm-project/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;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULegalizerInfo.cpp67 const LLT Ty = Query.Types[TypeIdx]; in isSmallOddVector()
81 const LLT Ty = Query.Types[TypeIdx]; in sizeIsMultipleOf32()
88 const LLT Ty = Query.Types[TypeIdx]; in isWideVec16()
96 const LLT Ty = Query.Types[TypeIdx]; in oneMoreElement()
98 return std::make_pair(TypeIdx, in oneMoreElement()
105 const LLT Ty = Query.Types[TypeIdx]; in fewerEltsToSize64Vector()
111 TypeIdx, in fewerEltsToSize64Vector()
120 const LLT Ty = Query.Types[TypeIdx]; in moreEltsToNext32Bit()
149 const LLT Ty = Query.Types[TypeIdx]; in bitcastToRegisterType()
156 const LLT Ty = Query.Types[TypeIdx]; in bitcastToVectorElement32()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Frontend/
H A DMultiplexConsumer.h37 void TypeRead(serialization::TypeIdx Idx, QualType T) override;
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64LegalizerInfo.cpp547 auto notValidElt = [](const LegalityQuery &Query, unsigned TypeIdx) { in AArch64LegalizerInfo() argument
548 const LLT &Ty = Query.Types[TypeIdx]; in AArch64LegalizerInfo()
/freebsd-13.1/contrib/llvm-project/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()