opt/class-merging/IntraDexClassMergingPass.h (14 lines of code) (raw):

/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * The IntraDexClassMergingPass runs after InterDexPass, it should never * introduce more type/method/field references than dex limit. * TODO: It now requires inliner to inline the merge virtual methods to * eliminate the extra method refs and it creates type tag fields. */ #pragma once #include "Pass.h" namespace class_merging { struct ModelSpec; class IntraDexClassMergingPass : public Pass { public: IntraDexClassMergingPass() : Pass("IntraDexClassMergingPass") {} void bind_config() override; void run_pass(DexStoresVector&, ConfigFiles&, PassManager&) override; private: ModelSpec m_merging_spec; size_t m_global_min_count; }; } // namespace class_merging