|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/IR/IntrinsicInst.h 422 assert(getLength()->getType() == L->getType() &&
lib/Analysis/LazyValueInfo.cpp 682 ConstantInt *Len = dyn_cast<ConstantInt>(MI->getLength());
lib/Analysis/Lint.cpp 338 dyn_cast<ConstantInt>(findValue(MCI->getLength(),
lib/Analysis/MemoryLocation.cpp 95 if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength()))
116 if (ConstantInt *C = dyn_cast<ConstantInt>(MI->getLength()))
lib/Analysis/StackSafetyAnalysis.cpp 271 const auto *Len = dyn_cast<ConstantInt>(MI->getLength());
lib/CodeGen/SafeStack.cpp 270 const auto *Len = dyn_cast<ConstantInt>(MI->getLength());
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 5757 SDValue Length = getValue(MI.getLength());
5761 Type *LengthTy = MI.getLength()->getType();
5775 SDValue Length = getValue(MI.getLength());
5779 Type *LengthTy = MI.getLength()->getType();
5793 SDValue Length = getValue(MI.getLength());
5796 Type *LengthTy = MI.getLength()->getType();
lib/IR/Verifier.cpp 4379 if (auto *LengthCI = dyn_cast<ConstantInt>(AMI->getLength())) {
lib/Target/AArch64/AArch64FastISel.cpp 3525 if (isa<ConstantInt>(MTI->getLength()) && IsMemCpy) {
3528 uint64_t Len = cast<ConstantInt>(MTI->getLength())->getZExtValue();
3541 if (!MTI->getLength()->getType()->isIntegerTy(64))
3558 if (!MSI->getLength()->getType()->isIntegerTy(64))
lib/Target/AArch64/AArch64StackTagging.cpp 117 uint64_t StoreSize = cast<ConstantInt>(MSI->getLength())->getZExtValue();
373 if (MSI->isVolatile() || !isa<ConstantInt>(MSI->getLength()))
lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp 74 if (shouldExpandOperationWithSize(Memcpy->getLength())) {
87 if (shouldExpandOperationWithSize(Memmove->getLength())) {
97 if (shouldExpandOperationWithSize(Memset->getLength())) {
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp 887 MemCpy->getLength(), MemCpy->isVolatile());
895 MemMove->getLength(), MemMove->isVolatile());
902 MemSet->getLength(), MemSet->getDestAlignment(),
lib/Target/ARM/ARMFastISel.cpp 2529 if (isa<ConstantInt>(MTI.getLength()) && isMemCpy) {
2532 uint64_t Len = cast<ConstantInt>(MTI.getLength())->getZExtValue();
2545 if (!MTI.getLength()->getType()->isIntegerTy(32))
2560 if (!MSI.getLength()->getType()->isIntegerTy(32))
lib/Target/ARM/ARMTargetTransformInfo.cpp 518 ConstantInt *C = dyn_cast<ConstantInt>(MI->getLength());
lib/Target/Mips/MipsFastISel.cpp 1663 if (!MTI->getLength()->getType()->isIntegerTy(32))
1673 if (!MSI->getLength()->getType()->isIntegerTy(32))
lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp 87 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(IntrCall->getLength())) {
lib/Target/X86/X86FastISel.cpp 2729 if (isa<ConstantInt>(MCI->getLength())) {
2732 uint64_t Len = cast<ConstantInt>(MCI->getLength())->getZExtValue();
2744 if (!MCI->getLength()->getType()->isIntegerTy(SizeWidth))
2759 if (!MSI->getLength()->getType()->isIntegerTy(SizeWidth))
lib/Transforms/InstCombine/InstCombineCalls.cpp 130 MI->setLength(Constant::getNullValue(MI->getLength()->getType()));
136 ConstantInt *MemOpLength = dyn_cast<ConstantInt>(MI->getLength());
240 MI->setLength(Constant::getNullValue(MI->getLength()->getType()));
245 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength());
1805 if (Constant *NumBytes = dyn_cast<Constant>(MI->getLength())) {
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp 1487 IRB.CreateZExtOrTrunc(I.getLength(), DFSF.DFS.IntptrTy)});
1495 I.getLength(),
1496 ConstantInt::get(I.getLength()->getType(), DFSF.DFS.ShadowWidth / 8));
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp 164 Value *Length = MI.getLength();
355 Value *SizeVar = MI->getLength();
378 auto *SizeType = dyn_cast<IntegerType>(MemI->getLength()->getType());
lib/Transforms/Instrumentation/ValueProfilePlugins.inc 39 Value *Length = MI.getLength();
lib/Transforms/Scalar/DeadStoreElimination.cpp 939 Value *EarlierWriteLength = EarlierIntrinsic->getLength();
lib/Transforms/Scalar/InferAddressSpaces.cpp 795 MSI->getLength(), MSI->getDestAlignment(),
813 MTI->getLength(),
820 MTI->getLength(),
lib/Transforms/Scalar/LoopIdiomRecognize.cpp 809 if (MSI->isVolatile() || !isa<ConstantInt>(MSI->getLength()))
826 uint64_t SizeInBytes = cast<ConstantInt>(MSI->getLength())->getZExtValue();
lib/Transforms/Scalar/MemCpyOptimizer.cpp 180 int64_t Size = cast<ConstantInt>(MSI->getLength())->getZExtValue();
348 !isa<ConstantInt>(MSI->getLength()))
710 if (isa<ConstantInt>(MSI->getLength()) && !MSI->isVolatile())
944 ConstantInt *MDepLen = dyn_cast<ConstantInt>(MDep->getLength());
945 ConstantInt *MLen = dyn_cast<ConstantInt>(M->getLength());
987 M->getLength(), M->isVolatile());
991 M->getLength(), M->isVolatile());
1029 Value *DestSize = MemSet->getLength();
1030 Value *SrcSize = MemCpy->getLength();
1106 ConstantInt *MemSetSize = dyn_cast<ConstantInt>(MemSet->getLength());
1112 ConstantInt *CopySize = cast<ConstantInt>(MemCpy->getLength());
1155 Builder.CreateMemSet(M->getRawDest(), ByteVal, M->getLength(),
1173 ConstantInt *CopySize = dyn_cast<ConstantInt>(M->getLength());
1245 M->getLength()->getType() };
1279 ConstantInt *C1 = dyn_cast<ConstantInt>(MDep->getLength());
lib/Transforms/Scalar/SROA.cpp 830 ConstantInt *Length = dyn_cast<ConstantInt>(II.getLength());
850 ConstantInt *Length = dyn_cast<ConstantInt>(II.getLength());
2068 if (MI->isVolatile() || !isa<Constant>(MI->getLength()))
2764 if (!isa<Constant>(II.getLength())) {
2786 auto *C = cast<ConstantInt>(II.getLength());
2799 Type *SizeTy = II.getLength()->getType();
2936 II.setLength(ConstantInt::get(II.getLength()->getType(),
2971 Type *SizeTy = II.getLength()->getType();
lib/Transforms/Utils/LowerMemIntrinsics.cpp 410 if (ConstantInt *CI = dyn_cast<ConstantInt>(Memcpy->getLength())) {
424 /* CopyLen */ Memcpy->getLength(),
437 /* CopyLen */ Memmove->getLength(),
447 /* CopyLen */ Memset->getLength(),
lib/Transforms/Utils/VNCoercion.cpp 286 ConstantInt *SizeCst = dyn_cast<ConstantInt>(MI->getLength());
tools/polly/lib/Analysis/ScopBuilder.cpp 1731 auto *LengthVal = SE.getSCEVAtScope(MemIntr->getLength(), L);
tools/polly/lib/Analysis/ScopDetection.cpp 774 if (!isAffine(SE.getSCEVAtScope(cast<MemIntrinsic>(II).getLength(), L), L,