| /llvm-project-15.0.7/llvm/unittests/CodeGen/ |
| H A D | LowLevelTypeTest.cpp | 26 const LLT Ty = LLT::scalar(S); in TEST() 62 const LLT STy = LLT::scalar(S); in TEST() 63 const LLT VTy = LLT::vector(EC, S); in TEST() 67 const LLT VSTy = LLT::vector(EC, STy); in TEST() 132 const LLT P0 = LLT::pointer(0, 32); in TEST() 133 const LLT P1 = LLT::pointer(1, 64); in TEST() 135 const LLT S32 = LLT::scalar(32); in TEST() 136 const LLT S64 = LLT::scalar(64); in TEST() 180 const LLT P0 = LLT::pointer(0, 32); in TEST() 184 const LLT S64 = LLT::scalar(64); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/CodeGen/GlobalISel/ |
| H A D | LegalizerInfoTest.cpp | 140 LLT p0 = LLT::pointer(0, 64); in TEST() 141 LLT s64 = LLT::scalar(64); in TEST() 169 LLT s32 = LLT::scalar(32); in TEST() 170 LLT s64 = LLT::scalar(64); in TEST() 226 const LLT s5 = LLT::scalar(5); in TEST() 227 const LLT s8 = LLT::scalar(8); in TEST() 228 const LLT s16 = LLT::scalar(16); in TEST() 229 const LLT s32 = LLT::scalar(32); in TEST() 230 const LLT s33 = LLT::scalar(33); in TEST() 247 const LLT s1 = LLT::scalar(1); in TEST() [all …]
|
| H A 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::fixed_vector(2, 8); 24 static const LLT V4S8 = LLT::fixed_vector(4, 8); 25 static const LLT V8S8 = LLT::fixed_vector(8, 8); [all …]
|
| H A D | LegalizerHelperTest.cpp | 37 LLT S32 = LLT::scalar(32); in TEST_F() 90 LLT S24 = LLT::scalar(24); in TEST_F() 147 LLT S32 = LLT::scalar(32); in TEST_F() 366 LLT s8{LLT::scalar(8)}; in TEST_F() 400 LLT s8{LLT::scalar(8)}; in TEST_F() 523 LLT s8{LLT::scalar(8)}; in TEST_F() 564 LLT s8{LLT::scalar(8)}; in TEST_F() 599 LLT s8{LLT::scalar(8)}; in TEST_F() 635 LLT s8{LLT::scalar(8)}; in TEST_F() 668 LLT s8{LLT::scalar(8)}; in TEST_F() [all …]
|
| H A D | MachineIRBuilderTest.cpp | 83 LLT s64 = LLT::scalar(64); in TEST_F() 130 LLT S64 = LLT::scalar(64); in TEST_F() 163 LLT S64 = LLT::scalar(64); in TEST_F() 192 LLT S64 = LLT::scalar(64); in TEST_F() 221 LLT S32 = LLT::scalar(32); in TEST_F() 249 LLT S32 = LLT::scalar(32); in TEST_F() 274 LLT S64 = LLT::scalar(64); in TEST_F() 302 LLT S64 = LLT::scalar(64); in TEST_F() 332 LLT S32 = LLT::scalar(32); in TEST_F() 371 LLT S1 = LLT::scalar(1); in TEST_F() [all …]
|
| H A D | PatternMatchTest.cpp | 59 LLT s64 = LLT::scalar(64); in TEST_F() 108 LLT s32 = LLT::scalar(32); in TEST_F() 109 LLT s64 = LLT::scalar(64); in TEST_F() 110 LLT p0 = LLT::pointer(0, 64); in TEST_F() 332 LLT s32 = LLT::scalar(32); in TEST_F() 362 LLT s64 = LLT::scalar(64); in TEST_F() 374 LLT s16 = LLT::scalar(16); in TEST_F() 393 LLT s64 = LLT::scalar(64); in TEST_F() 394 LLT s32 = LLT::scalar(32); in TEST_F() 441 LLT s64 = LLT::scalar(64); in TEST_F() [all …]
|
| H A D | GISelAliasTest.cpp | 26 LLT S64 = LLT::scalar(64); in TEST_F() 27 LLT P0 = LLT::pointer(0, 64); in TEST_F() 78 LLT S64 = LLT::scalar(64); in TEST_F() 79 LLT P0 = LLT::pointer(0, 64); in TEST_F() 108 LLT S64 = LLT::scalar(64); in TEST_F() 109 LLT P0 = LLT::pointer(0, 64); in TEST_F()
|
| H A D | CSETest.cpp | 21 LLT s16{LLT::scalar(16)}; in TEST_F() 22 LLT s32{LLT::scalar(32)}; in TEST_F() 63 auto Splat0 = CSEB.buildConstant(LLT::fixed_vector(2, s32), 0); in TEST_F() 68 auto FSplat = CSEB.buildFConstant(LLT::fixed_vector(2, s32), 1.0); in TEST_F() 117 LLT s16{LLT::scalar(16)}; in TEST_F() 147 LLT s32{LLT::scalar(32)}; in TEST_F() 172 LLT s32 = LLT::scalar(32); in TEST_F() 188 LLT VecTy = LLT::fixed_vector(4, s32); in TEST_F()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86LegalizerInfo.cpp | 107 const LLT s1 = LLT::scalar(1); in setLegalizerInfo32bit() 108 const LLT s8 = LLT::scalar(8); in setLegalizerInfo32bit() 109 const LLT s16 = LLT::scalar(16); in setLegalizerInfo32bit() 110 const LLT s32 = LLT::scalar(32); in setLegalizerInfo32bit() 111 const LLT s64 = LLT::scalar(64); in setLegalizerInfo32bit() 112 const LLT s128 = LLT::scalar(128); in setLegalizerInfo32bit() 206 const LLT s1 = LLT::scalar(1); in setLegalizerInfo64bit() 207 const LLT s8 = LLT::scalar(8); in setLegalizerInfo64bit() 208 const LLT s16 = LLT::scalar(16); in setLegalizerInfo64bit() 209 const LLT s32 = LLT::scalar(32); in setLegalizerInfo64bit() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVLegalizerInfo.cpp | 63 const LLT s1 = LLT::scalar(1); in SPIRVLegalizerInfo() 64 const LLT s8 = LLT::scalar(8); in SPIRVLegalizerInfo() 65 const LLT s16 = LLT::scalar(16); in SPIRVLegalizerInfo() 66 const LLT s32 = LLT::scalar(32); in SPIRVLegalizerInfo() 67 const LLT s64 = LLT::scalar(64); in SPIRVLegalizerInfo() 78 const LLT v8s8 = LLT::fixed_vector(8, 8); in SPIRVLegalizerInfo() 79 const LLT v8s1 = LLT::fixed_vector(8, 1); in SPIRVLegalizerInfo() 84 const LLT v4s8 = LLT::fixed_vector(4, 8); in SPIRVLegalizerInfo() 85 const LLT v4s1 = LLT::fixed_vector(4, 1); in SPIRVLegalizerInfo() 90 const LLT v3s8 = LLT::fixed_vector(3, 8); in SPIRVLegalizerInfo() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | LowLevelType.cpp | 18 LLT::LLT(MVT VT) { in LLT() function in LLT 50 const constexpr LLT::BitFieldInfo LLT::ScalarSizeFieldInfo; 51 const constexpr LLT::BitFieldInfo LLT::PointerSizeFieldInfo; 52 const constexpr LLT::BitFieldInfo LLT::PointerAddressSpaceFieldInfo; 53 const constexpr LLT::BitFieldInfo LLT::VectorElementsFieldInfo; 54 const constexpr LLT::BitFieldInfo LLT::VectorScalableFieldInfo; 55 const constexpr LLT::BitFieldInfo LLT::VectorSizeFieldInfo; 56 const constexpr LLT::BitFieldInfo LLT::PointerVectorElementsFieldInfo; 57 const constexpr LLT::BitFieldInfo LLT::PointerVectorScalableFieldInfo; 58 const constexpr LLT::BitFieldInfo LLT::PointerVectorSizeFieldInfo; [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | LegalizerHelper.h | 115 LLT NarrowTy); 120 LLT MoreTy); 184 LLT WideTy); 193 bool extractParts(Register Reg, LLT RegTy, LLT MainTy, 194 LLT &LeftoverTy, 211 void insertParts(Register DstReg, LLT ResultTy, 213 LLT LeftoverTy = LLT(), ArrayRef<Register> LeftoverRegs = {}); 224 LLT extractGCDType(SmallVectorImpl<Register> &Parts, LLT DstTy, 248 LLT buildLCMMergePieces(LLT DstTy, LLT NarrowTy, LLT GCDTy, 268 LLT SrcTy, LLT NarrowTy, [all …]
|
| H A D | LegalizerInfo.h | 110 ArrayRef<LLT> Types; 113 LLT MemoryTy; 148 LLT NewType; 205 LLT Type0; 206 LLT Type1; 207 LLT MemTy; 269 std::initializer_list<std::pair<LLT, LLT>> TypesInit); 555 std::initializer_list<LLT> Types1, std::initializer_list<LLT> Types2) { in actionForCartesianProduct() 609 std::initializer_list<std::pair<LLT, LLT>> Types) { in legalForTypeWithAnyImm() argument 742 libcallFor(std::initializer_list<std::pair<LLT, LLT>> Types) { in libcallFor() argument [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | LowLevelTypeImpl.h | 39 class LLT { 63 static LLT vector(ElementCount EC, LLT ScalarTy) { in vector() 80 static LLT fixed_vector(unsigned NumElements, LLT ScalarTy) { in fixed_vector() 93 static LLT scalable_vector(unsigned MinNumElements, LLT ScalarTy) { in scalable_vector() 97 static LLT scalarOrVector(ElementCount EC, LLT ScalarTy) { in scalarOrVector() 111 explicit LLT() in LLT() function 114 explicit LLT(MVT VT); 173 LLT changeElementType(LLT NewEltTy) const { in changeElementType() 398 LLT Invalid; 403 LLT Invalid; [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalizeMutations.cpp | 32 const LLT OldTy = Query.Types[TypeIdx]; in changeElementTo() 33 const LLT NewTy = Query.Types[FromTypeIdx]; in changeElementTo() 41 const LLT OldTy = Query.Types[TypeIdx]; in changeElementTo() 49 const LLT OldTy = Query.Types[TypeIdx]; in changeElementCountTo() 50 const LLT NewTy = Query.Types[FromTypeIdx]; in changeElementCountTo() 60 const LLT OldTy = Query.Types[TypeIdx]; in changeElementCountTo() 70 const LLT OldTy = Query.Types[TypeIdx]; in changeElementSizeTo() 72 const LLT NewEltTy = LLT::scalar(NewTy.getScalarSizeInBits()); in changeElementSizeTo() 80 const LLT Ty = Query.Types[TypeIdx]; in widenScalarOrEltToNextPow2() 91 const LLT Ty = Query.Types[TypeIdx]; in widenScalarOrEltToNextMultipleOf() [all …]
|
| H A D | LegalityPredicates.cpp | 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() 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 D | LegalizerHelper.cpp | 51 getNarrowTypeBreakDown(LLT OrigTy, LLT NarrowTy, LLT &LeftoverTy) { in getNarrowTypeBreakDown() 344 LLT LegalizerHelper::buildLCMMergePieces(LLT DstTy, LLT NarrowTy, LLT GCDTy, in buildLCMMergePieces() 1569 LLT GCDTy = LLT::scalar(GCD); in widenScalarMergeValues() 5932 const LLT S64 = LLT::scalar(64); in lowerU64ToF32BitOps() 5933 const LLT S32 = LLT::scalar(32); in lowerU64ToF32BitOps() 5934 const LLT S1 = LLT::scalar(1); in lowerU64ToF32BitOps() 6021 const LLT S1 = LLT::scalar(1); in lowerSITOFP() 6092 const LLT S1 = LLT::scalar(1); in lowerFPTOUI() 6148 const LLT S1 = LLT::scalar(1); in lowerFPTOSI() 6182 const LLT S1 = LLT::scalar(1); in lowerFPTRUNC_F64_TO_F16() [all …]
|
| H A D | CallLowering.cpp | 361 LLT IntPtrTy = LLT::scalar(OrigTy.getSizeInBits()); in buildCopyFromRegs() 457 LLT BVType = LLT::fixed_vector(LLTy.getNumElements(), PartLLT); in buildCopyFromRegs() 469 Register SrcReg, LLT SrcTy, LLT PartTy, in buildCopyToRegs() 519 LLT CoverTy = LLT::scalar(CoveringSize); in buildCopyToRegs() 854 LLT OffsetLLTy = in insertSRetStores() 897 LLT FramePtrTy = LLT::pointer(AS, DL.getPointerSizeInBits(AS)); in insertSRetOutgoingArgument() 1068 LLT ValTy(ValVT); in getStackValueStoreType() 1073 LLT PtrTy = LLT::pointer(Flags.getPointerAddrSpace(), in getStackValueStoreType() 1104 const LLT SizeTy = LLT::scalar(PtrTy.getSizeInBits()); in copyArgumentMemory() 1129 LLT IntPtrTy = LLT::scalar(ValRegTy.getSizeInBits()); in extendRegister() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULegalizerInfo.cpp | 50 static LLT getPow2VectorType(LLT Ty) { in getPow2VectorType() 57 static LLT getPow2ScalarType(LLT Ty) { in getPow2ScalarType() 435 const LLT S1 = LLT::scalar(1); in AMDGPULegalizerInfo() 436 const LLT S8 = LLT::scalar(8); in AMDGPULegalizerInfo() 2125 LLT S32 = LLT::scalar(32); in extractF64Exponent() 3178 LLT S32 = LLT::scalar(32); in legalizeMul() 3428 LLT S16 = LLT::scalar(16); in legalizeFDIV() 3429 LLT S32 = LLT::scalar(32); in legalizeFDIV() 3914 LLT S1 = LLT::scalar(1); in legalizeFDIV32() 3981 LLT S1 = LLT::scalar(1); in legalizeFDIV64() [all …]
|
| H A D | AMDGPUArgumentUsageInfo.cpp | 89 std::tuple<const ArgDescriptor *, const TargetRegisterClass *, LLT> 104 &AMDGPU::SGPR_32RegClass, LLT::scalar(32)); in getPreloadedValue() 107 &AMDGPU::SGPR_32RegClass, LLT::scalar(32)); in getPreloadedValue() 110 &AMDGPU::SGPR_32RegClass, LLT::scalar(32)); in getPreloadedValue() 113 &AMDGPU::SGPR_32RegClass, LLT::scalar(32)); in getPreloadedValue() 117 &AMDGPU::SGPR_32RegClass, LLT::scalar(32)); in getPreloadedValue() 128 &AMDGPU::SGPR_64RegClass, LLT::scalar(64)); in getPreloadedValue() 131 &AMDGPU::SGPR_64RegClass, LLT::scalar(64)); in getPreloadedValue() 142 &AMDGPU::VGPR_32RegClass, LLT::scalar(32)); in getPreloadedValue() 145 &AMDGPU::VGPR_32RegClass, LLT::scalar(32)); in getPreloadedValue() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64LegalizerInfo.cpp | 44 const LLT p0 = LLT::pointer(0, 64); in AArch64LegalizerInfo() 45 const LLT s8 = LLT::scalar(8); in AArch64LegalizerInfo() 46 const LLT s16 = LLT::scalar(16); in AArch64LegalizerInfo() 47 const LLT s32 = LLT::scalar(32); in AArch64LegalizerInfo() 48 const LLT s64 = LLT::scalar(64); in AArch64LegalizerInfo() 49 const LLT s128 = LLT::scalar(128); in AArch64LegalizerInfo() 51 const LLT v8s8 = LLT::fixed_vector(8, 8); in AArch64LegalizerInfo() 52 const LLT v4s8 = LLT::fixed_vector(4, 8); in AArch64LegalizerInfo() 1096 LLT s64 = LLT::scalar(64); in legalizeLoadStore() 1295 LLT s64 = LLT::scalar(64); in legalizeAtomicCmpxchg128() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A 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(EC, ScalarTy); in getLLTForType() 39 return LLT::scalar(SizeInBits); in getLLTForType() 42 return LLT(); in getLLTForType() 45 MVT llvm::getMVTForLLT(LLT Ty) { in getMVTForLLT() 54 EVT llvm::getApproximateEVTForLLT(LLT Ty, const DataLayout &DL, in getApproximateEVTForLLT() 64 LLT llvm::getLLTForMVT(MVT Ty) { in getLLTForMVT() 66 return LLT::scalar(Ty.getSizeInBits()); in getLLTForMVT() 68 return LLT::scalarOrVector(Ty.getVectorElementCount(), in getLLTForMVT() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/M68k/GISel/ |
| H A D | M68kLegalizerInfo.cpp | 24 const LLT s8 = LLT::scalar(8); in M68kLegalizerInfo() 25 const LLT s16 = LLT::scalar(16); in M68kLegalizerInfo() 26 const LLT s32 = LLT::scalar(32); in M68kLegalizerInfo() 27 const LLT p0 = LLT::pointer(0, 32); in M68kLegalizerInfo()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMRegisterBankInfo.cpp | 238 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 283 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 296 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 303 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 363 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 377 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 379 LLT Ty2 = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() 391 LLT Ty2 = MRI.getType(MI.getOperand(2).getReg()); in getInstrMapping() 401 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 423 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/Mips/ |
| H A D | MipsLegalizerInfo.cpp | 70 const LLT s1 = LLT::scalar(1); in MipsLegalizerInfo() 71 const LLT s8 = LLT::scalar(8); in MipsLegalizerInfo() 72 const LLT s16 = LLT::scalar(16); in MipsLegalizerInfo() 73 const LLT s32 = LLT::scalar(32); in MipsLegalizerInfo() 74 const LLT s64 = LLT::scalar(64); in MipsLegalizerInfo() 75 const LLT v16s8 = LLT::fixed_vector(16, 8); in MipsLegalizerInfo() 76 const LLT v8s16 = LLT::fixed_vector(8, 16); in MipsLegalizerInfo() 79 const LLT p0 = LLT::pointer(0, 32); in MipsLegalizerInfo() 339 const LLT s32 = LLT::scalar(32); in legalizeCustom() 340 const LLT s64 = LLT::scalar(64); in legalizeCustom() [all …]
|