#include "llvm/IR/DataLayout.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Type.h"
#include "llvm/TargetParser/Triple.h"
#include "llvm/Testing/Support/Error.h"
#include "gtest/gtest.h"
usingnamespacellvm;
namespace {
class DataLayoutTest : public ::testing::Test { … };
TEST(DataLayout, LayoutStringFormat) { … }
TEST(DataLayoutTest, InvalidSpecifier) { … }
TEST(DataLayoutTest, ParseEndianness) { … }
TEST(DataLayoutTest, ParseMangling) { … }
TEST(DataLayoutTest, ParseStackNaturalAlign) { … }
TEST(DataLayoutTest, ParseAddrSpace) { … }
TEST(DataLayoutTest, ParseFuncPtrSpec) { … }
class DataLayoutPrimitiveSpecificationTest
: public DataLayoutTest,
public ::testing::WithParamInterface<char> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(DataLayoutPrimitiveSpecificationTest, ParsePrimitiveSpec) { … }
TEST(DataLayoutTest, ParseAggregateSpec) { … }
TEST(DataLayout, ParsePointerSpec) { … }
TEST(DataLayoutTest, ParseNativeIntegersSpec) { … }
TEST(DataLayout, ParseNonIntegralAddrSpace) { … }
TEST(DataLayout, GetStackAlignment) { … }
TEST(DataLayout, GetPointerSizeInBits) { … }
TEST(DataLayout, GetPointerSize) { … }
TEST(DataLayout, GetIndexSizeInBits) { … }
TEST(DataLayout, GetIndexSize) { … }
TEST(DataLayout, GetPointerABIAlignment) { … }
TEST(DataLayout, GetPointerPrefAlignment) { … }
TEST(DataLayout, IsNonIntegralAddressSpace) { … }
TEST(DataLayoutTest, CopyAssignmentInvalidatesStructLayout) { … }
TEST(DataLayoutTest, FunctionPtrAlign) { … }
TEST(DataLayoutTest, ValueOrABITypeAlignment) { … }
TEST(DataLayoutTest, GlobalsAddressSpace) { … }
TEST(DataLayoutTest, VectorAlign) { … }
TEST(DataLayoutTest, UEFI) { … }
}