/external/llvm-project/llvm/unittests/CodeGen/ |
D | LowLevelTypeTest.cpp | 25 const LLT Ty = LLT::scalar(S); in TEST() 54 const LLT STy = LLT::scalar(S); in TEST() 55 const LLT VTy = LLT::vector(Elts, S); in TEST() 59 const LLT VSTy = LLT::vector(Elts, STy); in TEST() 96 EXPECT_EQ(LLT::scalar(32), LLT::scalarOrVector(1, 32)); in TEST() 97 EXPECT_EQ(LLT::vector(2, 32), LLT::scalarOrVector(2, 32)); in TEST() 100 EXPECT_EQ(LLT::scalar(32), LLT::scalarOrVector(1, LLT::scalar(32))); in TEST() 101 EXPECT_EQ(LLT::vector(2, 32), LLT::scalarOrVector(2, LLT::scalar(32))); in TEST() 104 EXPECT_EQ(LLT::pointer(1, 32), LLT::scalarOrVector(1, LLT::pointer(1, 32))); in TEST() 105 EXPECT_EQ(LLT::vector(2, LLT::pointer(1, 32)), in TEST() [all …]
|
/external/llvm-project/llvm/unittests/CodeGen/GlobalISel/ |
D | LegalizerInfoTest.cpp | 54 L.setAction({Op, 0, LLT::scalar(Size)}, Legal); in TEST() 63 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(8)}}), in TEST() 64 LegalizeActionStep(WidenScalar, 0, LLT::scalar(32))); in TEST() 65 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(16)}}), in TEST() 66 LegalizeActionStep(WidenScalar, 0, LLT::scalar(32))); in TEST() 67 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(32)}}), in TEST() 68 LegalizeActionStep(Legal, 0, LLT{})); in TEST() 69 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(64)}}), in TEST() 70 LegalizeActionStep(Legal, 0, LLT{})); in TEST() 73 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(128)}}), in TEST() [all …]
|
D | GISelUtilsTest.cpp | 15 static const LLT S1 = LLT::scalar(1); 16 static const LLT S8 = LLT::scalar(8); 17 static const LLT S16 = LLT::scalar(16); 18 static const LLT S32 = LLT::scalar(32); 19 static const LLT S64 = LLT::scalar(64); 20 static const LLT P0 = LLT::pointer(0, 64); 21 static const LLT P1 = LLT::pointer(1, 32); 23 static const LLT V2S8 = LLT::vector(2, 8); 24 static const LLT V4S8 = LLT::vector(4, 8); 25 static const LLT V8S8 = LLT::vector(8, 8); [all …]
|
D | LegalizerHelperTest.cpp | 39 B.buildInstr(TargetOpcode::G_CTTZ, {LLT::scalar(32)}, {Copies[0]}); in TEST_F() 45 Helper.lower(*MIBCTTZ, 0, LLT::scalar(64))); in TEST_F() 71 B.buildInstr(TargetOpcode::G_CTTZ, {LLT::scalar(64)}, {Copies[0]}); in TEST_F() 76 EXPECT_TRUE(Helper.lower(*MIBCTTZ, 0, LLT::scalar(64)) == in TEST_F() 105 B.buildInstr(TargetOpcode::G_CTLZ, {LLT::scalar(32)}, {Copies[0]}); in TEST_F() 111 Helper.narrowScalar(*CTLZ, 1, LLT::scalar(32))); in TEST_F() 140 B.buildInstr(TargetOpcode::G_CTTZ, {LLT::scalar(32)}, {Copies[0]}); in TEST_F() 146 Helper.narrowScalar(*CTTZ, 1, LLT::scalar(32))); in TEST_F() 175 B.buildInstr(TargetOpcode::G_CTTZ, {LLT::scalar(64)}, {Copies[0]}); in TEST_F() 181 EXPECT_TRUE(Helper.lower(*MIBCTTZ, 0, LLT::scalar(64)) == in TEST_F() [all …]
|
D | MachineIRBuilderTest.cpp | 17 B.buildConstant(LLT::scalar(32), 42); in TEST_F() 18 B.buildFConstant(LLT::scalar(32), 1.0); in TEST_F() 20 B.buildConstant(LLT::vector(2, 32), 99); in TEST_F() 21 B.buildFConstant(LLT::vector(2, 32), 2.0); in TEST_F() 25 B.buildFConstant(LLT::scalar(64), KVal); in TEST_F() 52 EXPECT_DEATH(B.buildConstant(LLT::scalar(16), APV32), in TEST_F() 54 EXPECT_DEATH(B.buildConstant(LLT::vector(2, 16), APV32), in TEST_F() 59 EXPECT_DEATH(B.buildConstant(LLT::scalar(16), *CI), in TEST_F() 61 EXPECT_DEATH(B.buildConstant(LLT::vector(2, 16), *CI), in TEST_F() 66 EXPECT_DEATH(B.buildFConstant(LLT::scalar(16), *CF), in TEST_F() [all …]
|
D | PatternMatchTest.cpp | 37 auto MIBCst = B.buildConstant(LLT::scalar(64), 42); in TEST_F() 48 LLT s32 = LLT::scalar(32); in TEST_F() 49 LLT s64 = LLT::scalar(64); in TEST_F() 155 const LLT s1 = LLT::scalar(1); in TEST_F() 180 const LLT s1 = LLT::scalar(1); in TEST_F() 206 LLT s32 = LLT::scalar(32); in TEST_F() 236 LLT s64 = LLT::scalar(64); in TEST_F() 248 LLT s16 = LLT::scalar(16); in TEST_F() 267 LLT s64 = LLT::scalar(64); in TEST_F() 268 LLT s32 = LLT::scalar(32); in TEST_F() [all …]
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86LegalizerInfo.cpp | 75 .minScalar(0, LLT::scalar(32)) in X86LegalizerInfo() 102 const LLT p0 = LLT::pointer(0, TM.getPointerSizeInBits(0)); in setLegalizerInfo32bit() 103 const LLT s1 = LLT::scalar(1); in setLegalizerInfo32bit() 104 const LLT s8 = LLT::scalar(8); in setLegalizerInfo32bit() 105 const LLT s16 = LLT::scalar(16); in setLegalizerInfo32bit() 106 const LLT s32 = LLT::scalar(32); in setLegalizerInfo32bit() 107 const LLT s64 = LLT::scalar(64); in setLegalizerInfo32bit() 108 const LLT s128 = LLT::scalar(128); in setLegalizerInfo32bit() 197 const LLT p0 = LLT::pointer(0, TM.getPointerSizeInBits(0)); in setLegalizerInfo64bit() 198 const LLT s1 = LLT::scalar(1); in setLegalizerInfo64bit() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86LegalizerInfo.cpp | 108 const LLT p0 = LLT::pointer(0, TM.getPointerSizeInBits(0)); in setLegalizerInfo32bit() 109 const LLT s1 = LLT::scalar(1); in setLegalizerInfo32bit() 110 const LLT s8 = LLT::scalar(8); in setLegalizerInfo32bit() 111 const LLT s16 = LLT::scalar(16); in setLegalizerInfo32bit() 112 const LLT s32 = LLT::scalar(32); in setLegalizerInfo32bit() 113 const LLT s64 = LLT::scalar(64); in setLegalizerInfo32bit() 114 const LLT s128 = LLT::scalar(128); in setLegalizerInfo32bit() 204 const LLT p0 = LLT::pointer(0, TM.getPointerSizeInBits(0)); in setLegalizerInfo64bit() 205 const LLT s1 = LLT::scalar(1); in setLegalizerInfo64bit() 206 const LLT s8 = LLT::scalar(8); in setLegalizerInfo64bit() [all …]
|
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
D | LegalizerHelper.h | 88 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); 105 LLT NarrowTy); 110 LLT MoreTy); 123 void widenScalarSrc(MachineInstr &MI, LLT WideTy, unsigned OpIdx, 129 void narrowScalarSrc(MachineInstr &MI, LLT NarrowTy, unsigned OpIdx); 134 void widenScalarDst(MachineInstr &MI, LLT WideTy, unsigned OpIdx = 0, 140 void narrowScalarDst(MachineInstr &MI, LLT NarrowTy, unsigned OpIdx, [all …]
|
D | LegalizerInfo.h | 110 LLT Type; 112 InstrAspect(unsigned Opcode, LLT Type) : Opcode(Opcode), Type(Type) {} in InstrAspect() 113 InstrAspect(unsigned Opcode, unsigned Idx, LLT Type) in InstrAspect() 127 ArrayRef<LLT> Types; 139 constexpr LegalityQuery(unsigned Opcode, const ArrayRef<LLT> Types, in LegalityQuery() 142 constexpr LegalityQuery(unsigned Opcode, const ArrayRef<LLT> Types) in LegalityQuery() 157 LLT NewType; 160 const LLT NewType) in LegalizeActionStep() 171 std::function<std::pair<unsigned, LLT>(const LegalityQuery &)>; 175 LLT Type0; [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/ |
D | LegalizerHelper.h | 70 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); 84 LLT NarrowTy); 89 LLT MoreTy); 103 void widenScalarSrc(MachineInstr &MI, LLT WideTy, unsigned OpIdx, 109 void narrowScalarSrc(MachineInstr &MI, LLT NarrowTy, unsigned OpIdx); 114 void widenScalarDst(MachineInstr &MI, LLT WideTy, unsigned OpIdx = 0, 120 void narrowScalarDst(MachineInstr &MI, LLT NarrowTy, unsigned OpIdx, 125 void moreElementsVectorDst(MachineInstr &MI, LLT MoreTy, unsigned OpIdx); [all …]
|
D | LegalizerInfo.h | 106 LLT Type; 108 InstrAspect(unsigned Opcode, LLT Type) : Opcode(Opcode), Type(Type) {} in InstrAspect() 109 InstrAspect(unsigned Opcode, unsigned Idx, LLT Type) in InstrAspect() 123 ArrayRef<LLT> Types; 135 constexpr LegalityQuery(unsigned Opcode, const ArrayRef<LLT> Types, in LegalityQuery() 138 constexpr LegalityQuery(unsigned Opcode, const ArrayRef<LLT> Types) in LegalityQuery() 153 LLT NewType; 156 const LLT &NewType) in LegalizeActionStep() 167 std::function<std::pair<unsigned, LLT>(const LegalityQuery &)>; 171 LLT Type0; [all …]
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | LowLevelTypeImpl.h | 40 class LLT { 43 static LLT scalar(unsigned SizeInBits) { in scalar() 45 return LLT{/*isPointer=*/false, /*isVector=*/false, /*NumElements=*/0, in scalar() 50 static LLT pointer(unsigned AddressSpace, unsigned SizeInBits) { in pointer() 52 return LLT{/*isPointer=*/true, /*isVector=*/false, /*NumElements=*/0, in pointer() 58 static LLT vector(uint16_t NumElements, unsigned ScalarSizeInBits) { in vector() 61 return LLT{/*isPointer=*/false, /*isVector=*/true, NumElements, in vector() 66 static LLT vector(uint16_t NumElements, LLT ScalarTy) { in vector() 69 return LLT{ScalarTy.isPointer(), /*isVector=*/true, NumElements, in vector() 74 static LLT scalarOrVector(uint16_t NumElements, LLT ScalarTy) { in scalarOrVector() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | LowLevelType.cpp | 18 LLT::LLT(MVT VT) { in LLT() function in LLT 36 void LLT::print(raw_ostream &OS) const { in print() 48 const constexpr LLT::BitFieldInfo LLT::ScalarSizeFieldInfo; 49 const constexpr LLT::BitFieldInfo LLT::PointerSizeFieldInfo; 50 const constexpr LLT::BitFieldInfo LLT::PointerAddressSpaceFieldInfo; 51 const constexpr LLT::BitFieldInfo LLT::VectorElementsFieldInfo; 52 const constexpr LLT::BitFieldInfo LLT::VectorSizeFieldInfo; 53 const constexpr LLT::BitFieldInfo LLT::PointerVectorElementsFieldInfo; 54 const constexpr LLT::BitFieldInfo LLT::PointerVectorSizeFieldInfo; 55 const constexpr LLT::BitFieldInfo LLT::PointerVectorAddressSpaceFieldInfo;
|
/external/llvm-project/llvm/lib/Support/ |
D | LowLevelType.cpp | 18 LLT::LLT(MVT VT) { in LLT() function in LLT 36 void LLT::print(raw_ostream &OS) const { in print() 48 const constexpr LLT::BitFieldInfo LLT::ScalarSizeFieldInfo; 49 const constexpr LLT::BitFieldInfo LLT::PointerSizeFieldInfo; 50 const constexpr LLT::BitFieldInfo LLT::PointerAddressSpaceFieldInfo; 51 const constexpr LLT::BitFieldInfo LLT::VectorElementsFieldInfo; 52 const constexpr LLT::BitFieldInfo LLT::VectorSizeFieldInfo; 53 const constexpr LLT::BitFieldInfo LLT::PointerVectorElementsFieldInfo; 54 const constexpr LLT::BitFieldInfo LLT::PointerVectorSizeFieldInfo; 55 const constexpr LLT::BitFieldInfo LLT::PointerVectorAddressSpaceFieldInfo;
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | LowLevelTypeImpl.h | 39 class LLT { 42 static LLT scalar(unsigned SizeInBits) { in scalar() 44 return LLT{/*isPointer=*/false, /*isVector=*/false, /*NumElements=*/0, in scalar() 49 static LLT pointer(unsigned AddressSpace, unsigned SizeInBits) { in pointer() 51 return LLT{/*isPointer=*/true, /*isVector=*/false, /*NumElements=*/0, in pointer() 57 static LLT vector(uint16_t NumElements, unsigned ScalarSizeInBits) { in vector() 60 return LLT{/*isPointer=*/false, /*isVector=*/true, NumElements, in vector() 65 static LLT vector(uint16_t NumElements, LLT ScalarTy) { in vector() 68 return LLT{ScalarTy.isPointer(), /*isVector=*/true, NumElements, in vector() 73 static LLT scalarOrVector(uint16_t NumElements, LLT ScalarTy) { in scalarOrVector() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPULegalizerInfo.cpp | 45 const LLT Ty = Query.Types[TypeIdx]; in isMultiple32() 46 const LLT EltTy = Ty.getScalarType(); in isMultiple32() 59 const LLT Ty = Query.Types[TypeIdx]; in isSmallOddVector() 69 const LLT Ty = Query.Types[TypeIdx]; in isWideVec16() 70 const LLT EltTy = Ty.getScalarType(); in isWideVec16() 77 const LLT Ty = Query.Types[TypeIdx]; in oneMoreElement() 78 const LLT EltTy = Ty.getElementType(); in oneMoreElement() 79 return std::make_pair(TypeIdx, LLT::vector(Ty.getNumElements() + 1, EltTy)); in oneMoreElement() 85 const LLT Ty = Query.Types[TypeIdx]; in fewerEltsToSize64Vector() 86 const LLT EltTy = Ty.getElementType(); in fewerEltsToSize64Vector() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64LegalizerInfo.cpp | 35 const LLT p0 = LLT::pointer(0, 64); in AArch64LegalizerInfo() 36 const LLT s1 = LLT::scalar(1); in AArch64LegalizerInfo() 37 const LLT s8 = LLT::scalar(8); in AArch64LegalizerInfo() 38 const LLT s16 = LLT::scalar(16); in AArch64LegalizerInfo() 39 const LLT s32 = LLT::scalar(32); in AArch64LegalizerInfo() 40 const LLT s64 = LLT::scalar(64); in AArch64LegalizerInfo() 41 const LLT s128 = LLT::scalar(128); in AArch64LegalizerInfo() 42 const LLT s256 = LLT::scalar(256); in AArch64LegalizerInfo() 43 const LLT s512 = LLT::scalar(512); in AArch64LegalizerInfo() 44 const LLT v16s8 = LLT::vector(16, 8); in AArch64LegalizerInfo() [all …]
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPULegalizerInfo.cpp | 51 static LLT getPow2VectorType(LLT Ty) { in getPow2VectorType() 58 static LLT getPow2ScalarType(LLT Ty) { in getPow2ScalarType() 61 return LLT::scalar(Pow2Bits); in getPow2ScalarType() 69 const LLT Ty = Query.Types[TypeIdx]; in isSmallOddVector() 73 const LLT EltTy = Ty.getElementType(); in isSmallOddVector() 83 const LLT Ty = Query.Types[TypeIdx]; in sizeIsMultipleOf32() 90 const LLT Ty = Query.Types[TypeIdx]; in isWideVec16() 91 const LLT EltTy = Ty.getScalarType(); in isWideVec16() 98 const LLT Ty = Query.Types[TypeIdx]; in oneMoreElement() 99 const LLT EltTy = Ty.getElementType(); in oneMoreElement() [all …]
|
/external/llvm-project/llvm/lib/Target/AArch64/GISel/ |
D | AArch64LegalizerInfo.cpp | 39 const LLT p0 = LLT::pointer(0, 64); in AArch64LegalizerInfo() 40 const LLT s1 = LLT::scalar(1); in AArch64LegalizerInfo() 41 const LLT s8 = LLT::scalar(8); in AArch64LegalizerInfo() 42 const LLT s16 = LLT::scalar(16); in AArch64LegalizerInfo() 43 const LLT s32 = LLT::scalar(32); in AArch64LegalizerInfo() 44 const LLT s64 = LLT::scalar(64); in AArch64LegalizerInfo() 45 const LLT s128 = LLT::scalar(128); in AArch64LegalizerInfo() 46 const LLT s256 = LLT::scalar(256); in AArch64LegalizerInfo() 47 const LLT s512 = LLT::scalar(512); in AArch64LegalizerInfo() 48 const LLT v16s8 = LLT::vector(16, 8); in AArch64LegalizerInfo() [all …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | LowLevelType.cpp | 21 LLT llvm::getLLTForType(Type &Ty, const DataLayout &DL) { in getLLTForType() 24 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL); in getLLTForType() 27 return LLT::vector(NumElements, ScalarTy); in getLLTForType() 32 return LLT::pointer(AddrSpace, DL.getPointerSizeInBits(AddrSpace)); in getLLTForType() 40 return LLT::scalar(SizeInBits); in getLLTForType() 43 return LLT(); in getLLTForType() 46 MVT llvm::getMVTForLLT(LLT Ty) { in getMVTForLLT() 55 LLT llvm::getLLTForMVT(MVT Ty) { in getLLTForMVT() 57 return LLT::scalar(Ty.getSizeInBits()); in getLLTForMVT() 59 return LLT::vector(Ty.getVectorNumElements(), in getLLTForMVT() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | LowLevelType.cpp | 20 LLT llvm::getLLTForType(Type &Ty, const DataLayout &DL) { in getLLTForType() 23 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL); in getLLTForType() 26 return LLT::vector(NumElements, ScalarTy); in getLLTForType() 31 return LLT::pointer(AddrSpace, DL.getPointerSizeInBits(AddrSpace)); in getLLTForType() 39 return LLT::scalar(SizeInBits); in getLLTForType() 42 return LLT(); in getLLTForType() 45 MVT llvm::getMVTForLLT(LLT Ty) { in getMVTForLLT() 54 LLT llvm::getLLTForMVT(MVT Ty) { in getLLTForMVT() 56 return LLT::scalar(Ty.getSizeInBits()); in getLLTForMVT() 58 return LLT::vector(Ty.getVectorNumElements(), in getLLTForMVT()
|
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | LegalizeMutations.cpp | 17 LegalizeMutation LegalizeMutations::changeTo(unsigned TypeIdx, LLT Ty) { in changeTo() 32 const LLT OldTy = Query.Types[TypeIdx]; in changeElementTo() 33 const LLT NewTy = Query.Types[FromTypeIdx]; in changeElementTo() 39 LLT NewEltTy) { in changeElementTo() 41 const LLT OldTy = Query.Types[TypeIdx]; in changeElementTo() 49 const LLT OldTy = Query.Types[TypeIdx]; in changeElementSizeTo() 50 const LLT NewTy = Query.Types[FromTypeIdx]; in changeElementSizeTo() 51 const LLT NewEltTy = LLT::scalar(NewTy.getScalarSizeInBits()); in changeElementSizeTo() 59 const LLT Ty = Query.Types[TypeIdx]; in widenScalarOrEltToNextPow2() 69 const LLT VecTy = Query.Types[TypeIdx]; in moreElementsToNextPow2() [all …]
|
D | LegalityPredicates.cpp | 28 LegalityPredicate LegalityPredicates::typeIs(unsigned TypeIdx, LLT Type) { in typeIs() 35 std::initializer_list<LLT> TypesInit) { in typeInSet() 36 SmallVector<LLT, 4> Types = TypesInit; in typeInSet() 44 std::initializer_list<std::pair<LLT, LLT>> TypesInit) { in typePairInSet() argument 45 SmallVector<std::pair<LLT, LLT>, 4> Types = TypesInit; in typePairInSet() 47 std::pair<LLT, LLT> Match = {Query.Types[TypeIdx0], Query.Types[TypeIdx1]}; in typePairInSet() 89 LLT Ty = Query.Types[TypeIdx]; in isPointer() 95 LLT EltTy) { in elementTypeIs() 97 const LLT QueryTy = Query.Types[TypeIdx]; in elementTypeIs() 105 const LLT QueryTy = Query.Types[TypeIdx]; in scalarNarrowerThan() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
D | LegalityPredicates.cpp | 28 LegalityPredicate LegalityPredicates::typeIs(unsigned TypeIdx, LLT Type) { in typeIs() 35 std::initializer_list<LLT> TypesInit) { in typeInSet() 36 SmallVector<LLT, 4> Types = TypesInit; in typeInSet() 44 std::initializer_list<std::pair<LLT, LLT>> TypesInit) { in typePairInSet() argument 45 SmallVector<std::pair<LLT, LLT>, 4> Types = TypesInit; in typePairInSet() 47 std::pair<LLT, LLT> Match = {Query.Types[TypeIdx0], Query.Types[TypeIdx1]}; in typePairInSet() 89 LLT Ty = Query.Types[TypeIdx]; in isPointer() 97 const LLT QueryTy = Query.Types[TypeIdx]; in narrowerThan() 105 const LLT QueryTy = Query.Types[TypeIdx]; in widerThan() 113 const LLT QueryTy = Query.Types[TypeIdx]; in scalarOrEltNarrowerThan() [all …]
|