Lines Matching defs:Image
129 auto *Image = new GlobalVariable(M, Data->getType(), /*isConstant=*/true,
132 Image->setUnnamedAddr(GlobalValue::UnnamedAddr::Global);
133 Image->setSection(Relocatable ? ".llvm.offloading.relocatable"
135 Image->setAlignment(Align(object::OffloadBinary::getAlignment()));
157 ConstantExpr::getGetElementPtr(Image->getValueType(), Image, ZeroBegin);
159 ConstantExpr::getGetElementPtr(Image->getValueType(), Image, ZeroSize);
264 /// Embed the image \p Image into the module \p M so it can be found by the
266 GlobalVariable *createFatbinDesc(Module &M, ArrayRef<char> Image, bool IsHIP,
276 auto *Data = ConstantDataArray::get(C, Image);
637 Error offloading::wrapCudaBinary(Module &M, ArrayRef<char> Image,
641 GlobalVariable *Desc = createFatbinDesc(M, Image, /*IsHip=*/false, Suffix);
651 Error offloading::wrapHIPBinary(Module &M, ArrayRef<char> Image,
654 GlobalVariable *Desc = createFatbinDesc(M, Image, /*IsHip=*/true, Suffix);