Home
last modified time | relevance | path

Searched refs:ObjectSize (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/llvm/lib/ObjCopy/wasm/
H A DWasmWriter.cpp46 size_t ObjectSize = sizeof(WasmMagic) + sizeof(WasmVersion); in finalize() local
52 ObjectSize += SectionSize; in finalize()
54 return ObjectSize; in finalize()
/llvm-project-15.0.7/llvm/unittests/Transforms/IPO/
H A DWholeProgramDevirt.cpp18 VT1.ObjectSize = 8; in TEST()
23 VT2.ObjectSize = 8; in TEST()
63 VT1.ObjectSize = 8; in TEST()
66 VT2.ObjectSize = 8; in TEST()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp619 Value *llvm::lowerObjectSizeCall(IntrinsicInst *ObjectSize, in lowerObjectSizeCall() argument
623 return lowerObjectSizeCall(ObjectSize, DL, TLI, /*AAResults=*/nullptr, in lowerObjectSizeCall()
627 Value *llvm::lowerObjectSizeCall(IntrinsicInst *ObjectSize, in lowerObjectSizeCall() argument
631 assert(ObjectSize->getIntrinsicID() == Intrinsic::objectsize && in lowerObjectSizeCall()
634 bool MaxVal = cast<ConstantInt>(ObjectSize->getArgOperand(1))->isZero(); in lowerObjectSizeCall()
647 cast<ConstantInt>(ObjectSize->getArgOperand(2))->isOne(); in lowerObjectSizeCall()
649 auto *ResultType = cast<IntegerType>(ObjectSize->getType()); in lowerObjectSizeCall()
650 bool StaticOnly = cast<ConstantInt>(ObjectSize->getArgOperand(3))->isZero(); in lowerObjectSizeCall()
659 LLVMContext &Ctx = ObjectSize->getFunction()->getContext(); in lowerObjectSizeCall()
662 Eval.compute(ObjectSize->getArgOperand(0)); in lowerObjectSizeCall()
[all …]
H A DBasicAliasAnalysis.cpp157 uint64_t ObjectSize = getObjectSize(V, DL, TLI, NullIsValidLoc, in isObjectSmallerThan() local
160 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize < Size; in isObjectSmallerThan()
188 uint64_t ObjectSize = getObjectSize(V, DL, TLI, NullIsValidLoc); in isObjectSize() local
189 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize == Size; in isObjectSize()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/IPO/
H A DWholeProgramDevirt.h94 uint64_t ObjectSize = 0; member
155 uint64_t minAfterBytes() const { return TM->Bits->ObjectSize - TM->Offset; } in minAfterBytes()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DMemoryBuiltins.h174 Value *lowerObjectSizeCall(IntrinsicInst *ObjectSize, const DataLayout &DL,
176 Value *lowerObjectSizeCall(IntrinsicInst *ObjectSize, const DataLayout &DL,
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZFrameLowering.cpp88 uint64_t ObjectSize = 0; // Size of Object in bytes. member
109 SortingObjects[Obj].ObjectSize = MFI.getObjectSize(Obj); in orderFrameObjects()
144 if (!A.ObjectSize || !B.ObjectSize) in orderFrameObjects()
145 return A.ObjectSize > 0; in orderFrameObjects()
146 uint64_t ADensityCmp = A.D12Count * B.ObjectSize; in orderFrameObjects()
147 uint64_t BDensityCmp = B.D12Count * A.ObjectSize; in orderFrameObjects()
150 return A.DPairCount * B.ObjectSize < B.DPairCount * A.ObjectSize; in orderFrameObjects()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DSanitizers.def99 SANITIZER("object-size", ObjectSize)
141 IntegerDivideByZero | NonnullAttribute | Null | ObjectSize |
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVFrameLowering.cpp930 int64_t ObjectSize = MFI.getObjectSize(FI); in assignRVVStackObjectOffsets() local
934 if (ObjectSize < 8) in assignRVVStackObjectOffsets()
935 ObjectSize = 8; in assignRVVStackObjectOffsets()
936 Offset = alignTo(Offset + ObjectSize, ObjectAlign); in assignRVVStackObjectOffsets()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp1363 uint64_t ObjectSize; in swapGEPOperand() local
1364 if (!getObjectSize(NewBase, ObjectSize, DAL, TLI) || in swapGEPOperand()
1365 Offset.ugt(ObjectSize)) { in swapGEPOperand()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86FrameLowering.cpp3636 unsigned ObjectSize = 0; // Size of Object in bytes. member
3678 static_cast<uint64_t>(B.ObjectSize); in operator ()()
3680 static_cast<uint64_t>(A.ObjectSize); in operator ()()
3724 int ObjectSize = MFI.getObjectSize(Obj); in orderFrameObjects() local
3725 if (ObjectSize == 0) in orderFrameObjects()
3727 SortingObjects[Obj].ObjectSize = 4; in orderFrameObjects()
3729 SortingObjects[Obj].ObjectSize = ObjectSize; in orderFrameObjects()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp1028 Function *ObjectSize = Intrinsic::getDeclaration( in handleAlloca() local
1035 ObjectSize, in handleAlloca()
/llvm-project-15.0.7/clang/lib/Driver/
H A DSanitizerArgs.cpp332 AllRemove |= SanitizerKind::ObjectSize; in SanitizerArgs()
336 if ((Add & SanitizerKind::ObjectSize) && DiagnoseErrors) in SanitizerArgs()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExpr.cpp671 SanOpts.has(SanitizerKind::ObjectSize) || in sanitizePerformTypeCheck()
733 if (SanOpts.has(SanitizerKind::ObjectSize) && in EmitTypeCheck()
734 !SkippedChecks.has(SanitizerKind::ObjectSize) && in EmitTypeCheck()
756 Checks.push_back(std::make_pair(LargeEnough, SanitizerKind::ObjectSize)); in EmitTypeCheck()
H A DCodeGenFunction.cpp1178 SkippedChecks.set(SanitizerKind::ObjectSize, true); in StartFunction()
H A DCGBuiltin.cpp756 uint64_t ObjectSize; in evaluateOrEmitBuiltinObjectSize() local
757 if (!E->tryEvaluateObjectSize(ObjectSize, getContext(), Type)) in evaluateOrEmitBuiltinObjectSize()
759 return ConstantInt::get(ResType, ObjectSize, /*isSigned=*/true); in evaluateOrEmitBuiltinObjectSize()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DWholeProgramDevirt.cpp974 Bits.back().ObjectSize = in buildTypeIdentifierMap()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp6865 const int64_t ObjectSize = in visitIntrinsicCall() local
6889 Res = DAG.getLifetimeNode(IsStart, sdl, getRoot(), FrameIndex, ObjectSize, in visitIntrinsicCall()