//===- MemoryOpRemark.h - Memory operation remark analysis -*- C++ ------*-===// // // 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 // //===----------------------------------------------------------------------===// // // Provide more information about instructions that copy, move, or initialize // memory, including those with a "auto-init" !annotation metadata. // //===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_MEMORYOPREMARK_H #define LLVM_TRANSFORMS_UTILS_MEMORYOPREMARK_H #include "llvm/ADT/StringRef.h" #include "llvm/Analysis/TargetLibraryInfo.h" #include "llvm/IR/DiagnosticInfo.h" #include <optional> namespace llvm { class CallInst; class DataLayout; class DiagnosticInfoIROptimization; class Instruction; class IntrinsicInst; class Value; class OptimizationRemarkEmitter; class StoreInst; // FIXME: Once we get to more remarks like this one, we need to re-evaluate how // much of this logic should actually go into the remark emitter. struct MemoryOpRemark { … }; /// Special case for -ftrivial-auto-var-init remarks. struct AutoInitRemark : public MemoryOpRemark { … }; } // namespace llvm #endif