//===-------- llvm/GlobalIFunc.h - GlobalIFunc class ------------*- 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 // //===----------------------------------------------------------------------===// /// /// \file /// This file contains the declaration of the GlobalIFunc class, which /// represents a single indirect function in the IR. Indirect function uses /// ELF symbol type extension to mark that the address of a declaration should /// be resolved at runtime by calling a resolver function. /// //===----------------------------------------------------------------------===// #ifndef LLVM_IR_GLOBALIFUNC_H #define LLVM_IR_GLOBALIFUNC_H #include "llvm/ADT/ilist_node.h" #include "llvm/IR/Constant.h" #include "llvm/IR/GlobalObject.h" #include "llvm/IR/OperandTraits.h" #include "llvm/IR/Value.h" namespace llvm { class Twine; class Module; // Traits class for using GlobalIFunc in symbol table in Module. template <typename ValueSubClass, typename... Args> class SymbolTableListTraits; class GlobalIFunc final : public GlobalObject, public ilist_node<GlobalIFunc> { … }; template <> struct OperandTraits<GlobalIFunc> : public FixedNumOperandTraits<GlobalIFunc, 1> { … }; DEFINE_TRANSPARENT_OPERAND_ACCESSORS(…) } // end namespace llvm #endif // LLVM_IR_GLOBALIFUNC_H