text
stringlengths
1
24.5M
/* * 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. */ // Function definitions should stay here instead of in the header if the // function is not important to inline. This includes fu...
/* * 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. */ #pragma once #include <initializer_list> #include <limits> #include <optional> #include <sparta/AbstractDomain.h> #include <spa...
/* * 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. */ #pragma once #include <sparta/ConstantAbstractDomain.h> #include "DexClass.h" /* * This represents an object that is uniquely...
/* * 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. */ #include "AliasedRegisters.h" #include "DeterministicContainers.h" #include <algorithm> #include <boost/container_hash/hash.hpp>...
/* * 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. */ #pragma once #include <boost/none.hpp> #include <boost/optional/optional.hpp> #include <sparta/AbstractDomain.h> #include <spar...
/* * 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. */ #include "CanonicalizeLocks.h" #include <boost/none.hpp> #include <boost/optional/optional.hpp> #include "CFGMutation.h" #inclu...
/* * 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. */ // Standard copy propagation will not remove `move-object` instructions // flowing into `monitor` instructions, in an effort to n...
/* * 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. */ #include "CopyPropagation.h" #include <mutex> #include <sparta/MonotonicFixpointIterator.h> #include "AliasedRegisters.h" #inc...
/* * 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. */ #pragma once #include "IRCode.h" #include "Trace.h" namespace copy_propagation_impl { struct Config { bool eliminate_const_l...
/* * 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. */ #include <cinttypes> #include <numeric> #include "CrossDexRefMinimizer.h" #include "Show.h" #include "Trace.h" namespace cross_...
/* * 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. */ #pragma once #include <json/value.h> #include <string> #include <unordered_set> #include <vector> #include "ClassReferencesCach...
/* * 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. */ /* * This optimizer pass eliminates common subexpression. * * It's implemented via a global-value-numbering scheme. * While d...
/* * 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. */ #pragma once #include <sparta/PatriciaTreeSet.h> #include "ConcurrentContainers.h" #include "DeterministicContainers.h" #includ...
/* * 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. */ /** * Background: * * Code contains many seemingly redundant const-instructions. * However, the Android verifier checks how c...
/* * 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. */ #pragma once #include "TypeInference.h" #include <functional> namespace constant_uses { enum TypeDemand : uint8_t { Error = ...
/* * 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. */ #pragma once #include <sparta/PatriciaTreeSetAbstractDomain.h> #include "BaseIRAnalyzer.h" #include "ControlFlow.h" using Live...
/* * 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. */ #include "LiveRange.h" #include <boost/pending/disjoint_sets.hpp> #include <boost/property_map/property_map.hpp> #include "Cont...
/* * 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. */ #pragma once #include <cstdint> #include <boost/functional/hash.hpp> #include <sparta/PatriciaTreeSet.h> #include "ControlFlo...
/* * 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. */ #pragma once #include <sparta/AbstractDomain.h> #include <sparta/PatriciaTreeMapAbstractEnvironment.h> #include <sparta/Patricia...
/* * 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. */ #pragma once #include <sparta/ConstantAbstractDomain.h> #include <sparta/PatriciaTreeMapAbstractEnvironment.h> #include "BaseIR...
/* * 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. */ /* * This service removes blocks that are duplicates in a method. * * If a method has multiple blocks with the same code and t...
/* * 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. */ #pragma once #include "DeterministicContainers.h" #include "DexClass.h" class IRInstruction; namespace dedup_blocks_impl { st...
/* * 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. */ #include "DedupBlockValueNumbering.h" #include <map> #include "RedexContext.h" using namespace DedupBlkValueNumbering; void n...
/* * 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. */ #pragma once #include "DexClass.h" #include "Liveness.h" namespace DedupBlkValueNumbering { using value_id_t = uint64_t; const...
/* * 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. */ #include "BlamingAnalysis.h" using namespace ir_analyzer; namespace { /* * Returns the register that `insn` puts its result i...
/* * 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. */ #pragma once #include <sparta/IntervalDomain.h> #include <sparta/LiftedDomain.h> #include <sparta/PatriciaTreeMapAbstractEnviron...
/* * 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. */ #include "LocalPointersAnalysis.h" #include <ostream> #include <sparta/PatriciaTreeSet.h> #include "Show.h" #include "Walkers....
/* * 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. */ #pragma once #include <iosfwd> #include <utility> #include <sparta/PatriciaTreeMapAbstractEnvironment.h> #include <sparta/Patri...
/* * 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. */ #include "FieldOpTracker.h" #include <sparta/ConstantAbstractDomain.h> #include <sparta/PatriciaTreeMapAbstractEnvironment.h> #...
/* * 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. */ #pragma once #include "ConcurrentContainers.h" #include "DeterministicContainers.h" #include "DexClass.h" namespace field_op_tr...
/* * 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. */ #pragma once #include <utility> #include <sparta/ConstantAbstractDomain.h> #include <sparta/MonotonicFixpointIterator.h> #incl...
/* * 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. */ #pragma once #include <sparta/AbstractDomain.h> #include <sparta/PatriciaTreeSetAbstractDomain.h> #include "DexClass.h" #includ...
/* * 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. */ #pragma once #include <utility> #include <sparta/MonotonicFixpointIterator.h> #include "ControlFlow.h" #include "DexUtil.h" #i...
/* * 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. */ #include "InitClassPruner.h" #include "CFGMutation.h" #include "InitClassBackwardAnalysis.h" #include "InitClassForwardAnalysis....
/* * 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. */ #pragma once #include "ControlFlow.h" #include "InitClassesWithSideEffects.h" namespace init_classes { struct Stats { size_t...
/* * 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. */ #include "InitDeps.h" #include <ostream> #include <sstream> #include <vector> #include <sparta/WeakTopologicalOrdering.h> #inc...
/* * 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. */ #pragma once #include "DexClass.h" namespace init_deps { /* * Foo.<clinit> may read some static fields from class Bar, in whic...
/* * 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. */ #include "KotlinInstanceRewriter.h" #include "CFGMutation.h" #include "PassManager.h" #include "Show.h" #include "Walkers.h" nam...
/* * 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. */ #pragma once #include "ConcurrentContainers.h" #include "Debug.h" #include "DexClass.h" class PassManager; class IRInstruction;...
/* * 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. */ #include "LocalDce.h" #include <array> #include <vector> #include "CFGMutation.h" #include "ControlFlow.h" #include "DexClass.h...
/* * 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. */ #pragma once #include "DeterministicContainers.h" #include "IRCode.h" #include "InitClassPruner.h" #include "InitClassesWithSide...
/* * 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. */ #include "LoopInfo.h" #include "DeterministicContainers.h" using namespace loop_impl; /** * A loop header is the only block in...
/* * 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. */ #pragma once #include <sparta/WeakTopologicalOrdering.h> #include "ControlFlow.h" #include <queue> namespace loop_impl { tem...
/* * 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. */ #include "ConstantLifting.h" #include "AnnoUtils.h" #include "CFGMutation.h" #include "ConstantValue.h" #include "ControlFlow.h"...
/* * 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. */ #pragma once #include <vector> #include "DexClass.h" class TypeTags; class ConstantLifting { public: ConstantLifting(); ...
/* * 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. */ #include "ConstantValue.h" #include <boost/algorithm/string.hpp> #include "Creators.h" #include "DexAsm.h" #include "Show.h" #i...
/* * 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. */ #pragma once #include "ControlFlow.h" #include "DexUtil.h" #include "IRCode.h" #include "MethodReference.h" #include "TypeTags.h...
/* * 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. */ #include "MethodDedup.h" #include "DedupBlocks.h" #include "DexOpcode.h" #include "IRCode.h" #include "MethodReference.h" #inclu...
/* * 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. */ #pragma once #include <boost/optional/optional.hpp> #include <set> #include "DexClass.h" using MethodOrderedSet = std::set<Dex...
/* * 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. */ #include "NormalizeConstructor.h" #include "DexClass.h" #include "EditableCfgAdapter.h" #include "MethodReference.h" #include "R...
/* * 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. */ #pragma once #include <cstddef> #include <cstdint> #include <vector> /** * A simple constructor only initializes some or all o...
/* * 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. */ #include "TypeTags.h" void TypeTags::set_type_tag(const DexType* type, uint32_t type_tag) { m_type_to_tag[type] = type_tag; ...
/* * 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. */ #pragma once #include "DexUtil.h" class TypeTags { public: void set_type_tag(const DexType* type, uint32_t type_tag); uin...
/* * 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. */ #include "CallSiteSummaries.h" #include "ConstantPropagationAnalysis.h" #include "PriorityThreadPoolDAGScheduler.h" #include "Ti...
/* * 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. */ #pragma once #include "DeterministicContainers.h" #include "Shrinker.h" using CallSiteArguments = constant_propagation::interpr...
/* * 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. */ #include "CFGInliner.h" #include <memory> #include "DexPosition.h" #include "IRList.h" #include "IROpcode.h" #include "Resolver...
/* * 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. */ #pragma once #include "ControlFlow.h" #include <boost/optional.hpp> namespace cfg { // Special marker source file name used b...
/* * 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. */ #include <utility> #include <vector> #include <sparta/ConstantAbstractDomain.h> #include <sparta/PatriciaTreeMapAbstractEnvironm...
/* * 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. */ #pragma once #include <vector> #include "DeterministicContainers.h" class DexField; class DexMethod; class DexType; class DexC...
/* * 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. */ #include "Deleter.h" #include "ReachableClasses.h" #include "Show.h" #include "Trace.h" #include "Walkers.h" std::vector<DexMet...
/* * 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. */ #pragma once #include <functional> #include <vector> #include "DeterministicContainers.h" #include "DexClass.h" #include "Resol...
/* * 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. */ #include "Inliner.h" #include <cstdint> #include <utility> #include "ApiLevelChecker.h" #include "CFGInliner.h" #include "Const...
/* * 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. */ #pragma once #include <functional> #include <vector> #include "BaselineProfile.h" #include "CallSiteSummaries.h" #include "Dete...
/* * 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. */ #include "LegacyInliner.h" #include "DeterministicContainers.h" #include "DexPosition.h" #include "DexUtil.h" #include "IRInstru...
/* * 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. */ #pragma once #include "DexClass.h" #include "IRCode.h" /* * Functionality provided by the legacy inliner is not based on * co...
/* * 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. */ #include "MethodInliner.h" #include <algorithm> #include <map> #include <set> #include <string> #include <vector> #include "Ann...
/* * 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. */ #pragma once #include "Inliner.h" #include "InlinerConfig.h" #include "PassManager.h" class InlineForSpeed; namespace inliner ...
/* * 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. */ #include "ObjectInlinePlugin.h" #include <utility> #include "CFGInliner.h" #include "CFGMutation.h" #include "IROpcode.h" #incl...
/* * 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. */ #pragma once #include "CFGInliner.h" #include "ControlFlow.h" #include <boost/optional.hpp> using namespace cfg; namespace obj...
/* * 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. */ #include "PartialInliner.h" #include "CFGInliner.h" #include "Inliner.h" #include "Show.h" #include "SourceBlocks.h" #include "T...
/* * 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. */ #pragma once #include "ControlFlow.h" #include "DexClass.h" struct PartialCode; namespace inliner { bool is_not_cold(cfg::Blo...
/* * 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. */ #include "RecursionPruner.h" namespace inliner { RecursionPruner::RecursionPruner( ConcurrentMethodToMethodOccurrences& cal...
/* * 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. */ #pragma once #include "CallSiteSummaries.h" namespace inliner { class RecursionPruner { private: ConcurrentMethodToMethodOc...
/* * 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. */ #include "MethodMerger.h" #include "Debug.h" #include "DexClass.h" #include "MethodReference.h" #include "ReachableClasses.h" #i...
/* * 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. */ #include "DexClass.h" namespace method_merger { struct Stats { uint32_t num_merged_static_methods = 0; uint32_t num_merged_...
/* * 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. */ #pragma once #include <boost/algorithm/string/predicate.hpp> #include "DexClass.h" namespace outliner { constexpr const char*...
/* * 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. */ #pragma once #include <string> namespace outliner { enum class PerfSensitivity : char { // Never derive limits from perf sen...
/* * 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. */ #include "OutliningProfileGuidanceImpl.h" #include <boost/regex.hpp> #include "BaselineProfileConfig.h" #include "CallGraph.h" ...
/* * 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. */ #pragma once #include "BigBlocks.h" #include "DeterministicContainers.h" #include "Lazy.h" #include "OutliningProfileGuidance.h"...
/* * 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. */ #include "ObjectSensitiveDce.h" #include <functional> #include "CFGMutation.h" #include "ClassHierarchy.h" #include "Concurrent...
/* * 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. */ #pragma once #include "DeterministicContainers.h" #include "InitClassPruner.h" #include "InitClassesWithSideEffects.h" #include ...
/* * 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. */ #include "SideEffectSummary.h" #include "CallGraph.h" #include "ConcurrentContainers.h" #include "Show.h" #include "Trace.h" #in...
/* * 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. */ #pragma once #include <sparta/S_Expression.h> #include "DeterministicContainers.h" #include "DexClass.h" #include "InitClassesW...
/* * 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. */ #include "UsedVarsAnalysis.h" #include <utility> #include "ReachableClasses.h" #include "Show.h" #include "Trace.h" namespace ...
/* * 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. */ #pragma once #include <sparta/PatriciaTreeSetAbstractDomain.h> #include <sparta/ReducedProductAbstractDomain.h> #include "Local...
/* * 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. */ /* * This optimization reduces the instructions needed to express certain boolean * operations. In particular, written as Java ...
/* * 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. */ #pragma once #include "DexClass.h" namespace reduce_boolean_branches_impl { struct Config {}; struct Stats { size_t boolean...
/* * 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. */ #include "MethodReference.h" #include "ControlFlow.h" #include "IRList.h" #include "Resolver.h" #include "Show.h" #include "Trac...
/* * 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. */ #pragma once #include <boost/none.hpp> #include <boost/optional/optional.hpp> #include "DexClass.h" #include "DexStore.h" #incl...
/* * 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. */ #include "TypeReference.h" #include "ControlFlow.h" #include "MethodReference.h" #include "Resolver.h" #include "Show.h" #includ...
/* * 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. */ #pragma once #include <boost/optional.hpp> #include "ClassHierarchy.h" #include "ConcurrentContainers.h" #include "Deterministi...
/* * 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. */ #include "GraphColoring.h" #include <algorithm> #include <boost/pending/disjoint_sets.hpp> #include <boost/property_map/property...
/* * 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. */ #pragma once #include <stack> #include "ControlFlow.h" #include "Interference.h" #include "Liveness.h" #include "Split.h" #incl...
/* * 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. */ #include "Interference.h" #include "DexOpcode.h" #include "Show.h" namespace regalloc { namespace interference { namespace im...
/* * 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. */ #pragma once #include <vector> #include "ControlFlow.h" #include "DeterministicContainers.h" #include "Liveness.h" #include "Re...
/* * 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. */ #include "RegisterAllocation.h" #include <iostream> #include "DebugUtils.h" #include "DexClass.h" #include "GraphColoring.h" #i...
/* * 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. */ #pragma once #include "GraphColoring.h" class DexMethod; namespace regalloc { namespace graph_coloring { // Note: this always...
/* * 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. */ #include "RegisterType.h" #include "DexClass.h" #include "Show.h" #include "TypeUtil.h" namespace regalloc { namespace registe...
/* * 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. */ #pragma once #include <sparta/FiniteAbstractDomain.h> #include "IRInstruction.h" namespace regalloc { using vreg_t = uint16_t...
/* * 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. */ #include "Split.h" namespace regalloc { // Calculate potential split costs for each live range. Also store information // of ca...