llvm/llvm/unittests/IR/IRBuilderTest.cpp

//===- llvm/unittest/IR/IRBuilderTest.cpp - IRBuilder tests ---------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "llvm/Analysis/InstSimplifyFolder.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/DIBuilder.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/IntrinsicsAArch64.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/MDBuilder.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/NoFolder.h"
#include "llvm/IR/Verifier.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"

#include <type_traits>

usingnamespacellvm;
UnorderedElementsAre;

namespace {

class IRBuilderTest : public testing::Test {};

TEST_F(IRBuilderTest, Intrinsics) {}

TEST_F(IRBuilderTest, IntrinsicMangling) {}

TEST_F(IRBuilderTest, IntrinsicsWithScalableVectors) {}

TEST_F(IRBuilderTest, CreateVScale) {}

TEST_F(IRBuilderTest, CreateStepVector) {}

TEST_F(IRBuilderTest, CreateStepVectorI3) {}

TEST_F(IRBuilderTest, ConstrainedFP) {}

TEST_F(IRBuilderTest, ConstrainedFPIntrinsics) {}

TEST_F(IRBuilderTest, ConstrainedFPFunctionCall) {}

TEST_F(IRBuilderTest, Lifetime) {}

TEST_F(IRBuilderTest, CreateCondBr) {}

TEST_F(IRBuilderTest, LandingPadName) {}

TEST_F(IRBuilderTest, DataLayout) {}

TEST_F(IRBuilderTest, GetIntTy) {}

TEST_F(IRBuilderTest, UnaryOperators) {}

TEST_F(IRBuilderTest, FastMathFlags) {}

TEST_F(IRBuilderTest, WrapFlags) {}

TEST_F(IRBuilderTest, RAIIHelpersTest) {}

TEST_F(IRBuilderTest, createFunction) {}

TEST_F(IRBuilderTest, DIBuilder) {}

TEST_F(IRBuilderTest, createArtificialSubprogram) {}

// Check that we can add debug info to an existing DICompileUnit.
TEST_F(IRBuilderTest, appendDebugInfo) {}

TEST_F(IRBuilderTest, InsertExtractElement) {}

TEST_F(IRBuilderTest, CreateGlobalString) {}

TEST_F(IRBuilderTest, DebugLoc) {}

TEST_F(IRBuilderTest, DIImportedEntity) {}

//  0: #define M0 V0          <-- command line definition
//  0: main.c                 <-- main file
//     3:   #define M1 V1     <-- M1 definition in main.c
//     5:   #include "file.h" <-- inclusion of file.h from main.c
//          1: #define M2     <-- M2 definition in file.h with no value
//     7:   #undef M1 V1      <-- M1 un-definition in main.c
TEST_F(IRBuilderTest, DIBuilderMacro) {}

TEST_F(IRBuilderTest, NoFolderNames) {}

TEST_F(IRBuilderTest, CTAD) {}
}