// Create a load instruction for a 32-bit integer from pointer %ptr LoadInst* loadInst = LoadInst::Create( Type::getInt32Ty(context), ptr, "load", false, 4, nullptr );
// Create a load instruction for a float from pointer %fp LoadInst* loadInst = LoadInst::Create( Type::getFloatTy(context), fp, "load", false, 4, nullptr );This code creates a load instruction that loads a float from a pointer %fp. The instruction's name is "load". The alignment is 4 bytes, and there is no metadata. The package library is LLVM.