Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:Offset

396   /// Returns the variable used to store the offset of an instance variable.
1939 // Get the offset
1941 uint64_t Offset = BaseOffset;
1943 Offset = BaseOffset - superInstanceSize;
1945 llvm::Constant *OffsetValue = llvm::ConstantInt::get(IntTy, Offset);
1946 // Create the direct offset value
2038 // we emit a symbol containing the offset for each ivar in the class. This
2043 // Offset pointer for getting at the correct field in the ivar list when
2046 // the offset (third field in ivar structure)
2062 llvm::GlobalVariable *offset = TheModule.getNamedGlobal(Name);
2063 if (offset) {
2064 offset->setInitializer(offsetValue);
2068 offset->setLinkage(llvm::GlobalValue::ExternalLinkage);
2071 offset = new llvm::GlobalVariable(TheModule, offsetValue->getType(),
2471 uint64_t Offset = -1;
2475 // offset variable with a guess if we only have the interface. The
2480 Offset = ComputeIvarBaseOffset(CGM, ID, Ivar);
2482 llvm::ConstantInt *OffsetGuess = llvm::ConstantInt::get(Int32Ty, Offset,
2543 llvm::Value *Offset = TheModule.getGlobalVariable(name);
2544 if (!Offset)
2545 Offset = new llvm::GlobalVariable(TheModule, IntTy,
2548 return CGF.Builder.CreateLoad(Offset);
2550 uint64_t Offset = ComputeIvarBaseOffset(CGF.CGM, Interface, Ivar);
2551 return llvm::ConstantInt::get(PtrDiffTy, Offset, /*isSigned*/true);