//===- llvm/SymbolTableListTraits.h - Traits for iplist ---------*- 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 // //===----------------------------------------------------------------------===// // // This file defines a generic class that is used to implement the automatic // symbol table manipulation that occurs when you put (for example) a named // instruction into a basic block. // // The way that this is implemented is by using a special traits class with the // intrusive list that makes up the list of instructions in a basic block. When // a new element is added to the list of instructions, the traits class is // notified, allowing the symbol table to be updated. // // This generic class implements the traits class. It must be generic so that // it can work for all uses it, which include lists of instructions, basic // blocks, arguments, functions, global variables, etc... // //===----------------------------------------------------------------------===// #ifndef LLVM_IR_SYMBOLTABLELISTTRAITS_H #define LLVM_IR_SYMBOLTABLELISTTRAITS_H #include "llvm/ADT/ilist.h" #include "llvm/ADT/simple_ilist.h" #include <cstddef> llvm // end namespace llvm #endif // LLVM_IR_SYMBOLTABLELISTTRAITS_H