//===- bolt/Passes/JTFootprintReduction.h -----------------------*- 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 // //===----------------------------------------------------------------------===// // // Jump table footprint reduction pass // //===----------------------------------------------------------------------===// #ifndef BOLT_PASSES_JT_FOOTPRINT_REDUCTION_H #define BOLT_PASSES_JT_FOOTPRINT_REDUCTION_H #include "bolt/Passes/BinaryPasses.h" namespace llvm { namespace bolt { class DataflowInfoManager; /// This pass identify indirect jumps to jump tables and reduce their entries /// size from 8 to 4 bytes. For PIC jump tables, it will remove the PIC code /// (since BOLT only process static code and it makes no sense to use expensive /// PIC-style jumps in static code). class JTFootprintReduction : public BinaryFunctionPass { … }; } // namespace bolt } // namespace llvm #endif