//===-- llvm/IR/Mangler.h - Self-contained name mangler ---------*- 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 // //===----------------------------------------------------------------------===// // // Unified name mangler for various backends. // //===----------------------------------------------------------------------===// #ifndef LLVM_IR_MANGLER_H #define LLVM_IR_MANGLER_H #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/StringRef.h" namespace llvm { class DataLayout; class GlobalValue; template <typename T> class SmallVectorImpl; class Triple; class Twine; class raw_ostream; class Mangler { … }; void emitLinkerFlagsForGlobalCOFF(raw_ostream &OS, const GlobalValue *GV, const Triple &TT, Mangler &Mangler); void emitLinkerFlagsForUsedCOFF(raw_ostream &OS, const GlobalValue *GV, const Triple &T, Mangler &M); /// Returns the ARM64EC mangled function name unless the input is already /// mangled. std::optional<std::string> getArm64ECMangledFunctionName(StringRef Name); /// Returns the ARM64EC demangled function name, unless the input is not /// mangled. std::optional<std::string> getArm64ECDemangledFunctionName(StringRef Name); } // End llvm namespace #endif