llvm/llvm/unittests/CodeGen/TargetOptionsTest.cpp

#include "llvm/Target/TargetOptions.h"
#include "llvm/CodeGen/TargetPassConfig.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/InitializePasses.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Target/TargetMachine.h"
#include "gtest/gtest.h"

usingnamespacellvm;

namespace llvm {
  void initializeTestPassPass(PassRegistry &);
}

namespace {

void initLLVM() {}

/// Create a TargetMachine. We need a target that doesn't have IPRA enabled by
/// default. That turns out to be all targets at the moment, so just use X86.
std::unique_ptr<TargetMachine> createTargetMachine(bool EnableIPRA) {}

TargetOptionsTest;

static void targetOptionsTest(bool EnableIPRA) {}

} // End of anonymous namespace.

TEST(TargetOptionsTest, IPRASetToOff) {}

TEST(TargetOptionsTest, IPRASetToOn) {}

int main(int argc, char **argv) {}