Home
last modified time | relevance | path

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

/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()
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 DLegacyLegalizerInfo.cpp110 for (unsigned TypeIdx = 0; TypeIdx != SpecifiedActions[OpcodeIdx].size(); in computeTables()
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, ElementSiz in computeTables()
107 for (unsigned TypeIdx = 0; TypeIdx != SpecifiedActions[OpcodeIdx].size(); computeTables() local
336 const unsigned TypeIdx = Aspect.Idx; findVectorLegalAction() local
[all...]
H A DLegalizerInfo.cpp124 const unsigned TypeIdx = Mutation.first; in mutationIsSane() local
125 const LLT OldTy = Q.Types[TypeIdx]; in mutationIsSane()
259 unsigned TypeIdx) { in getTypeFromTypeIdx() argument
260 assert(TypeIdx < MI.getNumOperands() && "Unexpected TypeIdx"); in getTypeFromTypeIdx()
264 if (MI.getOpcode() == TargetOpcode::G_UNMERGE_VALUES && TypeIdx == 1) in getTypeFromTypeIdx()
345 unsigned TypeIdx = OpInfo[i].getGenericTypeIndex(); in getAction() local
346 if (SeenTypes[TypeIdx]) in getAction()
349 SeenTypes.set(TypeIdx); in getAction()
351 LLT Ty = getTypeFromTypeIdx(MI, MRI, i, TypeIdx); in getAction()
H A DLegalizerHelper.cpp136 return narrowScalar(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
139 return widenScalar(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
142 return bitcast(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
145 return lower(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
148 return fewerElementsVector(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
151 return moreElementsVector(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
1221 unsigned TypeIdx, in narrowScalar() argument
1299 return narrowScalarExt(MI, TypeIdx, NarrowTy); in narrowScalar()
1301 if (TypeIdx != 1) in narrowScalar()
1317 if (TypeIdx != 0) in narrowScalar()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerInfo.h147 unsigned TypeIdx; member
151 LegalizeActionStep(LegalizeAction Action, unsigned TypeIdx, in LegalizeActionStep()
153 : Action(Action), TypeIdx(TypeIdx), NewType(NewType) {} in LegalizeActionStep()
156 : TypeIdx(Step.TypeIdx), NewType(Step.NewType) { in LegalizeActionStep()
195 return std::tie(Action, TypeIdx, NewType) ==
196 std::tie(RHS.Action, RHS.TypeIdx, RHS.NewType);
259 LegalityPredicate typeIs(unsigned TypeIdx, LLT TypesInit);
261 LegalityPredicate typeInSet(unsigned TypeIdx,
265 inline LegalityPredicate typeIsNot(unsigned TypeIdx, LLT Type) { in typeIsNot() argument
267 return Query.Types[TypeIdx] != Type; in typeIsNot()
[all …]
H A DLegalizerHelper.h102 LegalizeResult narrowScalar(MachineInstr &MI, unsigned TypeIdx, LLT NarrowTy);
107 LegalizeResult widenScalar(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
110 LegalizeResult bitcast(MachineInstr &MI, unsigned TypeIdx, LLT Ty);
114 LegalizeResult lower(MachineInstr &MI, unsigned TypeIdx, LLT Ty);
118 LegalizeResult fewerElementsVector(MachineInstr &MI, unsigned TypeIdx,
123 LegalizeResult moreElementsVector(MachineInstr &MI, unsigned TypeIdx,
176 widenScalarMergeValues(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
178 widenScalarUnmergeValues(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
180 widenScalarExtract(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
182 widenScalarInsert(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
[all …]
H A DLegacyLegalizerInfo.h105 unsigned TypeIdx; member
110 unsigned TypeIdx, const LLT NewType) in LegacyLegalizeActionStep()
111 : Action(Action), TypeIdx(TypeIdx), NewType(NewType) {} in LegacyLegalizeActionStep()
114 return std::tie(Action, TypeIdx, NewType) ==
115 std::tie(RHS.Action, RHS.TypeIdx, RHS.NewType);
181 const unsigned TypeIdx, in setLegalizeScalarToDifferentSizeStrategy() argument
184 if (ScalarSizeChangeStrategies[OpcodeIdx].size() <= TypeIdx) in setLegalizeScalarToDifferentSizeStrategy()
185 ScalarSizeChangeStrategies[OpcodeIdx].resize(TypeIdx + 1); in setLegalizeScalarToDifferentSizeStrategy()
186 ScalarSizeChangeStrategies[OpcodeIdx][TypeIdx] = S; in setLegalizeScalarToDifferentSizeStrategy()
192 const unsigned TypeIdx, in setLegalizeVectorElementToDifferentSizeStrategy() argument
[all …]
H A DGIMatchTableExecutorImpl.h753 int TypeIdx = readS8(); in executeMatchTable() local
758 << "), TypeIdx=" << TypeIdx << ")\n"); in executeMatchTable()
760 assert(TypeIdx < 0 && "Temp types always have negative indexes!"); in executeMatchTable()
762 TypeIdx = 1 - TypeIdx; in executeMatchTable()
764 if (State.RecordedTypes.size() <= (uint64_t)TypeIdx) in executeMatchTable()
765 State.RecordedTypes.resize(TypeIdx + 1, LLT()); in executeMatchTable()
766 State.RecordedTypes[TypeIdx] = MRI.getType(Op.getReg()); in executeMatchTable()
H A DLegalizationArtifactCombiner.h1098 if (ActionStep.TypeIdx == 1) in tryCombineUnmergeValues()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVLegalizerInfo.cpp34 static LegalityPredicate typeIsScalarFPArith(unsigned TypeIdx, in typeIsScalarFPArith() argument
37 return Query.Types[TypeIdx].isScalar() && in typeIsScalarFPArith()
38 ((ST.hasStdExtZfh() && Query.Types[TypeIdx].getSizeInBits() == 16) || in typeIsScalarFPArith()
39 (ST.hasStdExtF() && Query.Types[TypeIdx].getSizeInBits() == 32) || in typeIsScalarFPArith()
40 (ST.hasStdExtD() && Query.Types[TypeIdx].getSizeInBits() == 64)); in typeIsScalarFPArith()
45 typeIsLegalIntOrFPVec(unsigned TypeIdx, in typeIsLegalIntOrFPVec() argument
50 (Query.Types[TypeIdx].getScalarSizeInBits() != 64 || in typeIsLegalIntOrFPVec()
52 (Query.Types[TypeIdx].getElementCount().getKnownMinValue() != 1 || in typeIsLegalIntOrFPVec()
56 return all(typeInSet(TypeIdx, IntOrFPVecTys), P); in typeIsLegalIntOrFPVec()
60 typeIsLegalBoolVec(unsigned TypeIdx, std::initializer_list<LLT> BoolVecTys, in typeIsLegalBoolVec() argument
[all …]
/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.h45 virtual void TypeRead(serialization::TypeIdx Idx, QualType T) { } in TypeRead()
H A DASTWriter.h108 using TypeIdxMap = llvm::DenseMap<QualType, serialization::TypeIdx,
871 void TypeRead(serialization::TypeIdx Idx, QualType T) override;
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/
H A DPPCLegalizerInfo.cpp23 static LegalityPredicate isRegisterType(unsigned TypeIdx) { in isRegisterType() argument
25 const LLT QueryTy = Query.Types[TypeIdx]; in isRegisterType()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTCommon.h47 TypeIdx TypeIdxFromBuiltin(const BuiltinType *BT);
H A DASTCommon.cpp25 serialization::TypeIdx
286 return TypeIdx(0, ID); in TypeIdxFromBuiltin()
H A DASTWriter.cpp3277 TypeIdx &IdxRef = TypeIdxs[T]; in WriteType()
3279 IdxRef = TypeIdx(0, NextTypeID++); in WriteType()
3280 TypeIdx Idx = IdxRef; in WriteType()
6183 return TypeIdx(0, PREDEF_TYPE_AUTO_DEDUCT).asTypeID(FastQuals); in MakeTypeID()
6185 return TypeIdx(0, PREDEF_TYPE_AUTO_RREF_DEDUCT).asTypeID(FastQuals); in MakeTypeID()
6192 return MakeTypeID(*Context, T, [&](QualType T) -> TypeIdx { in GetOrCreateTypeID()
6194 return TypeIdx(); in GetOrCreateTypeID()
6197 TypeIdx &Idx = TypeIdxs[T]; in GetOrCreateTypeID()
6201 return TypeIdx(); in GetOrCreateTypeID()
6206 Idx = TypeIdx(0, NextTypeID++); in GetOrCreateTypeID()
[all …]
H A DASTReader.cpp7459 DeserializationListener->TypeRead(TypeIdx::fromTypeID(ID), in GetType()
/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/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()
H A DFrontendAction.cpp79 void TypeRead(serialization::TypeIdx Idx, QualType T) override { in TypeRead()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineVerifier.cpp1095 size_t TypeIdx = MCID.operands()[I].getGenericTypeIndex(); in verifyPreISelGenericInstruction() local
1096 Types.resize(std::max(TypeIdx + 1, Types.size())); in verifyPreISelGenericInstruction()
1110 if (!Types[TypeIdx].isValid()) in verifyPreISelGenericInstruction()
1111 Types[TypeIdx] = OpTy; in verifyPreISelGenericInstruction()
1112 else if (Types[TypeIdx] != OpTy) in verifyPreISelGenericInstruction()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplate.cpp2818 for (unsigned TypeIdx = 0, NumTypes = NestedTypes.size(); TypeIdx != NumTypes; in MatchTemplateParametersToScopeSpecifier() local
2819 ++TypeIdx) { in MatchTemplateParametersToScopeSpecifier()
2820 T = NestedTypes[TypeIdx]; in MatchTemplateParametersToScopeSpecifier()
2861 TypeIdx == NumTypes - 1) in MatchTemplateParametersToScopeSpecifier()
2897 if (TypeIdx == NumTypes - 1) in MatchTemplateParametersToScopeSpecifier()