LLVM API Documentation
#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>
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... | |
Get an unsinged integer, including error checks.
Definition at line 189 of file DataLayout.cpp.
References llvm::StringRef::getAsInteger().
Convert bits into bytes. Assert if not a byte width multiple.
Definition at line 197 of file DataLayout.cpp.
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().