| /llvm-project-15.0.7/bolt/lib/Passes/ |
| H A D | CacheMetrics.cpp | 222 double CacheMetrics::extTSPScore(uint64_t SrcAddr, uint64_t SrcSize, in extTSPScore() argument 227 if (SrcAddr + SrcSize == DstAddr) { in extTSPScore() 232 if (SrcAddr + SrcSize < DstAddr) { in extTSPScore() 233 const uint64_t Dist = DstAddr - (SrcAddr + SrcSize); in extTSPScore() 241 const uint64_t Dist = SrcAddr + SrcSize - DstAddr; in extTSPScore()
|
| H A D | ExtTSPReorderAlgorithm.cpp | 88 double extTSPScore(uint64_t SrcAddr, uint64_t SrcSize, uint64_t DstAddr, in extTSPScore() argument 93 if (SrcAddr + SrcSize == DstAddr) { in extTSPScore() 98 if (SrcAddr + SrcSize < DstAddr) { in extTSPScore() 99 const uint64_t Dist = DstAddr - (SrcAddr + SrcSize); in extTSPScore() 107 const uint64_t Dist = SrcAddr + SrcSize - DstAddr; in extTSPScore()
|
| H A D | TailDuplication.cpp | 383 double TailDuplication::cacheScore(uint64_t SrcAddr, uint64_t SrcSize, in cacheScore() argument 395 JumpDistance = (SrcAddr + SrcSize) - (DstAddr); in cacheScore()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPostLegalizerCombiner.cpp | 177 unsigned SrcSize = MRI.getType(SrcReg).getSizeInBits(); in matchUCharToFloat() local 178 assert(SrcSize == 16 || SrcSize == 32 || SrcSize == 64); in matchUCharToFloat() 179 const APInt Mask = APInt::getHighBitsSet(SrcSize, SrcSize - 8); in matchUCharToFloat()
|
| H A D | AMDGPURegisterBankInfo.cpp | 3879 OpdsMapping[1] = AMDGPU::getValueMapping(BankID, SrcSize); in getInstrMapping() 3889 OpdsMapping[1] = AMDGPU::getValueMapping(BankID, SrcSize); in getInstrMapping() 3904 OpdsMapping[1] = AMDGPU::getValueMapping(Src0BankID, SrcSize); in getInstrMapping() 3920 OpdsMapping[i] = AMDGPU::getValueMapping(Bank, SrcSize); in getInstrMapping() 3960 unsigned SrcSize = getSizeInBits(Src, MRI, *TRI); in getInstrMapping() local 3962 OpdsMapping[1] = AMDGPU::getValueMapping(Bank, SrcSize); in getInstrMapping() 3972 unsigned SrcSize = getSizeInBits(Src, MRI, *TRI); in getInstrMapping() local 3990 SrcSize); in getInstrMapping() 4053 OpdsMapping[1] = AMDGPU::getValueMapping(SrcBankID, SrcSize); in getInstrMapping() 4368 unsigned SrcSize = MRI.getType(SrcReg).getSizeInBits(); in getInstrMapping() local [all …]
|
| H A D | AMDGPUInstructionSelector.cpp | 486 const unsigned SrcSize = SrcTy.getSizeInBits(); in selectG_EXTRACT() local 531 const unsigned SrcSize = SrcTy.getSizeInBits(); in selectG_MERGE_VALUES() local 532 if (SrcSize < 32) in selectG_MERGE_VALUES() 576 const unsigned SrcSize = SrcTy.getSizeInBits(); in selectG_UNMERGE_VALUES() local 1942 unsigned SrcSize = SrcTy.getSizeInBits(); in selectG_TRUNC() local 2016 if (SrcSize > 32) { in selectG_TRUNC() 2123 .addImm(SrcSize); // Width in selectG_SZA_EXT() 2134 if (Signed && DstSize == 32 && (SrcSize == 8 || SrcSize == 16)) { in selectG_SZA_EXT() 2135 const unsigned SextOpc = SrcSize == 8 ? in selectG_SZA_EXT() 2162 .addImm(SrcSize << 16); in selectG_SZA_EXT() [all …]
|
| H A D | SIFixSGPRCopies.cpp | 1137 size_t SrcSize = TRI->getRegSizeInBits(*SrcRC); in lowerVGPR2SGPRCopies() local 1138 if (SrcSize == 16) { in lowerVGPR2SGPRCopies() 1143 } else if (SrcSize == 32) { in lowerVGPR2SGPRCopies()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | InlineAsmLowering.cpp | 247 unsigned SrcSize = TRI->getRegSizeInBits(Src, *MRI); in buildAnyextOrCopy() local 250 if (DstSize < SrcSize) { in buildAnyextOrCopy() 256 if (DstSize > SrcSize) { in buildAnyextOrCopy() 624 unsigned SrcSize = TRI->getRegSizeInBits(SrcReg, *MRI); in lowerInlineAsm() local 626 if (ResTy.isScalar() && ResTy.getSizeInBits() < SrcSize) { in lowerInlineAsm() 630 MRI->createGenericVirtualRegister(LLT::scalar(SrcSize)); in lowerInlineAsm() 634 } else if (ResTy.getSizeInBits() == SrcSize) { in lowerInlineAsm()
|
| H A D | CallLowering.cpp | 374 unsigned SrcSize = PartLLT.getSizeInBits().getFixedSize() * Regs.size(); in buildCopyFromRegs() local 375 if (SrcSize == OrigTy.getSizeInBits()) in buildCopyFromRegs() 378 auto Widened = B.buildMerge(LLT::scalar(SrcSize), Regs); in buildCopyFromRegs() 510 const unsigned SrcSize = SrcTy.getSizeInBits(); in buildCopyToRegs() local 515 if (!LCMTy.isVector() && CoveringSize != SrcSize) { in buildCopyToRegs() 518 CoveringSize = alignTo(SrcSize, DstSize); in buildCopyToRegs() 526 for (unsigned Size = SrcSize; Size != CoveringSize; Size += SrcSize) in buildCopyToRegs() 532 if (LCMTy.isVector() && CoveringSize != SrcSize) in buildCopyToRegs()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | LegalizationArtifactCombiner.h | 575 unsigned SrcSize = MRI.getType(Src1Reg).getSizeInBits(); in findValueFromConcat() local 578 unsigned StartSrcIdx = (StartBit / SrcSize) + 1; in findValueFromConcat() 580 unsigned InRegOffset = StartBit % SrcSize; in findValueFromConcat() 584 if (InRegOffset + Size > SrcSize) in findValueFromConcat() 588 if (InRegOffset == 0 && Size == SrcSize) { in findValueFromConcat() 610 unsigned StartSrcIdx = (StartBit / SrcSize) + 1; in findValueFromBuildVector() 612 unsigned InRegOffset = StartBit % SrcSize; in findValueFromBuildVector() 616 if (Size < SrcSize) in findValueFromBuildVector() 621 if (Size > SrcSize) { in findValueFromBuildVector() 622 if (Size % SrcSize > 0) in findValueFromBuildVector() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | MemCpyOptimizer.cpp | 1229 Value *SrcSize = MemCpy->getLength(); in processMemSetMemCpyDependence() local 1236 if (DestSize == SrcSize) { in processMemSetMemCpyDependence() 1248 if (auto *SrcSizeC = dyn_cast<ConstantInt>(SrcSize)) in processMemSetMemCpyDependence() 1254 if (DestSize->getType() != SrcSize->getType()) { in processMemSetMemCpyDependence() 1256 SrcSize->getType()->getIntegerBitWidth()) in processMemSetMemCpyDependence() 1257 SrcSize = Builder.CreateZExt(SrcSize, DestSize->getType()); in processMemSetMemCpyDependence() 1259 DestSize = Builder.CreateZExt(DestSize, SrcSize->getType()); in processMemSetMemCpyDependence() 1262 Value *Ule = Builder.CreateICmpULE(DestSize, SrcSize); in processMemSetMemCpyDependence() 1263 Value *SizeDiff = Builder.CreateSub(DestSize, SrcSize); in processMemSetMemCpyDependence() 1271 SrcSize), in processMemSetMemCpyDependence()
|
| /llvm-project-15.0.7/llvm/lib/Linker/ |
| H A D | LinkModules.cpp | 196 uint64_t SrcSize = SrcDL.getTypeAllocSize(SrcGV->getValueType()); in computeResultingSelectionKind() local 203 From = SrcSize > DstSize ? LinkFrom::Src : LinkFrom::Dst; in computeResultingSelectionKind() 205 if (SrcSize != DstSize) in computeResultingSelectionKind() 296 uint64_t SrcSize = DL.getTypeAllocSize(Src.getValueType()); in shouldLinkFromSource() local 297 LinkFromSrc = SrcSize > DestSize; in shouldLinkFromSource()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64GenRegisterBankInfo.def | 247 unsigned SrcSize) { 261 if (SrcSize == 16) { 268 if (SrcSize == 32) { 272 assert((SrcSize == 64 || DstSize == 128) && "Unexpected vector extension");
|
| /llvm-project-15.0.7/bolt/include/bolt/Passes/ |
| H A D | CacheMetrics.h | 33 double extTSPScore(uint64_t SrcAddr, uint64_t SrcSize, uint64_t DstAddr,
|
| H A D | TailDuplication.h | 111 double cacheScore(uint64_t SrcAddr, uint64_t SrcSize, uint64_t DstAddr,
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MachineVerifier.cpp | 1229 unsigned SrcSize = SrcElTy.getSizeInBits(); in verifyPreISelGenericInstruction() local 1232 if (DstSize <= SrcSize) in verifyPreISelGenericInstruction() 1237 if (DstSize >= SrcSize) in verifyPreISelGenericInstruction() 1377 if (SrcSize == DstSize) in verifyPreISelGenericInstruction() 1380 if (DstSize + OffsetOp.getImm() > SrcSize) in verifyPreISelGenericInstruction() 1400 if (DstSize <= SrcSize) in verifyPreISelGenericInstruction() 1403 if (SrcSize + OffsetOp.getImm() > DstSize) in verifyPreISelGenericInstruction() 1803 unsigned SrcSize = 0; in visitMachineInstrBefore() local 1809 SrcSize = TRI->getRegSizeInBits(*SrcRC); in visitMachineInstrBefore() 1812 if (SrcSize == 0) in visitMachineInstrBefore() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | CodeLayout.cpp | 100 double extTSPScore(uint64_t SrcAddr, uint64_t SrcSize, uint64_t DstAddr, in extTSPScore() argument 103 if (SrcAddr + SrcSize == DstAddr) { in extTSPScore() 108 if (SrcAddr + SrcSize < DstAddr) { in extTSPScore() 109 const auto Dist = DstAddr - (SrcAddr + SrcSize); in extTSPScore() 117 const auto Dist = SrcAddr + SrcSize - DstAddr; in extTSPScore()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64RegisterBankInfo.h | 97 getFPExtMapping(unsigned DstSize, unsigned SrcSize);
|
| H A D | AArch64RegisterBankInfo.cpp | 185 #define CHECK_VALUEMAP_FPEXT(DstSize, SrcSize) \ in AArch64RegisterBankInfo() argument 188 unsigned PartialMapSrcIdx = PMI_FPR##SrcSize - PMI_Min; \ in AArch64RegisterBankInfo() 191 const ValueMapping *Map = getFPExtMapping(DstSize, SrcSize); \ in AArch64RegisterBankInfo() 199 Map[1].NumBreakDowns == 1 && "FPR" #SrcSize \ in AArch64RegisterBankInfo()
|
| H A D | AArch64InstructionSelector.cpp | 904 SrcSize = DstSize = 32; in getRegClassesForCopy() 951 } else if (SrcSize > DstSize) { in selectCopy() 958 } else if (DstSize > SrcSize) { in selectCopy() 1010 switch (SrcSize) { in selectFPConvOpc() 1041 switch (SrcSize) { in selectFPConvOpc() 2627 unsigned SrcSize = SrcTy.getSizeInBits(); in select() local 2668 if (SrcSize < 64) { in select() 3198 unsigned SrcSize = SrcTy.getSizeInBits(); in select() local 3203 SrcSize = I.getOperand(2).getImm(); in select() 3294 .addImm(SrcSize - 1); in select() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86InstructionSelector.cpp | 241 const unsigned SrcSize = RBI.getSizeInBits(SrcReg, MRI, TRI); in selectCopy() local 247 if (DstSize > SrcSize && SrcRegBank.getID() == X86::GPRRegBankID && in selectCopy() 273 assert((DstSize == SrcSize || in selectCopy() 284 DstRegBank.getID() == X86::GPRRegBankID && SrcSize > DstSize && in selectCopy() 1323 unsigned SrcSize = SrcTy.getSizeInBits(); in selectMergeValues() local 1341 .addImm((Idx - 1) * SrcSize); in selectMergeValues()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGCall.cpp | 1218 uint64_t SrcSize = DL.getTypeSizeInBits(Val->getType()); in CoerceIntOrPtrToIntOrPtr() local 1221 if (SrcSize > DstSize) { in CoerceIntOrPtrToIntOrPtr() 1275 if (!SrcSize.isScalable() && !DstSize.isScalable() && in CreateCoercedLoad() 1276 SrcSize.getFixedSize() >= DstSize.getFixedSize()) { in CreateCoercedLoad() 1322 llvm::ConstantInt::get(CGF.IntPtrTy, SrcSize.getKnownMinSize())); in CreateCoercedLoad() 1392 SrcSize.getFixedSize() <= DstSize.getFixedSize()) { in CreateCoercedStore() 2973 uint64_t SrcSize = CGM.getDataLayout().getTypeAllocSize(STy); in EmitFunctionProlog() local 2978 if (SrcSize <= DstSize) { in EmitFunctionProlog() 2993 if (SrcSize > DstSize) { in EmitFunctionProlog() 5045 if (SrcSize < DstSize) { in EmitCall() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 1297 unsigned SrcSize = A->getType()->getScalarSizeInBits(); in visitZExt() local 1304 if (SrcSize < DstSize) { in visitZExt() 1305 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt() 1311 if (SrcSize == DstSize) { in visitZExt() 1312 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt() 1316 if (SrcSize > DstSize) { in visitZExt() 1731 int SrcSize = (int)SrcTy->getScalarSizeInBits() - IsSigned; in isKnownExactCastIntToFP() local 1736 if (SrcSize <= DestNumSigBits) in isKnownExactCastIntToFP()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 519 unsigned SrcSize = Src->getScalarSizeInBits(); in getCastInstrCost() local 520 if (DL.isLegalInteger(SrcSize) && in getCastInstrCost() 521 SrcSize <= DL.getPointerTypeSizeInBits(Dst)) in getCastInstrCost()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMInstructionSelector.cpp | 870 unsigned SrcSize = SrcTy.getSizeInBits(); in select() local 871 switch (SrcSize) { in select() 899 unsigned NewOpc = selectSimpleExtOpc(I.getOpcode(), SrcSize); in select()
|