|
LLVM
3.7.0
|
#include "llvm/IR/DataLayout.h"#include "llvm/ADT/DenseMap.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/Triple.h"#include "llvm/IR/Constants.h"#include "llvm/IR/DerivedTypes.h"#include "llvm/IR/GetElementPtrTypeIterator.h"#include "llvm/IR/Module.h"#include "llvm/Support/ErrorHandling.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 unsigned integer, including error checks. More... | |
| static unsigned | inBytes (unsigned Bits) |
| Convert bits into bytes. Assert if not a byte width multiple. More... | |
Variables | |
| static const LayoutAlignElem | DefaultAlignments [] |
Get an unsigned integer, including error checks.
Definition at line 203 of file DataLayout.cpp.
References error(), llvm::StringRef::getAsInteger(), and llvm::report_fatal_error().
Convert bits into bytes. Assert if not a byte width multiple.
Definition at line 212 of file DataLayout.cpp.
References llvm::report_fatal_error().
Checked version of split, to ensure mandatory subparts.
Definition at line 192 of file DataLayout.cpp.
References llvm::StringRef::empty(), llvm::report_fatal_error(), Split(), and llvm::StringRef::split().
|
static |
Definition at line 158 of file DataLayout.cpp.
Referenced by llvm::DataLayout::reset().
1.8.6