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.
*/
#pragma once
#include <atomic>
#include <string>
#include <vector>
#include "ConcurrentContainers.h"
#include "DeterministicCon... |
/*
* 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 <string>
#include <vector>
namespace method_splitting_impl {
struc... |
/*
* 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 pass sorts non-perf sensitive classes according to their inheritance
* hierarchies in each dex. This improves compres... |
/*
* 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 "MethodSplittingConfig.h"
#include "Pass.h"
class MethodSplittingPass : public Pass {
public:
explicit... |
/*
* 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 "OutlinerTypeAnalysis.h"
#include "DexTypeEnvironment.h"
#include "Macros.h"
#include "Show.h"
namespace outliner_impl... |
/*
* 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 "ConstantUses.h"
#include "DeterministicContainers.h"
#include "IRInstruction.h"
#include "Lazy.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.
*/
#include "PartialCandidateAdapter.h"
namespace outliner_impl {
PartialCandidateAdapter::PartialCandidateAdapter(OutlinerTypeAna... |
/*
* 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 "Lazy.h"
#include "OutlinerTypeAnalysis.h"
#include "PartialCandidate... |
/*
* 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 <vector>
#include "ControlFlow.h"
#include "DeterministicContainers.h"
#include "IRIns... |
/*
* 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 "ReducedCFGClosureAdapter.h"
namespace outliner_impl {
using namespace method_splitting_impl;
ReducedCFGClosureAdapte... |
/*
* 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 "Lazy.h"
#include "LiveRange.h"
#include "OutlinerTypeAnalysis.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.
*/
#include "ReducedControlFlow.h"
#include <queue>
#include <sparta/WeakTopologicalOrdering.h>
#include "CppUtil.h"
#include "So... |
/*
* 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 <optional>
#include "ControlFlow.h"
#include "DeterministicContainers.h"
namespace method_splitting_impl... |
/*
* 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 "SplittableClosures.h"
#include <optional>
#include <vector>
#include <sparta/PatriciaTreeSet.h>
#include "ClosureAgg... |
/*
* 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 <optional>
#include "ConcurrentContainers.h"
#include "MethodClosures.h"
#include "MethodSplittingConfig.... |
/*
* 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.
*/
/*
* Before Android 4.1, Dalvik did not honor package-private accessibility
* restrictions when constructing vtables, see
* ht... |
/*
* 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 "ControlFlow.h"
#include "Pass.h"
#include "TypeInference.h"
class Pack... |
/*
* 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 pass identifies commonly used constant arguments that methods are
* invoked with, and then introduces helper function... |
/*
* 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 "OutliningProfileGuidance.h"
#include "Pass.h"
struct PartialApplicationConfig {
size_t cost_method{28}... |
/*
* 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 "Peephole.h"
#include <algorithm>
#include <cinttypes>
#include <cmath>
#include <iostream>
#include <utility>
#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.
*/
#pragma once
#include "Pass.h"
#include <vector>
class PeepholePass : public Pass {
public:
PeepholePass() : Pass("PeepholeP... |
/*
* 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 "RedundantCheckCastRemover.h"
#include "DeterministicContainers.h"
#include "DexClass.h"
#include "IRCode.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.
*/
#pragma once
#include <string>
#include <vector>
class DexClass;
class IRInstruction;
class PassManager;
class RedundantCheckC... |
/*
* 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 "PrintKotlinStats.h"
#include "DexUtil.h"
#include "IRCode.h"
#include "KotlinNullCheckMethods.h"
#include "PassManager.... |
/*
* 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"
#include "Pass.h"
class PrintKotlinStats : public Pass ... |
/*
* 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 "ReachableNatives.h"
#include <fstream>
#include <string>
#include "ConfigFiles.h"
#include "ControlFlow.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.
*/
#pragma once
#include <vector>
#include "DeterministicContainers.h"
#include "IRList.h"
#include "Pass.h"
/*
This pass will... |
/*
* 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 "RearrangeEnumClinit.h"
#include <atomic>
#include <optional>
#include "Debug.h"
#include "DeterministicContainers.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 "Pass.h"
class DexMethod;
class IRCode;
namespace rearrange_enum_clinit {
enum class MethodResult {
k... |
/*
* 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 "ReBindRefs.h"
#include <boost/algorithm/string/predicate.hpp>
#include <string>
#include <vector>
#include "ApiLevelC... |
/*
* 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 "ExternalRefsManglingPass.h"
/**
* A method reference encoded in an invoke-virtual/interface instruction... |
/*
* 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 "ReduceArrayLiterals.h"
#include <cinttypes>
#include <sparta/ConstantAbstractDomain.h>
#include <sparta/HashedSetAbst... |
/*
* 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 "IRInstruction.h" // For reg_t.
#include "Pass.h"
#include "PassManager.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 "ReduceBooleanBranchesPass.h"
#include "CopyPropagation.h"
#include "DexClass.h"
#include "LocalDce.h"
#include "PassMa... |
/*
* 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 "Pass.h"
#include "ReduceBooleanBranches.h"
class ReduceBooleanBranchesPass : public Pass {
public:
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.
*/
/*
* This optimizer pass reduces goto instructions.
*
* It does so in a few ways:
* 0) Switches get simplified: dropping usel... |
/*
* 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 "Pass.h"
namespace cfg {
class ControlFlowGraph;
} // namespace cfg
class ReduceGotosPass : public Pass ... |
/*
* 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 "ReduceSparseSwitchesPass.h"
#include <filesystem>
#include <fstream>
#include <system_error>
#include <vector>
#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 <limits>
#include "DeterministicContainers.h"
#include "Pass.h"
#include "PassManager.h"
namespace cfg {... |
/*
* 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 "RegAlloc.h"
#include "DexUtil.h"
#include "GraphColoring.h"
#include "PassManager.h"
#include "RegisterAllocation.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 "Pass.h"
class DexMethod;
namespace regalloc {
class RegAllocPass : public Pass {
public:
RegAllocPa... |
/*
* 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 "FastRegAlloc.h"
#include "DexUtil.h"
#include "LinearScan.h"
#include "Trace.h"
#include "Walkers.h"
namespace fastre... |
/*
* 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 "Pass.h"
class DexMethod;
namespace fastregalloc {
/*
* This pass implements a Linear Scan register al... |
/*
* 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 "RemoveBuilders.h"
#include "ConfigFiles.h"
#include "Dataflow.h"
#include "DexUtil.h"
#include "IRCode.h"
#include "Pa... |
/*
* 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 "Pass.h"
class RemoveBuildersPass : public Pass {
public:
RemoveBuildersPass() : Pass("RemoveBuildersP... |
/*
* 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 "RemoveBuildersHelper.h"
#include <boost/regex.hpp> // NOLINT
#include "ControlFlow.h"
#include "Dataflow.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.
*/
#pragma once
#include <boost/dynamic_bitset.hpp>
#include <utility>
#include "ControlFlow.h"
#include "DexClass.h"
#include "IR... |
/*
* 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 "RemoveInterfacePass.h"
#include "ConfigFiles.h"
#include "Creators.h"
#include "DexStoreUtil.h"
#include "DexUtil.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 "ClassHierarchy.h"
#include "DeterministicContainers.h"
#include "Pass.h"
using TypeSet = std::set<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 "RemoveNullcheckStringArg.h"
#include "CFGMutation.h"
#include "Creators.h"
#include "DeterministicContainers.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 "KotlinNullCheckMethods.h"
#include "Pass.h"
namespace cfg {
class ControlFlowGraph;
} // namespace cfg
... |
/*
* 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 "RemoveRecursiveLocks.h"
#include <bitset>
#include <iostream>
#include <variant>
#include <sparta/ConstantAbstractDom... |
/*
* 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 "Pass.h"
class DexMethod;
class IRCode;
// A pass to remove recursive locks, usually exposed during inli... |
/*
* 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 "RemoveUnreachable.h"
#include <atomic>
#include <fstream>
#include <set>
#include "ConfigFiles.h"
#include "DexUtil.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 <optional>
#include "Pass.h"
#include "Reachability.h"
class RemoveUnreachablePassBase : public Pass {
... |
/*
* 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 "TypeAnalysisAwareRemoveUnreachable.h"
#include "ControlFlow.h"
#include "MethodOverrideGraph.h"
#include "PassManager.... |
/*
* 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 "GlobalTypeAnalysisPass.h"
#include "Pass.h"
#include "RemoveUnreachable.h"
class TypeAnalysisAwareRemove... |
/*
* 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 "RemoveUnusedArgs.h"
#include <deque>
#include <map>
#include <mutex>
#include <set>
#include <vector>
#include "AnnoU... |
/*
* 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 "ControlFlow.h"
#include "InitClassesWithSideEffects.h"
#include "LocalD... |
/*
* 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 <atomic>
#include <fstream>
#include "RemoveUnusedFields.h"
#include "CFGMutation.h"
#include "ConfigFiles.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.
*/
#pragma once
#include "DeterministicContainers.h"
#include "Pass.h"
/*
* This pass identifies fields that are never read from ... |
/*
* 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 "RemoveRedundantCheckCasts.h"
#include "CheckCastAnalysis.h"
#include "CheckCastTransform.h"
#include "ConfigFiles.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 "CheckCastConfig.h"
#include "Pass.h"
namespace check_casts {
class RemoveRedundantCheckCastsPass : publ... |
/*
* 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 "InitialRenameClassesPass.h"
#include "ClassHierarchy.h"
#include "ConfigFiles.h"
#include "DexClass.h"
#include "DexUti... |
/*
* 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 "Pass.h"
/*
* In some Redex opitmization passes (e.g. OrignialNamePass), we need to know if
* a class 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 "RenameClassesV2.h"
#include <algorithm>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/regex.hpp>
#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 <boost/dynamic_bitset.hpp>
#include "Pass.h"
#include "ClassHierarchy.h"
#include "DeterministicContaine... |
/*
* 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 "ReorderInterfacesDecl.h"
#include "DeterministicContainers.h"
#include "DexClass.h"
#include "DexUtil.h"
#include "Res... |
/*
* 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 "Pass.h"
class ReorderInterfacesDeclPass : public Pass {
public:
ReorderInterfacesDeclPass() : Pass("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.
*/
#include "ResolveProguardAssumeValues.h"
#include "CFGMutation.h"
#include "ProguardConfiguration.h"
#include "RedexContext.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 "ControlFlow.h"
#include "Pass.h"
#include "PassManager.h"
class ResolveProguardAssumeValuesPass : public ... |
/*
* 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 "ExternalRefsManglingPass.h"
#include "ConfigFiles.h"
#include "PassManager.h"
#include "Trace.h"
void ExternalRefsMan... |
/*
* 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 "Pass.h"
#include "FrameworkApi.h"
/**
* Base type of a Pass that refines references like method refs 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 "ResolveRefsPass.h"
#include <boost/algorithm/string/predicate.hpp>
#include "ApiLevelChecker.h"
#include "ConfigFiles... |
/*
* 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 "ExternalRefsManglingPass.h"
/**
* A field or method being referenced by an instruction could be a pure ... |
/*
* 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 "SpecializeRtype.h"
#include "ClassHierarchy.h"
#include "ConcurrentContainers.h"
#include "DexTypeEnvironment.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 <atomic>
#include <utility>
#include "DexClass.h"
#include "DexStore.h"
#include "FrameworkApi.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.
*/
#include "ResourceValueMergingPass.h"
#include "ConfigFiles.h"
#include "DeterministicContainers.h"
#include "PassManager.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 "Pass.h"
#include "RedexResources.h"
/**
* The Resource Value Merging optimization pass analyzes dex code... |
/*
* 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 "Styles.h"
#include "Trace.h"
#include "utils/Serialize.h"
#define NON_AMBIGUOUS(style_vec) (*(style_vec).begin())
bo... |
/*
* 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 "DeterministicContainers.h"
#include "GlobalConfig.h"
#include "ReachableResources.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 "ResourcesInliningPass.h"
#include "CFGMutation.h"
#include "ConfigFiles.h"
#include "ConstantEnvironment.h"
#include "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.
*/
/*
* Resource Value Inlining pass: optimization pass, which analyzes code
* and resource information to represent application 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 "ResultPropagation.h"
#include <vector>
#include <sparta/ConstantAbstractDomain.h>
#include <sparta/PatriciaTreeMapAbs... |
/*
* 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 "DeterministicContainers.h"
#include "MethodOverrideGraph.h"
#include "Pass.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 "Shorten.h"
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include "ConfigFiles.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 "Pass.h"
class ShortenSrcStringsPass : public Pass {
public:
ShortenSrcStringsPass() : Pass("ShortenSr... |
/*
* 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 "ShrinkerPass.h"
#include "ConfigFiles.h"
#include "ConstantPropagationAnalysis.h"
#include "PassManager.h"
#include "S... |
/*
* 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 "Pass.h"
#include "ShrinkerConfig.h"
class ShrinkerPass : public Pass {
public:
ShrinkerPass() : Pass(... |
/*
* 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 "TailDuplicationPass.h"
#include <sparta/WeakTopologicalOrdering.h>
#include "BaselineProfile.h"
#include "ConfigFiles... |
/*
* 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 "Pass.h"
#include "ShrinkerConfig.h"
namespace tail_duplication_impl {
size_t make_hot_tails_unique(cfg:... |
/*
* 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 "SingleImpl.h"
#include <functional>
#include <memory>
#include <stdio.h>
#include <string>
#include "ClassHierarchy.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 "Pass.h"
struct SingleImplConfig {
std::vector<std::string> allowlist;
std::vector<std::string> packa... |
/*
* 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 <memory>
#include <string>
#include <vector>
#include "Debug.h"
#include "DeterministicContainers.h"
#include "DexOutp... |
/*
* 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 <memory>
#include <utility>
#include <vector>
#include "CheckCastTransform.h"
#include "ClassHierarchy.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 <functional>
#include <memory>
#include <set>
#include <stdio.h>
#include <string>
#include "CheckCastAnalysis.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 <stdio.h>
#include <string.h>
#include <string>
#include "DexAnnotation.h"
#include "Show.h"
#include "SingleImplDefs.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 "SplitHugeSwitchPass.h"
#include <algorithm>
#include <iostream>
#include <boost/regex.hpp>
#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 <utility>
#include "DeterministicContainers.h"
#include "Pass.h"
class DexMethod;
class IRCode;
namespa... |
/*
* 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 "SplitResourceTables.h"
#include <boost/filesystem/operations.hpp>
#include <boost/format.hpp>
#include <cinttypes>
#in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.