Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:Offset

84                                         CharUnits offset);
192 /// - the virtual offset is (memptr.ptr - 1)
197 /// - the virtual offset is (memptr.ptr)
202 /// to a vtable pointer from which the virtual offset is applied.
258 // offset within the vtable (+1 for the virtual flag on non-ARM).
266 // Apply the offset.
305 // Apply the offset, which we assume is non-null.
306 llvm::Value *Addr = Builder.CreateInBoundsGEP(Base, MemPtr, "memptr.offset");
317 /// Obligatory offset/adjustment diagram:
318 /// <-- offset --> <-- adjustment -->
323 /// we add the offset to the adjustment because the address point has
325 /// we subtract the offset from the adjustment because the address point
370 // offset if the source is non-null.
386 uint64_t Offset = cast<llvm::ConstantInt>(Adj)->getZExtValue();
387 Offset <<= 1;
388 Adj = llvm::ConstantInt::get(Adj->getType(), Offset);
418 // Calculate the offset to the base class.
419 llvm::Constant *Offset =
423 // If there's no offset, we're done.
424 if (!Offset) return C;
427 // check and then add the offset. In the common case, we can fold
428 // away the offset.
439 // Otherwise, just add the offset.
440 int64_t OffsetV = cast<llvm::ConstantInt>(Offset)->getSExtValue();
453 Dst = llvm::ConstantExpr::getNSWSub(C, Offset);
455 Dst = llvm::ConstantExpr::getNSWAdd(C, Offset);
462 int64_t OffsetV = cast<llvm::ConstantInt>(Offset)->getSExtValue();
464 Offset = llvm::ConstantInt::get(Offset->getType(), OffsetV);
471 Values[1] = llvm::ConstantExpr::getSub(CS->getOperand(1), Offset);
473 Values[1] = llvm::ConstantExpr::getAdd(CS->getOperand(1), Offset);
495 CharUnits offset) {
497 // A pointer to data member is an offset from the base address of
499 return llvm::ConstantInt::get(getPtrDiffTy(), offset.getQuantity());
531 // virtual table offset (in bytes) of the function,
671 /// member pointers, for which '0' is a valid offset.
862 // Compute an offset to the cookie.
1005 // The number of elements is at offset sizeof(size_t) relative to that.