LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
DataLayout.cpp File Reference
#include "llvm/IR/DataLayout.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/GetElementPtrTypeIterator.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/Mutex.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cstdlib>
Include dependency graph for DataLayout.cpp:

Go to the source code of this file.

Functions

static std::pair< StringRef,
StringRef
split (StringRef Str, char Separator)
 Checked version of split, to ensure mandatory subparts. More...
 
static unsigned getInt (StringRef R)
 Get an unsinged integer, including error checks. More...
 
static unsigned inBytes (unsigned Bits)
 Convert bits into bytes. Assert if not a byte width multiple. More...
 

Function Documentation

static unsigned getInt ( StringRef  R)
static

Get an unsinged integer, including error checks.

Definition at line 189 of file DataLayout.cpp.

References llvm::StringRef::getAsInteger().

static unsigned inBytes ( unsigned  Bits)
static

Convert bits into bytes. Assert if not a byte width multiple.

Definition at line 197 of file DataLayout.cpp.

static std::pair<StringRef, StringRef> split ( StringRef  Str,
char  Separator 
)
static

Checked version of split, to ensure mandatory subparts.

Definition at line 180 of file DataLayout.cpp.

References llvm::StringRef::empty(), Split(), and llvm::StringRef::split().