#include "llvm/IR/VectorBuilder.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "gtest/gtest.h"
usingnamespacellvm;
namespace {
static unsigned VectorNumElements = …;
class VectorBuilderTest : public testing::Test { … };
TEST_F(VectorBuilderTest, TestCreateBinaryInstructions) { … }
static bool isAllTrueMask(Value *Val, unsigned NumElements) { … }
TEST_F(VectorBuilderTest, TestCreateBinaryInstructions_FixedVector_NoMask) { … }
static bool isLegalConstEVL(Value *Val, unsigned ExpectedEVL) { … }
TEST_F(VectorBuilderTest, TestCreateBinaryInstructions_FixedVector_NoEVL) { … }
TEST_F(VectorBuilderTest,
TestCreateBinaryInstructions_FixedVector_NoMask_NoEVL) { … }
TEST_F(VectorBuilderTest, TestCreateLoadStore) { … }
TEST_F(VectorBuilderTest, TestFail_SilentlyReturnNone) { … }
TEST_F(VectorBuilderTest, TestFail_ReportAndAbort) { … }
}