LLVM
15.0.0git
|
#include "llvm/IR/DataLayout.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Triple.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/GetElementPtrTypeIterator.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/Value.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/MemAlloc.h"
#include "llvm/Support/TypeSize.h"
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <cstdlib>
#include <new>
#include <utility>
Go to the source code of this file.
Functions | |
static Error | reportError (const Twine &Message) |
static Error | split (StringRef Str, char Separator, std::pair< StringRef, StringRef > &Split) |
Checked version of split, to ensure mandatory subparts. More... | |
template<typename IntTy > | |
static Error | getInt (StringRef R, IntTy &Result) |
Get an unsigned integer, including error checks. More... | |
template<typename IntTy > | |
static Error | getIntInBytes (StringRef R, IntTy &Result) |
Get an unsigned integer representing the number of bits and convert it into bytes. More... | |
static Error | getAddrSpace (StringRef R, unsigned &AddrSpace) |
static APInt | getElementIndex (TypeSize ElemSize, APInt &Offset) |
Variables | |
static const LayoutAlignElem | DefaultAlignments [] |
Definition at line 250 of file DataLayout.cpp.
Referenced by llvm::AMDGPUTargetLowering::isSDNodeAlwaysUniform().
Definition at line 907 of file DataLayout.cpp.
References assert(), llvm::BitWidth, llvm::APInt::getZero(), llvm::LinearPolySize< LeafTy >::isScalable(), and llvm::isUIntN().
Referenced by llvm::DataLayout::getGEPIndexForOffset(), and llvm::DataLayout::getGEPIndicesForOffset().
Get an unsigned integer, including error checks.
Definition at line 231 of file DataLayout.cpp.
References error, reportError(), and llvm::Error::success().
Referenced by llvm::PointerIntPair< llvm::IntrusiveBackListNode *, 1 >::getInt().
Get an unsigned integer representing the number of bits and convert it into bytes.
Error out of not a byte width multiple.
Definition at line 241 of file DataLayout.cpp.
Definition at line 214 of file DataLayout.cpp.
References llvm::createStringError(), and llvm::inconvertibleErrorCode().
|
static |
Checked version of split, to ensure mandatory subparts.
Definition at line 219 of file DataLayout.cpp.
References assert(), reportError(), and llvm::Error::success().
Referenced by llvm::StringRef::split().
|
static |
Definition at line 165 of file DataLayout.cpp.
Referenced by llvm::DataLayout::reset().