[llvm] [SandboxIR] IR Tracker (PR #99238)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 17 16:23:25 PDT 2024


================
@@ -0,0 +1,155 @@
+//===- TrackerTest.cpp ----------------------------------------------------===//
+//
+// 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/AsmParser/Parser.h"
+#include "llvm/IR/BasicBlock.h"
+#include "llvm/IR/Function.h"
+#include "llvm/IR/Instruction.h"
+#include "llvm/IR/Module.h"
+#include "llvm/SandboxIR/SandboxIR.h"
+#include "llvm/Support/SourceMgr.h"
+#include "gtest/gtest.h"
+
+using namespace llvm;
+
+struct TrackerTest : public testing::Test {
+  LLVMContext C;
+  std::unique_ptr<Module> M;
+
+  void parseIR(LLVMContext &C, const char *IR) {
----------------
aeubanks wrote:

these helper methods are in almost every unittest, we really need these common utilities for all unittests somewhere shared (if they don't already exist), but that's a problem for another day

https://github.com/llvm/llvm-project/pull/99238


More information about the llvm-commits mailing list