Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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()
32 const LLT OldTy = Query.Types[TypeIdx]; in changeElementTo()
41 const LLT OldTy = Query.Types[TypeIdx]; in changeElementTo()
49 const LLT OldTy = Query.Types[TypeIdx]; in changeElementCountTo()
60 const LLT OldTy = Query.Types[TypeIdx]; in changeElementCountTo()
70 const LLT OldTy = Query.Types[TypeIdx]; in changeElementSizeTo()
80 const LLT Ty = Query.Types[TypeIdx]; in widenScalarOrEltToNextPow2()
91 const LLT Ty = Query.Types[TypeIdx]; in widenScalarOrEltToNextMultipleOf()
100 const LLT VecTy = Query.Types[TypeIdx]; in moreElementsToNextPow2()
[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.cpp121 const unsigned TypeIdx = Mutation.first; in mutationIsSane() local
122 const LLT OldTy = Q.Types[TypeIdx]; in mutationIsSane()
255 unsigned TypeIdx) { in getTypeFromTypeIdx() argument
256 assert(TypeIdx < MI.getNumOperands() && "Unexpected TypeIdx"); in getTypeFromTypeIdx()
260 if (MI.getOpcode() == TargetOpcode::G_UNMERGE_VALUES && TypeIdx == 1) in getTypeFromTypeIdx()
341 unsigned TypeIdx = OpInfo[i].getGenericTypeIndex(); in getAction() local
342 if (SeenTypes[TypeIdx]) in getAction()
345 SeenTypes.set(TypeIdx); in getAction()
347 LLT Ty = getTypeFromTypeIdx(MI, MRI, i, TypeIdx); in getAction()
H A DLegalizerHelper.cpp1498 if (TypeIdx != 1) in widenScalarMergeValues()
1620 if (TypeIdx != 0) in widenScalarUnmergeValues()
2725 if (TypeIdx != 1) in bitcastExtractVectorElt()
2865 if (TypeIdx != 0) in bitcastInsertVectorElt()
4020 if (TypeIdx != 0) in reduceLoadStoreWidth()
4256 if (TypeIdx != 0) in fewerElementsVectorShuffle()
4450 if (TypeIdx != 1) in fewerElementsVectorReductions()
4928 if (TypeIdx != 0) in moreElementsVectorShuffle()
5034 if (TypeIdx != 0) in narrowScalarAddSub()
5160 if (TypeIdx != 0) in narrowScalarFPTOI()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerInfo.h146 unsigned TypeIdx; member
152 : Action(Action), TypeIdx(TypeIdx), NewType(NewType) {} in LegalizeActionStep()
155 : TypeIdx(Step.TypeIdx), NewType(Step.NewType) { in LegalizeActionStep()
440 assert(TypeIdx <= in typeIdx()
446 return TypeIdx; in typeIdx()
993 return minScalar(TypeIdx, MinTy).maxScalar(TypeIdx, MaxTy); in clampScalar()
1004 typeIdx(TypeIdx); in minScalarSameAs()
1015 typeIdx(TypeIdx); in maxScalarSameAs()
1034 typeIdx(TypeIdx); in minScalarEltSameAsIf()
1051 typeIdx(TypeIdx); in maxScalarEltSameAsIf()
[all …]
H A DLegalizerHelper.h106 LegalizeResult bitcast(MachineInstr &MI, unsigned TypeIdx, LLT Ty);
110 LegalizeResult lower(MachineInstr &MI, unsigned TypeIdx, LLT Ty);
114 LegalizeResult fewerElementsVector(MachineInstr &MI, unsigned TypeIdx,
119 LegalizeResult moreElementsVector(MachineInstr &MI, unsigned TypeIdx,
172 widenScalarMergeValues(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
176 widenScalarExtract(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
178 widenScalarInsert(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
183 LegalizeResult widenScalarMulo(MachineInstr &MI, unsigned TypeIdx,
319 unsigned TypeIdx,
327 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.h855 if (ActionStep.TypeIdx == 1) in tryCombineUnmergeValues()
/llvm-project-15.0.7/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
273 return TypeIdx(ID); in TypeIdxFromBuiltin()
H A DASTWriter.cpp3045 TypeIdx &IdxRef = TypeIdxs[T]; in WriteType()
3047 IdxRef = TypeIdx(NextTypeID++); in WriteType()
3048 TypeIdx Idx = IdxRef; in WriteType()
5380 return MakeTypeID(*Context, T, [&](QualType T) -> TypeIdx { in GetOrCreateTypeID()
5382 return TypeIdx(); in GetOrCreateTypeID()
5385 TypeIdx &Idx = TypeIdxs[T]; in GetOrCreateTypeID()
5389 return TypeIdx(); in GetOrCreateTypeID()
5394 Idx = TypeIdx(NextTypeID++); in GetOrCreateTypeID()
5405 return TypeIdx(); in getTypeID()
5860 void ASTWriter::TypeRead(TypeIdx Idx, QualType T) { in TypeRead()
[all …]
H A DASTReader.cpp7156 DeserializationListener->TypeRead(TypeIdx::fromTypeID(ID), in GetType()
/llvm-project-15.0.7/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.h105 using TypeIdxMap = llvm::DenseMap<QualType, serialization::TypeIdx,
715 void TypeRead(serialization::TypeIdx Idx, QualType T) override;
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULegalizerInfo.cpp68 const LLT Ty = Query.Types[TypeIdx]; in isSmallOddVector()
82 const LLT Ty = Query.Types[TypeIdx]; in sizeIsMultipleOf32()
89 const LLT Ty = Query.Types[TypeIdx]; in isWideVec16()
97 const LLT Ty = Query.Types[TypeIdx]; in oneMoreElement()
99 return std::make_pair(TypeIdx, in oneMoreElement()
106 const LLT Ty = Query.Types[TypeIdx]; in fewerEltsToSize64Vector()
112 TypeIdx, in fewerEltsToSize64Vector()
121 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 …]
/llvm-project-15.0.7/clang/include/clang/Frontend/
H A DMultiplexConsumer.h37 void TypeRead(serialization::TypeIdx Idx, QualType T) override;
/llvm-project-15.0.7/clang/lib/Frontend/
H A DMultiplexConsumer.cpp47 serialization::TypeIdx Idx, QualType T) { in TypeRead()
H A DFrontendAction.cpp67 void TypeRead(serialization::TypeIdx Idx, QualType T) override { in TypeRead()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineVerifier.cpp944 size_t TypeIdx = MCID.OpInfo[I].getGenericTypeIndex(); in verifyPreISelGenericInstruction() local
945 Types.resize(std::max(TypeIdx + 1, Types.size())); in verifyPreISelGenericInstruction()
959 if (!Types[TypeIdx].isValid()) in verifyPreISelGenericInstruction()
960 Types[TypeIdx] = OpTy; in verifyPreISelGenericInstruction()
961 else if (Types[TypeIdx] != OpTy) in verifyPreISelGenericInstruction()
/llvm-project-15.0.7/llvm/unittests/CodeGen/GlobalISel/
H A DLegalizerInfoTest.cpp41 OS << "LegalizeActionStep(" << Ty.Action << ", " << Ty.TypeIdx << ", " in operator <<()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaTemplate.cpp3254 for (unsigned TypeIdx = 0, NumTypes = NestedTypes.size(); TypeIdx != NumTypes; in MatchTemplateParametersToScopeSpecifier() local
3255 ++TypeIdx) { in MatchTemplateParametersToScopeSpecifier()
3256 T = NestedTypes[TypeIdx]; in MatchTemplateParametersToScopeSpecifier()
3297 TypeIdx == NumTypes - 1) in MatchTemplateParametersToScopeSpecifier()
3333 if (TypeIdx == NumTypes - 1) in MatchTemplateParametersToScopeSpecifier()