Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DInlineAsmLowering.cpp193 unsigned SrcSize = TRI->getRegSizeInBits(Src, *MRI); in buildAnyextOrCopy() local
196 if (DstSize < SrcSize) { in buildAnyextOrCopy()
202 if (DstSize > SrcSize) { in buildAnyextOrCopy()
585 unsigned SrcSize = TRI->getRegSizeInBits(SrcReg, *MRI); in lowerInlineAsm() local
587 if (ResTy.isScalar() && ResTy.getSizeInBits() < SrcSize) { in lowerInlineAsm()
591 MRI->createGenericVirtualRegister(LLT::scalar(SrcSize)); in lowerInlineAsm()
595 } else if (ResTy.getSizeInBits() == SrcSize) { in lowerInlineAsm()
H A DCallLowering.cpp425 unsigned SrcSize = PartLLT.getSizeInBits().getFixedValue() * Regs.size(); in buildCopyFromRegs() local
426 if (SrcSize == OrigTy.getSizeInBits()) in buildCopyFromRegs()
429 auto Widened = B.buildMergeLikeInstr(LLT::scalar(SrcSize), Regs); in buildCopyFromRegs()
620 const unsigned SrcSize = SrcTy.getSizeInBits(); in buildCopyToRegs() local
625 if (!LCMTy.isVector() && CoveringSize != SrcSize) { in buildCopyToRegs()
628 CoveringSize = alignTo(SrcSize, DstSize); in buildCopyToRegs()
636 for (unsigned Size = SrcSize; Size != CoveringSize; Size += SrcSize) in buildCopyToRegs()
642 if (LCMTy.isVector() && CoveringSize != SrcSize) in buildCopyToRegs()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h629 unsigned SrcSize = MRI.getType(Src1Reg).getSizeInBits(); in findValueFromConcat() local
632 unsigned StartSrcIdx = (StartBit / SrcSize) + 1; in findValueFromConcat()
634 unsigned InRegOffset = StartBit % SrcSize; in findValueFromConcat()
638 if (InRegOffset + Size > SrcSize) in findValueFromConcat()
642 if (InRegOffset == 0 && Size == SrcSize) { in findValueFromConcat()
661 unsigned SrcSize = MRI.getType(Src1Reg).getSizeInBits(); in findValueFromBuildVector() local
664 unsigned StartSrcIdx = (StartBit / SrcSize) + 1; in findValueFromBuildVector()
666 unsigned InRegOffset = StartBit % SrcSize; in findValueFromBuildVector()
670 if (Size < SrcSize) in findValueFromBuildVector()
675 if (Size > SrcSize) { in findValueFromBuildVector()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPostLegalizerCombiner.cpp218 unsigned SrcSize = MRI.getType(SrcReg).getSizeInBits(); in matchUCharToFloat() local
219 assert(SrcSize == 16 || SrcSize == 32 || SrcSize == 64); in matchUCharToFloat()
220 const APInt Mask = APInt::getHighBitsSet(SrcSize, SrcSize - 8); in matchUCharToFloat()
H A DAMDGPURegisterBankInfo.cpp4175 unsigned SrcSize = getSizeInBits(MI.getOperand(1).getReg(), MRI, *TRI); in getInstrMapping() local
4178 OpdsMapping[1] = AMDGPU::getValueMapping(BankID, SrcSize); in getInstrMapping()
4186 unsigned SrcSize = getSizeInBits(MI.getOperand(1).getReg(), MRI, *TRI); in getInstrMapping() local
4188 OpdsMapping[1] = AMDGPU::getValueMapping(BankID, SrcSize); in getInstrMapping()
4197 unsigned SrcSize = MRI.getType(MI.getOperand(1).getReg()).getSizeInBits(); in getInstrMapping() local
4203 OpdsMapping[1] = AMDGPU::getValueMapping(Src0BankID, SrcSize); in getInstrMapping()
4204 OpdsMapping[2] = AMDGPU::getValueMapping(Src1BankID, SrcSize); in getInstrMapping()
4214 unsigned SrcSize = MRI.getType(MI.getOperand(1).getReg()).getSizeInBits(); in getInstrMapping() local
4219 OpdsMapping[i] = AMDGPU::getValueMapping(Bank, SrcSize); in getInstrMapping()
4259 unsigned SrcSize = getSizeInBits(Src, MRI, *TRI); in getInstrMapping() local
[all …]
H A DAMDGPUInstructionSelector.cpp597 const unsigned SrcSize = SrcTy.getSizeInBits(); in selectG_EXTRACT() local
617 TRI.getRegClassForSizeOnBank(SrcSize, *SrcBank); in selectG_EXTRACT()
642 const unsigned SrcSize = SrcTy.getSizeInBits(); in selectG_MERGE_VALUES() local
643 if (SrcSize < 32) in selectG_MERGE_VALUES()
654 ArrayRef<int16_t> SubRegs = TRI.getRegSplitParts(DstRC, SrcSize / 8); in selectG_MERGE_VALUES()
687 const unsigned SrcSize = SrcTy.getSizeInBits(); in selectG_UNMERGE_VALUES() local
692 TRI.getRegClassForSizeOnBank(SrcSize, *SrcBank); in selectG_UNMERGE_VALUES()
727 const unsigned SrcSize = SrcTy.getSizeInBits(); in selectG_BUILD_VECTOR() local
730 if (MI.getOpcode() == AMDGPU::G_BUILD_VECTOR && SrcSize >= 32) { in selectG_BUILD_VECTOR()
2447 unsigned SrcSize = SrcTy.getSizeInBits(); in selectG_TRUNC() local
[all …]
H A DSIFixSGPRCopies.cpp1086 size_t SrcSize = TRI->getRegSizeInBits(*SrcRC); in lowerVGPR2SGPRCopies() local
1087 if (SrcSize == 16) { in lowerVGPR2SGPRCopies()
1106 } else if (SrcSize == 32) { in lowerVGPR2SGPRCopies()
/freebsd/lib/libefivar/
H A Duefi-dputil.c652 UINTN SrcSize; in UefiDevicePathLibAppendDevicePathInstance() local
667 SrcSize = GetDevicePathSize (DevicePath); in UefiDevicePathLibAppendDevicePathInstance()
670 NewDevicePath = AllocatePool (SrcSize + InstanceSize); in UefiDevicePathLibAppendDevicePathInstance()
672 TempDevicePath = CopyMem (NewDevicePath, DevicePath, SrcSize); in UefiDevicePathLibAppendDevicePathInstance()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DMemCpyOptimizer.cpp1304 Value *SrcSize = MemCpy->getLength(); in processMemSetMemCpyDependence() local
1305 if (!isKnownNonZero(SrcSize, in processMemSetMemCpyDependence()
1331 if (DestSize == SrcSize) { in processMemSetMemCpyDependence()
1343 if (auto *SrcSizeC = dyn_cast<ConstantInt>(SrcSize)) in processMemSetMemCpyDependence()
1358 if (DestSize->getType() != SrcSize->getType()) { in processMemSetMemCpyDependence()
1360 SrcSize->getType()->getIntegerBitWidth()) in processMemSetMemCpyDependence()
1361 SrcSize = Builder.CreateZExt(SrcSize, DestSize->getType()); in processMemSetMemCpyDependence()
1363 DestSize = Builder.CreateZExt(DestSize, SrcSize->getType()); in processMemSetMemCpyDependence()
1366 Value *Ule = Builder.CreateICmpULE(DestSize, SrcSize); in processMemSetMemCpyDependence()
1367 Value *SizeDiff = Builder.CreateSub(DestSize, SrcSize); in processMemSetMemCpyDependence()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64GenRegisterBankInfo.def255 unsigned SrcSize) {
269 if (SrcSize == 16) {
276 if (SrcSize == 32) {
280 assert((SrcSize == 64 || DstSize == 128) && "Unexpected vector extension");
/freebsd/contrib/llvm-project/llvm/lib/Linker/
H A DLinkModules.cpp196 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()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64RegisterBankInfo.h98 getFPExtMapping(unsigned DstSize, unsigned SrcSize);
H A DAArch64RegisterBankInfo.cpp190 #define CHECK_VALUEMAP_FPEXT(DstSize, SrcSize) \ in AArch64RegisterBankInfo() argument
193 unsigned PartialMapSrcIdx = PMI_FPR##SrcSize - PMI_Min; \ in AArch64RegisterBankInfo()
196 const ValueMapping *Map = getFPExtMapping(DstSize, SrcSize); \ in AArch64RegisterBankInfo()
204 Map[1].NumBreakDowns == 1 && "FPR" #SrcSize \ in AArch64RegisterBankInfo()
H A DAArch64InstructionSelector.cpp964 TypeSize SrcSize = RBI.getSizeInBits(SrcReg, MRI, TRI); in getRegClassesForCopy() local
975 (DstSize == TypeSize::getFixed(1) && SrcSize == TypeSize::getFixed(1))) in getRegClassesForCopy()
976 SrcSize = DstSize = TypeSize::getFixed(32); in getRegClassesForCopy()
978 return {getMinClassForRegBank(SrcRegBank, SrcSize, true), in getRegClassesForCopy()
1041 const TypeSize SrcSize = TRI.getRegSizeInBits(*SrcRC); in selectCopy() local
1049 getMinClassForRegBank(DstRegBank, SrcSize, /* GetAllRegSet */ true); in selectCopy()
1055 } else if (SrcSize > DstSize) { in selectCopy()
1062 } else if (DstSize > SrcSize) { in selectCopy()
1110 const unsigned SrcSize = SrcTy.getSizeInBits(); in selectFPConvOpc() local
1114 switch (SrcSize) { in selectFPConvOpc()
[all …]
H A DAArch64LegalizerInfo.cpp751 unsigned SrcSize = SrcTy.getSizeInBits(); in AArch64LegalizerInfo() local
752 if (SrcSize < 8 || !isPowerOf2_32(SrcSize)) in AArch64LegalizerInfo()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineVerifier.cpp1449 unsigned SrcSize = SrcTy.getScalarSizeInBits(); in verifyPreISelGenericInstruction() local
1452 if (DstSize <= SrcSize) in verifyPreISelGenericInstruction()
1460 if (DstSize >= SrcSize) in verifyPreISelGenericInstruction()
1653 unsigned SrcSize = MRI->getType(SrcOp.getReg()).getSizeInBits(); in verifyPreISelGenericInstruction() local
1654 if (SrcSize == DstSize) in verifyPreISelGenericInstruction()
1657 if (DstSize + OffsetOp.getImm() > SrcSize) in verifyPreISelGenericInstruction()
1675 unsigned SrcSize = MRI->getType(SrcOp.getReg()).getSizeInBits(); in verifyPreISelGenericInstruction() local
1677 if (DstSize <= SrcSize) in verifyPreISelGenericInstruction()
1680 if (SrcSize + OffsetOp.getImm() > DstSize) in verifyPreISelGenericInstruction()
2379 TypeSize SrcSize = TRI->getRegSizeInBits(SrcReg, *MRI); in visitMachineInstrBefore() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeLayout.cpp153 double extTSPScore(uint64_t SrcAddr, uint64_t SrcSize, uint64_t DstAddr, in extTSPScore() argument
156 if (SrcAddr + SrcSize == DstAddr) { in extTSPScore()
162 if (SrcAddr + SrcSize < DstAddr) { in extTSPScore()
163 const uint64_t Dist = DstAddr - (SrcAddr + SrcSize); in extTSPScore()
169 const uint64_t Dist = SrcAddr + SrcSize - DstAddr; in extTSPScore()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCall.cpp1293 uint64_t SrcSize = DL.getTypeSizeInBits(Val->getType()); in CoerceIntOrPtrToIntOrPtr() local
1296 if (SrcSize > DstSize) { in CoerceIntOrPtrToIntOrPtr()
1297 Val = CGF.Builder.CreateLShr(Val, SrcSize - DstSize, "coerce.highbits"); in CoerceIntOrPtrToIntOrPtr()
1301 Val = CGF.Builder.CreateShl(Val, DstSize - SrcSize, "coerce.highbits"); in CoerceIntOrPtrToIntOrPtr()
1337 llvm::TypeSize SrcSize = CGF.CGM.getDataLayout().getTypeAllocSize(SrcTy); in CreateCoercedLoad() local
1348 if (!SrcSize.isScalable() && !DstSize.isScalable() && in CreateCoercedLoad()
1349 SrcSize.getFixedValue() >= DstSize.getFixedValue()) { in CreateCoercedLoad()
1396 llvm::ConstantInt::get(CGF.IntPtrTy, SrcSize.getKnownMinValue())); in CreateCoercedLoad()
1407 llvm::TypeSize SrcSize = CGM.getDataLayout().getTypeAllocSize(SrcTy); in CreateCoercedStore() local
1415 assert(!SrcSize.isScalable()); in CreateCoercedStore()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstructionSelector.cpp
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/GISel/
H A DX86InstructionSelector.cpp288 const unsigned SrcSize = RBI.getSizeInBits(SrcReg, MRI, TRI); in selectCopy() local
294 if (DstSize > SrcSize && SrcRegBank.getID() == X86::GPRRegBankID && in selectCopy()
320 assert((DstSize == SrcSize || in selectCopy()
331 DstRegBank.getID() == X86::GPRRegBankID && SrcSize > DstSize && in selectCopy()
1491 unsigned SrcSize = SrcTy.getSizeInBits(); in selectMergeValues() local
1509 .addImm((Idx - 1) * SrcSize); in selectMergeValues()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1255 unsigned SrcSize = A->getType()->getScalarSizeInBits(); in visitZExt() local
1262 if (SrcSize < DstSize) { in visitZExt()
1263 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt()
1269 if (SrcSize == DstSize) { in visitZExt()
1270 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt()
1274 if (SrcSize > DstSize) { in visitZExt()
1719 int SrcSize = (int)SrcTy->getScalarSizeInBits() - IsSigned; in isKnownExactCastIntToFP() local
1724 if (SrcSize <= DestNumSigBits) in isKnownExactCastIntToFP()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMInstructionSelector.cpp881 unsigned SrcSize = SrcTy.getSizeInBits(); in select() local
882 switch (SrcSize) { in select()
910 unsigned NewOpc = selectSimpleExtOpc(I.getOpcode(), SrcSize); in select()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp6664 Value *SrcSize = IRB.CreateBinaryIntrinsic( in finalizeInstrumentation() local
6668 kShadowTLSAlignment, SrcSize); in finalizeInstrumentation()
6673 MS.VAArgOriginTLS, kShadowTLSAlignment, SrcSize); in finalizeInstrumentation()
6864 Value *SrcSize = IRB.CreateBinaryIntrinsic( in finalizeInstrumentation() local
6868 kShadowTLSAlignment, SrcSize); in finalizeInstrumentation()
7076 Value *SrcSize = IRB.CreateBinaryIntrinsic( in finalizeInstrumentation() local
7080 kShadowTLSAlignment, SrcSize); in finalizeInstrumentation()
7212 Value *SrcSize = IRB.CreateBinaryIntrinsic( in finalizeInstrumentation() local
7216 kShadowTLSAlignment, SrcSize); in finalizeInstrumentation()
7548 Value *SrcSize = IRB.CreateBinaryIntrinsic( in finalizeInstrumentation() local
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h728 unsigned SrcSize = Src->getScalarSizeInBits(); in getCastInstrCost() local
729 if (DL.isLegalInteger(SrcSize) && in getCastInstrCost()
730 SrcSize <= DL.getPointerTypeSizeInBits(Dst)) in getCastInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp2953 unsigned SrcSize = SrcTy->getScalarSizeInBits(); in isEliminableCastPair() local
2957 if (SrcSize < DstSize) in isEliminableCastPair()
2959 if (SrcSize > DstSize) in isEliminableCastPair()
2971 unsigned SrcSize = SrcTy->getScalarSizeInBits(); in isEliminableCastPair() local
2973 if (SrcSize <= PtrSize && SrcSize == DstSize) in isEliminableCastPair()

12