LLVM 19.0.0git
Classes | Namespaces | Functions | Variables
MSFCommon.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/MathExtras.h"
#include <cstdint>
#include <vector>

Go to the source code of this file.

Classes

struct  llvm::msf::SuperBlock
 
struct  llvm::msf::MSFLayout
 
class  llvm::msf::MSFStreamLayout
 Describes the layout of a stream in an MSF layout. More...
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::msf
 

Functions

MSFStreamLayout llvm::msf::getFpmStreamLayout (const MSFLayout &Msf, bool IncludeUnusedFpmData=false, bool AltFpm=false)
 Determine the layout of the FPM stream, given the MSF layout.
 
bool llvm::msf::isValidBlockSize (uint32_t Size)
 
uint64_t llvm::msf::getMaxFileSizeFromBlockSize (uint32_t Size)
 Given the specified block size, returns the maximum possible file size.
 
uint32_t llvm::msf::getMinimumBlockCount ()
 
uint32_t llvm::msf::getFirstUnreservedBlock ()
 
uint64_t llvm::msf::bytesToBlocks (uint64_t NumBytes, uint64_t BlockSize)
 
uint64_t llvm::msf::blockToOffset (uint64_t BlockNumber, uint64_t BlockSize)
 
uint32_t llvm::msf::getFpmIntervalLength (const MSFLayout &L)
 
uint32_t llvm::msf::getNumFpmIntervals (uint32_t BlockSize, uint32_t NumBlocks, bool IncludeUnusedFpmData, int FpmNumber)
 Given an MSF with the specified block size and number of blocks, determine how many pieces the specified Fpm is split into.
 
uint32_t llvm::msf::getNumFpmIntervals (const MSFLayout &L, bool IncludeUnusedFpmData=false, bool AltFpm=false)
 
Error llvm::msf::validateSuperBlock (const SuperBlock &SB)
 

Variables

static const char llvm::msf::Magic []