//=======- CaptureTrackingTest.cpp - Unit test for the Capture Tracking ---===// // // 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/CaptureTracking.h" #include "llvm/AsmParser/Parser.h" #include "llvm/IR/Dominators.h" #include "llvm/IR/Instructions.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" #include "llvm/Support/SourceMgr.h" #include "gtest/gtest.h" usingnamespacellvm; TEST(CaptureTracking, MaxUsesToExplore) { … } struct CollectingCaptureTracker : public CaptureTracker { … }; TEST(CaptureTracking, MultipleUsesInSameInstruction) { … }