Home
last modified time | relevance | path

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

12

/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
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 …]
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()
68 LegalityPredicate LegalityPredicates::isScalar(unsigned TypeIdx) { in isScalar() argument
70 return Query.Types[TypeIdx].isScalar(); in isScalar()
74 LegalityPredicate LegalityPredicates::isVector(unsigned TypeIdx) { in isVector() argument
76 return Query.Types[TypeIdx].isVector(); in isVector()
80 LegalityPredicate LegalityPredicates::isPointer(unsigned TypeIdx) { in isPointer() argument
82 return Query.Types[TypeIdx].isPointer(); in isPointer()
[all …]
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 …]
DLegalizerHelper.cpp124 return narrowScalar(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
127 return widenScalar(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
130 return bitcast(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
133 return lower(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
136 return fewerElementsVector(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
139 return moreElementsVector(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
768 unsigned TypeIdx, in narrowScalar() argument
846 return narrowScalarExt(MI, TypeIdx, NarrowTy); in narrowScalar()
848 if (TypeIdx != 1) in narrowScalar()
864 return reduceOperationWidth(MI, TypeIdx, NarrowTy); in narrowScalar()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
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 …]
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 std::find(Types.begin(), Types.end(), Query.Types[TypeIdx]) != Types.end(); in typeInSet()
68 LegalityPredicate LegalityPredicates::isScalar(unsigned TypeIdx) { in isScalar() argument
70 return Query.Types[TypeIdx].isScalar(); in isScalar()
74 LegalityPredicate LegalityPredicates::isVector(unsigned TypeIdx) { in isVector() argument
76 return Query.Types[TypeIdx].isVector(); in isVector()
80 LegalityPredicate LegalityPredicates::isPointer(unsigned TypeIdx) { in isPointer() argument
82 return Query.Types[TypeIdx].isPointer(); in isPointer()
[all …]
DLegalizerInfo.cpp125 const unsigned TypeIdx = Mutation.first; in mutationIsSane() local
126 const LLT OldTy = Q.Types[TypeIdx]; in mutationIsSane()
291 for (unsigned TypeIdx = 0; TypeIdx != SpecifiedActions[OpcodeIdx].size(); in computeTables() local
292 ++TypeIdx) { in computeTables()
301 for (auto LLT2Action : SpecifiedActions[OpcodeIdx][TypeIdx]) { in computeTables()
321 if (TypeIdx < ScalarSizeChangeStrategies[OpcodeIdx].size() && in computeTables()
322 ScalarSizeChangeStrategies[OpcodeIdx][TypeIdx] != nullptr) in computeTables()
323 S = ScalarSizeChangeStrategies[OpcodeIdx][TypeIdx]; in computeTables()
326 setScalarAction(Opcode, TypeIdx, S(ScalarSpecifiedActions)); in computeTables()
336 Opcode, TypeIdx, PointerSpecifiedActions.first, in computeTables()
[all …]
DLegalizerHelper.cpp100 return narrowScalar(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
103 return widenScalar(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
106 return lower(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
109 return fewerElementsVector(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
112 return moreElementsVector(MI, Step.TypeIdx, Step.NewType); in legalizeInstrStep()
598 unsigned TypeIdx, in narrowScalar() argument
661 if (TypeIdx != 0) in narrowScalar()
684 if (TypeIdx != 0) in narrowScalar()
704 if (TypeIdx != 1) in narrowScalar()
790 return narrowScalarExtract(MI, TypeIdx, NarrowTy); in narrowScalar()
[all …]
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
DLegalizerInfo.h155 unsigned TypeIdx; member
159 LegalizeActionStep(LegalizeAction Action, unsigned TypeIdx, in LegalizeActionStep()
161 : Action(Action), TypeIdx(TypeIdx), NewType(NewType) {} in LegalizeActionStep()
164 return std::tie(Action, TypeIdx, NewType) ==
165 std::tie(RHS.Action, RHS.TypeIdx, RHS.NewType);
222 LegalityPredicate typeIs(unsigned TypeIdx, LLT TypesInit);
224 LegalityPredicate typeInSet(unsigned TypeIdx,
228 inline LegalityPredicate typeIsNot(unsigned TypeIdx, LLT Type) { in typeIsNot() argument
230 return Query.Types[TypeIdx] != Type; in typeIsNot()
245 LegalityPredicate isScalar(unsigned TypeIdx);
[all …]
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 …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DLegalizerHelper.h70 LegalizeResult narrowScalar(MachineInstr &MI, unsigned TypeIdx, LLT NarrowTy);
75 LegalizeResult widenScalar(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
79 LegalizeResult lower(MachineInstr &MI, unsigned TypeIdx, LLT Ty);
83 LegalizeResult fewerElementsVector(MachineInstr &MI, unsigned TypeIdx,
88 LegalizeResult moreElementsVector(MachineInstr &MI, unsigned TypeIdx,
133 widenScalarMergeValues(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
135 widenScalarUnmergeValues(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
137 widenScalarExtract(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
139 widenScalarInsert(MachineInstr &MI, unsigned TypeIdx, LLT WideTy);
175 unsigned TypeIdx, LLT NarrowTy);
[all …]
DLegalizerInfo.h151 unsigned TypeIdx; member
155 LegalizeActionStep(LegalizeAction Action, unsigned TypeIdx, in LegalizeActionStep()
157 : Action(Action), TypeIdx(TypeIdx), NewType(NewType) {} in LegalizeActionStep()
160 return std::tie(Action, TypeIdx, NewType) ==
161 std::tie(RHS.Action, RHS.TypeIdx, RHS.NewType);
204 LegalityPredicate typeIs(unsigned TypeIdx, LLT TypesInit);
206 LegalityPredicate typeInSet(unsigned TypeIdx,
219 LegalityPredicate isScalar(unsigned TypeIdx);
221 LegalityPredicate isVector(unsigned TypeIdx);
223 LegalityPredicate isPointer(unsigned TypeIdx);
[all …]
/external/clang/lib/Serialization/
DASTCommon.h45 TypeIdx TypeIdxFromBuiltin(const BuiltinType *BT);
64 return TypeIdx(PREDEF_TYPE_AUTO_DEDUCT).asTypeID(FastQuals); in MakeTypeID()
66 return TypeIdx(PREDEF_TYPE_AUTO_RREF_DEDUCT).asTypeID(FastQuals); in MakeTypeID()
DASTCommon.cpp26 serialization::TypeIdx
164 return TypeIdx(ID); in TypeIdxFromBuiltin()
/external/llvm-project/clang/lib/Serialization/
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()
DASTCommon.cpp25 serialization::TypeIdx
265 return TypeIdx(ID); in TypeIdxFromBuiltin()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULegalizerInfo.cpp42 static LegalityPredicate isMultiple32(unsigned TypeIdx, in isMultiple32() argument
45 const LLT Ty = Query.Types[TypeIdx]; in isMultiple32()
51 static LegalityPredicate sizeIs(unsigned TypeIdx, unsigned Size) { in sizeIs() argument
53 return Query.Types[TypeIdx].getSizeInBits() == Size; in sizeIs()
57 static LegalityPredicate isSmallOddVector(unsigned TypeIdx) { in isSmallOddVector() argument
59 const LLT Ty = Query.Types[TypeIdx]; in isSmallOddVector()
67 static LegalityPredicate isWideVec16(unsigned TypeIdx) { in isWideVec16() argument
69 const LLT Ty = Query.Types[TypeIdx]; in isWideVec16()
75 static LegalizeMutation oneMoreElement(unsigned TypeIdx) { in oneMoreElement() argument
77 const LLT Ty = Query.Types[TypeIdx]; in oneMoreElement()
[all …]
/external/clang/include/clang/Serialization/
DASTBitCodes.h83 class TypeIdx {
86 TypeIdx() : Idx(0) { } in TypeIdx() function
87 explicit TypeIdx(uint32_t index) : Idx(index) { } in TypeIdx() function
96 static TypeIdx fromTypeID(TypeID ID) { in fromTypeID()
98 return TypeIdx(-1); in fromTypeID()
100 return TypeIdx(ID >> Qualifiers::FastWidth); in fromTypeID()
DASTDeserializationListener.h45 virtual void TypeRead(serialization::TypeIdx Idx, QualType T) { } in TypeRead()
/external/llvm-project/clang/include/clang/Serialization/
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()
DASTDeserializationListener.h45 virtual void TypeRead(serialization::TypeIdx Idx, QualType T) { } in TypeRead()
DASTWriter.h118 using TypeIdxMap = llvm::DenseMap<QualType, serialization::TypeIdx,
714 void TypeRead(serialization::TypeIdx Idx, QualType T) override;
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPULegalizerInfo.cpp67 static LegalityPredicate isSmallOddVector(unsigned TypeIdx) { in isSmallOddVector() argument
69 const LLT Ty = Query.Types[TypeIdx]; in isSmallOddVector()
81 static LegalityPredicate sizeIsMultipleOf32(unsigned TypeIdx) { in sizeIsMultipleOf32() argument
83 const LLT Ty = Query.Types[TypeIdx]; in sizeIsMultipleOf32()
88 static LegalityPredicate isWideVec16(unsigned TypeIdx) { in isWideVec16() argument
90 const LLT Ty = Query.Types[TypeIdx]; in isWideVec16()
96 static LegalizeMutation oneMoreElement(unsigned TypeIdx) { in oneMoreElement() argument
98 const LLT Ty = Query.Types[TypeIdx]; in oneMoreElement()
100 return std::make_pair(TypeIdx, LLT::vector(Ty.getNumElements() + 1, EltTy)); in oneMoreElement()
104 static LegalizeMutation fewerEltsToSize64Vector(unsigned TypeIdx) { in fewerEltsToSize64Vector() argument
[all …]
/external/llvm-project/clang/include/clang/Frontend/
DMultiplexConsumer.h37 void TypeRead(serialization::TypeIdx Idx, QualType T) override;
/external/clang/lib/Frontend/
DMultiplexConsumer.cpp37 void TypeRead(serialization::TypeIdx Idx, QualType T) override;
72 serialization::TypeIdx Idx, QualType T) { in TypeRead()

12