//===- ProvenanceAnalysisEvaluator.cpp - ObjC ARC Optimization ------------===// // // 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 "ProvenanceAnalysis.h" #include "llvm/Transforms/ObjCARC.h" #include "llvm/ADT/SetVector.h" #include "llvm/Analysis/AliasAnalysis.h" #include "llvm/IR/Function.h" #include "llvm/IR/InstIterator.h" #include "llvm/Support/raw_ostream.h" usingnamespacellvm; usingnamespacellvm::objcarc; static StringRef getName(Value *V) { … } static void insertIfNamed(SetVector<Value *> &Values, Value *V) { … } PreservedAnalyses PAEvalPass::run(Function &F, FunctionAnalysisManager &AM) { … }