Home | History | Annotate | Download | only in Instrumentation

Lines Matching defs:Size

477     uint64_t Size;
538 ConstantInt *Size = dyn_cast<ConstantInt>(II.getArgOperand(0));
539 // If size argument is undefined, don't do anything.
540 if (Size->isMinusOne()) return;
541 // Check that size doesn't saturate uint64_t and can
543 const uint64_t SizeValue = Size->getValue().getLimitedValue();
562 // alloca() may be called with 0 size, ignore it.
575 void poisonAlloca(Value *V, uint64_t Size, IRBuilder<> &IRB, bool DoPoison);
578 int Size);
773 // Instrument unusual size or unusual alignment.
776 // to report the actual access size.
778 Value *Size = ConstantInt::get(IntptrTy, TypeSize / 8);
781 IRB.CreateCall2(AsanMemoryAccessCallbackSized[IsWrite], AddrLong, Size);
786 instrumentAddress(I, I, Addr, 8, IsWrite, Size, false);
787 instrumentAddress(I, I, LastByte, 8, IsWrite, Size, false);
824 // (Addr & (Granularity - 1)) + size - 1
828 // (uint8_t) ((Addr & (Granularity-1)) + size - 1)
831 // ((uint8_t) ((Addr & (Granularity-1)) + size - 1)) >= ShadowValue
1034 size_t n = GlobalsToChange.size();
1039 // size_t size;
1343 (unsigned)ClCoverageBlockThreshold < AllBlocks.size()) {
1429 ToInstrument.size() > (unsigned)ClInstrumentationWithCallsThreshold)
1517 size_t n = ShadowBytes.size();
1541 // Fake stack allocator (asan_fake_stack.h) has 11 size classes
1552 // Set Size bytes starting from ShadowBase to kAsanStackAfterReturnMagic.
1554 // memset. Size is a multiple of 8.
1558 IRBuilder<> &IRB, Value *ShadowBase, int Size) {
1559 assert(!(Size % 8));
1561 for (int i = 0; i < Size; i += 8) {
1579 assert(AllocaVec.size() > 0);
1585 SVD.reserve(AllocaVec.size());
1592 // Minimal header size (left redzone) is 4 pointers,
1645 poisonAlloca(APC.AI, APC.Size, IRB, APC.DoPoison);
1744 void FunctionStackPoisoner::poisonAlloca(Value *V, uint64_t Size,
1748 Value *SizeArg = ConstantInt::get(IntptrTy, Size);
1755 // (1) collect all llvm.lifetime.xxx(%size, %value) describing the alloca.
1756 // (2) if %size is constant, poison memory for llvm.lifetime.end (to detect