mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
5c3f34f10b
Summary: First, we need to explain the core of the vulnerability. Note that this is a very incomplete description, please see the Project Zero blog post for details: https://googleprojectzero.blogspot.com/2018/01/reading-privileged-memory-with-side.html The basis for branch target injection is to direct speculative execution of the processor to some "gadget" of executable code by poisoning the prediction of indirect branches with the address of that gadget. The gadget in turn contains an operation that provides a side channel for reading data. Most commonly, this will look like a load of secret data followed by a branch on the loaded value and then a load of some predictable cache line. The attacker then uses timing of the processors cache to determine which direction the branch took *in the speculative execution*, and in turn what one bit of the loaded value was. Due to the nature of these timing side channels and the branch predictor on Intel processors, this allows an attacker to leak data only accessible to a privileged domain (like the kernel) back into an unprivileged domain. The goal is simple: avoid generating code which contains an indirect branch that could have its prediction poisoned by an attacker. In many cases, the compiler can simply use directed conditional branches and a small search tree. LLVM already has support for lowering switches in this way and the first step of this patch is to disable jump-table lowering of switches and introduce a pass to rewrite explicit indirectbr sequences into a switch over integers. However, there is no fully general alternative to indirect calls. We introduce a new construct we call a "retpoline" to implement indirect calls in a non-speculatable way. It can be thought of loosely as a trampoline for indirect calls which uses the RET instruction on x86. Further, we arrange for a specific call->ret sequence which ensures the processor predicts the return to go to a controlled, known location. The retpoline then "smashes" the return address pushed onto the stack by the call with the desired target of the original indirect call. The result is a predicted return to the next instruction after a call (which can be used to trap speculative execution within an infinite loop) and an actual indirect branch to an arbitrary address. On 64-bit x86 ABIs, this is especially easily done in the compiler by using a guaranteed scratch register to pass the target into this device. For 32-bit ABIs there isn't a guaranteed scratch register and so several different retpoline variants are introduced to use a scratch register if one is available in the calling convention and to otherwise use direct stack push/pop sequences to pass the target address. This "retpoline" mitigation is fully described in the following blog post: https://support.google.com/faqs/answer/7625886 We also support a target feature that disables emission of the retpoline thunk by the compiler to allow for custom thunks if users want them. These are particularly useful in environments like kernels that routinely do hot-patching on boot and want to hot-patch their thunk to different code sequences. They can write this custom thunk and use `-mretpoline-external-thunk` *in addition* to `-mretpoline`. In this case, on x86-64 thu thunk names must be: ``` __llvm_external_retpoline_r11 ``` or on 32-bit: ``` __llvm_external_retpoline_eax __llvm_external_retpoline_ecx __llvm_external_retpoline_edx __llvm_external_retpoline_push ``` And the target of the retpoline is passed in the named register, or in the case of the `push` suffix on the top of the stack via a `pushl` instruction. There is one other important source of indirect branches in x86 ELF binaries: the PLT. These patches also include support for LLD to generate PLT entries that perform a retpoline-style indirection. The only other indirect branches remaining that we are aware of are from precompiled runtimes (such as crt0.o and similar). The ones we have found are not really attackable, and so we have not focused on them here, but eventually these runtimes should also be replicated for retpoline-ed configurations for completeness. For kernels or other freestanding or fully static executables, the compiler switch `-mretpoline` is sufficient to fully mitigate this particular attack. For dynamic executables, you must compile *all* libraries with `-mretpoline` and additionally link the dynamic executable and all shared libraries with LLD and pass `-z retpolineplt` (or use similar functionality from some other linker). We strongly recommend also using `-z now` as non-lazy binding allows the retpoline-mitigated PLT to be substantially smaller. When manually apply similar transformations to `-mretpoline` to the Linux kernel we observed very small performance hits to applications running typical workloads, and relatively minor hits (approximately 2%) even for extremely syscall-heavy applications. This is largely due to the small number of indirect branches that occur in performance sensitive paths of the kernel. When using these patches on statically linked applications, especially C++ applications, you should expect to see a much more dramatic performance hit. For microbenchmarks that are switch, indirect-, or virtual-call heavy we have seen overheads ranging from 10% to 50%. However, real-world workloads exhibit substantially lower performance impact. Notably, techniques such as PGO and ThinLTO dramatically reduce the impact of hot indirect calls (by speculatively promoting them to direct calls) and allow optimized search trees to be used to lower switches. If you need to deploy these techniques in C++ applications, we *strongly* recommend that you ensure all hot call targets are statically linked (avoiding PLT indirection) and use both PGO and ThinLTO. Well tuned servers using all of these techniques saw 5% - 10% overhead from the use of retpoline. We will add detailed documentation covering these components in subsequent patches, but wanted to make the core functionality available as soon as possible. Happy for more code review, but we'd really like to get these patches landed and backported ASAP for obvious reasons. We're planning to backport this to both 6.0 and 5.0 release streams and get a 5.0 release with just this cherry picked ASAP for distros and vendors. This patch is the work of a number of people over the past month: Eric, Reid, Rui, and myself. I'm mailing it out as a single commit due to the time sensitive nature of landing this and the need to backport it. Huge thanks to everyone who helped out here, and everyone at Intel who helped out in discussions about how to craft this. Also, credit goes to Paul Turner (at Google, but not an LLVM contributor) for much of the underlying retpoline design. Reviewers: echristo, rnk, ruiu, craig.topper, DavidKreitzer Subscribers: sanjoy, emaste, mcrosier, mgorny, mehdi_amini, hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D41723 llvm-svn: 323155
394 lines
20 KiB
C++
394 lines
20 KiB
C++
//===- llvm/InitializePasses.h - Initialize All Passes ----------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains the declarations for the pass initialization routines
|
|
// for the entire LLVM project.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_INITIALIZEPASSES_H
|
|
#define LLVM_INITIALIZEPASSES_H
|
|
|
|
namespace llvm {
|
|
|
|
class PassRegistry;
|
|
|
|
/// Initialize all passes linked into the TransformUtils library.
|
|
void initializeCore(PassRegistry&);
|
|
|
|
/// Initialize all passes linked into the TransformUtils library.
|
|
void initializeTransformUtils(PassRegistry&);
|
|
|
|
/// Initialize all passes linked into the ScalarOpts library.
|
|
void initializeScalarOpts(PassRegistry&);
|
|
|
|
/// Initialize all passes linked into the ObjCARCOpts library.
|
|
void initializeObjCARCOpts(PassRegistry&);
|
|
|
|
/// Initialize all passes linked into the Vectorize library.
|
|
void initializeVectorization(PassRegistry&);
|
|
|
|
/// Initialize all passes linked into the InstCombine library.
|
|
void initializeInstCombine(PassRegistry&);
|
|
|
|
/// Initialize all passes linked into the IPO library.
|
|
void initializeIPO(PassRegistry&);
|
|
|
|
/// Initialize all passes linked into the Instrumentation library.
|
|
void initializeInstrumentation(PassRegistry&);
|
|
|
|
/// Initialize all passes linked into the Analysis library.
|
|
void initializeAnalysis(PassRegistry&);
|
|
|
|
/// Initialize all passes linked into the Coroutines library.
|
|
void initializeCoroutines(PassRegistry&);
|
|
|
|
/// Initialize all passes linked into the CodeGen library.
|
|
void initializeCodeGen(PassRegistry&);
|
|
|
|
/// Initialize all passes linked into the GlobalISel library.
|
|
void initializeGlobalISel(PassRegistry&);
|
|
|
|
/// Initialize all passes linked into the CodeGen library.
|
|
void initializeTarget(PassRegistry&);
|
|
|
|
void initializeAAEvalLegacyPassPass(PassRegistry&);
|
|
void initializeAAResultsWrapperPassPass(PassRegistry&);
|
|
void initializeADCELegacyPassPass(PassRegistry&);
|
|
void initializeAddDiscriminatorsLegacyPassPass(PassRegistry&);
|
|
void initializeAddressSanitizerModulePass(PassRegistry&);
|
|
void initializeAddressSanitizerPass(PassRegistry&);
|
|
void initializeAliasSetPrinterPass(PassRegistry&);
|
|
void initializeAlignmentFromAssumptionsPass(PassRegistry&);
|
|
void initializeAlwaysInlinerLegacyPassPass(PassRegistry&);
|
|
void initializeArgPromotionPass(PassRegistry&);
|
|
void initializeAssumptionCacheTrackerPass(PassRegistry&);
|
|
void initializeAtomicExpandPass(PassRegistry&);
|
|
void initializeBDCELegacyPassPass(PassRegistry&);
|
|
void initializeBarrierNoopPass(PassRegistry&);
|
|
void initializeBasicAAWrapperPassPass(PassRegistry&);
|
|
void initializeBlockExtractorPassPass(PassRegistry&);
|
|
void initializeBlockFrequencyInfoWrapperPassPass(PassRegistry&);
|
|
void initializeBoundsCheckingLegacyPassPass(PassRegistry&);
|
|
void initializeBranchFolderPassPass(PassRegistry&);
|
|
void initializeBranchProbabilityInfoWrapperPassPass(PassRegistry&);
|
|
void initializeBranchRelaxationPass(PassRegistry&);
|
|
void initializeBreakCriticalEdgesPass(PassRegistry&);
|
|
void initializeBreakFalseDepsPass(PassRegistry&);
|
|
void initializeCallSiteSplittingLegacyPassPass(PassRegistry&);
|
|
void initializeCFGOnlyPrinterLegacyPassPass(PassRegistry&);
|
|
void initializeCFGOnlyViewerLegacyPassPass(PassRegistry&);
|
|
void initializeCFGPrinterLegacyPassPass(PassRegistry&);
|
|
void initializeCFGSimplifyPassPass(PassRegistry&);
|
|
void initializeCFGViewerLegacyPassPass(PassRegistry&);
|
|
void initializeCFLAndersAAWrapperPassPass(PassRegistry&);
|
|
void initializeCFLSteensAAWrapperPassPass(PassRegistry&);
|
|
void initializeCallGraphDOTPrinterPass(PassRegistry&);
|
|
void initializeCallGraphPrinterLegacyPassPass(PassRegistry&);
|
|
void initializeCallGraphViewerPass(PassRegistry&);
|
|
void initializeCallGraphWrapperPassPass(PassRegistry&);
|
|
void initializeCodeGenPreparePass(PassRegistry&);
|
|
void initializeConstantHoistingLegacyPassPass(PassRegistry&);
|
|
void initializeCalledValuePropagationLegacyPassPass(PassRegistry &);
|
|
void initializeConstantMergeLegacyPassPass(PassRegistry&);
|
|
void initializeConstantPropagationPass(PassRegistry&);
|
|
void initializeCorrelatedValuePropagationPass(PassRegistry&);
|
|
void initializeCostModelAnalysisPass(PassRegistry&);
|
|
void initializeEarlyMachineLICMPass(PassRegistry&);
|
|
void initializeEarlyTailDuplicatePass(PassRegistry&);
|
|
void initializeEntryExitInstrumenterPass(PassRegistry&);
|
|
void initializePostInlineEntryExitInstrumenterPass(PassRegistry&);
|
|
void initializeCrossDSOCFIPass(PassRegistry&);
|
|
void initializeDAEPass(PassRegistry&);
|
|
void initializeDAHPass(PassRegistry&);
|
|
void initializeDCELegacyPassPass(PassRegistry&);
|
|
void initializeDSELegacyPassPass(PassRegistry&);
|
|
void initializeDataFlowSanitizerPass(PassRegistry&);
|
|
void initializeDeadInstEliminationPass(PassRegistry&);
|
|
void initializeDeadMachineInstructionElimPass(PassRegistry&);
|
|
void initializeDelinearizationPass(PassRegistry&);
|
|
void initializeDemandedBitsWrapperPassPass(PassRegistry&);
|
|
void initializeDependenceAnalysisPass(PassRegistry&);
|
|
void initializeDependenceAnalysisWrapperPassPass(PassRegistry&);
|
|
void initializeDetectDeadLanesPass(PassRegistry&);
|
|
void initializeDivergenceAnalysisPass(PassRegistry&);
|
|
void initializeDivRemPairsLegacyPassPass(PassRegistry&);
|
|
void initializeDomOnlyPrinterPass(PassRegistry&);
|
|
void initializeDomOnlyViewerPass(PassRegistry&);
|
|
void initializeDomPrinterPass(PassRegistry&);
|
|
void initializeDomViewerPass(PassRegistry&);
|
|
void initializeDominanceFrontierWrapperPassPass(PassRegistry&);
|
|
void initializeDominatorTreeWrapperPassPass(PassRegistry&);
|
|
void initializeDwarfEHPreparePass(PassRegistry&);
|
|
void initializeEarlyCSELegacyPassPass(PassRegistry&);
|
|
void initializeEarlyCSEMemSSALegacyPassPass(PassRegistry&);
|
|
void initializeEarlyIfConverterPass(PassRegistry&);
|
|
void initializeEdgeBundlesPass(PassRegistry&);
|
|
void initializeEfficiencySanitizerPass(PassRegistry&);
|
|
void initializeEliminateAvailableExternallyLegacyPassPass(PassRegistry&);
|
|
void initializeExpandISelPseudosPass(PassRegistry&);
|
|
void initializeExpandMemCmpPassPass(PassRegistry&);
|
|
void initializeExpandPostRAPass(PassRegistry&);
|
|
void initializeExpandReductionsPass(PassRegistry&);
|
|
void initializeExternalAAWrapperPassPass(PassRegistry&);
|
|
void initializeFEntryInserterPass(PassRegistry&);
|
|
void initializeFinalizeMachineBundlesPass(PassRegistry&);
|
|
void initializeFlattenCFGPassPass(PassRegistry&);
|
|
void initializeFloat2IntLegacyPassPass(PassRegistry&);
|
|
void initializeForceFunctionAttrsLegacyPassPass(PassRegistry&);
|
|
void initializeForwardControlFlowIntegrityPass(PassRegistry&);
|
|
void initializeFuncletLayoutPass(PassRegistry&);
|
|
void initializeFunctionImportLegacyPassPass(PassRegistry&);
|
|
void initializeGCMachineCodeAnalysisPass(PassRegistry&);
|
|
void initializeGCModuleInfoPass(PassRegistry&);
|
|
void initializeGCOVProfilerLegacyPassPass(PassRegistry&);
|
|
void initializeGVNHoistLegacyPassPass(PassRegistry&);
|
|
void initializeGVNLegacyPassPass(PassRegistry&);
|
|
void initializeGVNSinkLegacyPassPass(PassRegistry&);
|
|
void initializeGlobalDCELegacyPassPass(PassRegistry&);
|
|
void initializeGlobalMergePass(PassRegistry&);
|
|
void initializeGlobalOptLegacyPassPass(PassRegistry&);
|
|
void initializeGlobalSplitPass(PassRegistry&);
|
|
void initializeGlobalsAAWrapperPassPass(PassRegistry&);
|
|
void initializeGuardWideningLegacyPassPass(PassRegistry&);
|
|
void initializeIPCPPass(PassRegistry&);
|
|
void initializeIPSCCPLegacyPassPass(PassRegistry&);
|
|
void initializeIRTranslatorPass(PassRegistry&);
|
|
void initializeIVUsersWrapperPassPass(PassRegistry&);
|
|
void initializeIfConverterPass(PassRegistry&);
|
|
void initializeImplicitNullChecksPass(PassRegistry&);
|
|
void initializeIndVarSimplifyLegacyPassPass(PassRegistry&);
|
|
void initializeIndirectBrExpandPassPass(PassRegistry&);
|
|
void initializeInductiveRangeCheckEliminationPass(PassRegistry&);
|
|
void initializeInferAddressSpacesPass(PassRegistry&);
|
|
void initializeInferFunctionAttrsLegacyPassPass(PassRegistry&);
|
|
void initializeInlineCostAnalysisPass(PassRegistry&);
|
|
void initializeInstCountPass(PassRegistry&);
|
|
void initializeInstNamerPass(PassRegistry&);
|
|
void initializeInstSimplifierPass(PassRegistry&);
|
|
void initializeInstrProfilingLegacyPassPass(PassRegistry&);
|
|
void initializeInstructionCombiningPassPass(PassRegistry&);
|
|
void initializeInstructionSelectPass(PassRegistry&);
|
|
void initializeInterleavedAccessPass(PassRegistry&);
|
|
void initializeInternalizeLegacyPassPass(PassRegistry&);
|
|
void initializeIntervalPartitionPass(PassRegistry&);
|
|
void initializeJumpThreadingPass(PassRegistry&);
|
|
void initializeLCSSAVerificationPassPass(PassRegistry&);
|
|
void initializeLCSSAWrapperPassPass(PassRegistry&);
|
|
void initializeLazyBlockFrequencyInfoPassPass(PassRegistry&);
|
|
void initializeLazyBranchProbabilityInfoPassPass(PassRegistry&);
|
|
void initializeLazyMachineBlockFrequencyInfoPassPass(PassRegistry&);
|
|
void initializeLazyValueInfoPrinterPass(PassRegistry&);
|
|
void initializeLazyValueInfoWrapperPassPass(PassRegistry&);
|
|
void initializeLegacyLICMPassPass(PassRegistry&);
|
|
void initializeLegacyLoopSinkPassPass(PassRegistry&);
|
|
void initializeLegalizerPass(PassRegistry&);
|
|
void initializeLibCallsShrinkWrapLegacyPassPass(PassRegistry&);
|
|
void initializeLintPass(PassRegistry&);
|
|
void initializeLiveDebugValuesPass(PassRegistry&);
|
|
void initializeLiveDebugVariablesPass(PassRegistry&);
|
|
void initializeLiveIntervalsPass(PassRegistry&);
|
|
void initializeLiveRangeShrinkPass(PassRegistry&);
|
|
void initializeLiveRegMatrixPass(PassRegistry&);
|
|
void initializeLiveStacksPass(PassRegistry&);
|
|
void initializeLiveVariablesPass(PassRegistry&);
|
|
void initializeLoadStoreVectorizerPass(PassRegistry&);
|
|
void initializeLoaderPassPass(PassRegistry&);
|
|
void initializeLocalStackSlotPassPass(PassRegistry&);
|
|
void initializeLocalizerPass(PassRegistry&);
|
|
void initializeLoopAccessLegacyAnalysisPass(PassRegistry&);
|
|
void initializeLoopDataPrefetchLegacyPassPass(PassRegistry&);
|
|
void initializeLoopDeletionLegacyPassPass(PassRegistry&);
|
|
void initializeLoopDistributeLegacyPass(PassRegistry&);
|
|
void initializeLoopExtractorPass(PassRegistry&);
|
|
void initializeLoopIdiomRecognizeLegacyPassPass(PassRegistry&);
|
|
void initializeLoopInfoWrapperPassPass(PassRegistry&);
|
|
void initializeLoopInstSimplifyLegacyPassPass(PassRegistry&);
|
|
void initializeLoopInterchangePass(PassRegistry&);
|
|
void initializeLoopLoadEliminationPass(PassRegistry&);
|
|
void initializeLoopPassPass(PassRegistry&);
|
|
void initializeLoopPredicationLegacyPassPass(PassRegistry&);
|
|
void initializeLoopRerollPass(PassRegistry&);
|
|
void initializeLoopRotateLegacyPassPass(PassRegistry&);
|
|
void initializeLoopSimplifyCFGLegacyPassPass(PassRegistry&);
|
|
void initializeLoopSimplifyPass(PassRegistry&);
|
|
void initializeLoopStrengthReducePass(PassRegistry&);
|
|
void initializeLoopUnrollPass(PassRegistry&);
|
|
void initializeLoopUnswitchPass(PassRegistry&);
|
|
void initializeLoopVectorizePass(PassRegistry&);
|
|
void initializeLoopVersioningLICMPass(PassRegistry&);
|
|
void initializeLoopVersioningPassPass(PassRegistry&);
|
|
void initializeLowerAtomicLegacyPassPass(PassRegistry&);
|
|
void initializeLowerEmuTLSPass(PassRegistry&);
|
|
void initializeLowerExpectIntrinsicPass(PassRegistry&);
|
|
void initializeLowerGuardIntrinsicLegacyPassPass(PassRegistry&);
|
|
void initializeLowerIntrinsicsPass(PassRegistry&);
|
|
void initializeLowerInvokeLegacyPassPass(PassRegistry&);
|
|
void initializeLowerSwitchPass(PassRegistry&);
|
|
void initializeLowerTypeTestsPass(PassRegistry&);
|
|
void initializeMIRPrintingPassPass(PassRegistry&);
|
|
void initializeMachineBlockFrequencyInfoPass(PassRegistry&);
|
|
void initializeMachineBlockPlacementPass(PassRegistry&);
|
|
void initializeMachineBlockPlacementStatsPass(PassRegistry&);
|
|
void initializeMachineBranchProbabilityInfoPass(PassRegistry&);
|
|
void initializeMachineCSEPass(PassRegistry&);
|
|
void initializeMachineCombinerPass(PassRegistry&);
|
|
void initializeMachineCopyPropagationPass(PassRegistry&);
|
|
void initializeMachineDominanceFrontierPass(PassRegistry&);
|
|
void initializeMachineDominatorTreePass(PassRegistry&);
|
|
void initializeMachineFunctionPrinterPassPass(PassRegistry&);
|
|
void initializeMachineLICMPass(PassRegistry&);
|
|
void initializeMachineLoopInfoPass(PassRegistry&);
|
|
void initializeMachineModuleInfoPass(PassRegistry&);
|
|
void initializeMachineOptimizationRemarkEmitterPassPass(PassRegistry&);
|
|
void initializeMachineOutlinerPass(PassRegistry&);
|
|
void initializeMachinePipelinerPass(PassRegistry&);
|
|
void initializeMachinePostDominatorTreePass(PassRegistry&);
|
|
void initializeMachineRegionInfoPassPass(PassRegistry&);
|
|
void initializeMachineSchedulerPass(PassRegistry&);
|
|
void initializeMachineSinkingPass(PassRegistry&);
|
|
void initializeMachineTraceMetricsPass(PassRegistry&);
|
|
void initializeMachineVerifierPassPass(PassRegistry&);
|
|
void initializeMemCpyOptLegacyPassPass(PassRegistry&);
|
|
void initializeMemDepPrinterPass(PassRegistry&);
|
|
void initializeMemDerefPrinterPass(PassRegistry&);
|
|
void initializeMemoryDependenceWrapperPassPass(PassRegistry&);
|
|
void initializeMemorySSAPrinterLegacyPassPass(PassRegistry&);
|
|
void initializeMemorySSAWrapperPassPass(PassRegistry&);
|
|
void initializeMemorySanitizerPass(PassRegistry&);
|
|
void initializeMergeFunctionsPass(PassRegistry&);
|
|
void initializeMergeICmpsPass(PassRegistry&);
|
|
void initializeMergedLoadStoreMotionLegacyPassPass(PassRegistry&);
|
|
void initializeMetaRenamerPass(PassRegistry&);
|
|
void initializeModuleDebugInfoPrinterPass(PassRegistry&);
|
|
void initializeModuleSummaryIndexWrapperPassPass(PassRegistry&);
|
|
void initializeNameAnonGlobalLegacyPassPass(PassRegistry&);
|
|
void initializeNaryReassociateLegacyPassPass(PassRegistry&);
|
|
void initializeNewGVNLegacyPassPass(PassRegistry&);
|
|
void initializeObjCARCAAWrapperPassPass(PassRegistry&);
|
|
void initializeObjCARCAPElimPass(PassRegistry&);
|
|
void initializeObjCARCContractPass(PassRegistry&);
|
|
void initializeObjCARCExpandPass(PassRegistry&);
|
|
void initializeObjCARCOptPass(PassRegistry&);
|
|
void initializeOptimizationRemarkEmitterWrapperPassPass(PassRegistry&);
|
|
void initializeOptimizePHIsPass(PassRegistry&);
|
|
void initializePAEvalPass(PassRegistry&);
|
|
void initializePEIPass(PassRegistry&);
|
|
void initializePGOIndirectCallPromotionLegacyPassPass(PassRegistry&);
|
|
void initializePGOInstrumentationGenLegacyPassPass(PassRegistry&);
|
|
void initializePGOInstrumentationUseLegacyPassPass(PassRegistry&);
|
|
void initializePGOMemOPSizeOptLegacyPassPass(PassRegistry&);
|
|
void initializePHIEliminationPass(PassRegistry&);
|
|
void initializePartialInlinerLegacyPassPass(PassRegistry&);
|
|
void initializePartiallyInlineLibCallsLegacyPassPass(PassRegistry&);
|
|
void initializePatchableFunctionPass(PassRegistry&);
|
|
void initializePeepholeOptimizerPass(PassRegistry&);
|
|
void initializePhysicalRegisterUsageInfoPass(PassRegistry&);
|
|
void initializePlaceBackedgeSafepointsImplPass(PassRegistry&);
|
|
void initializePlaceSafepointsPass(PassRegistry&);
|
|
void initializePostDomOnlyPrinterPass(PassRegistry&);
|
|
void initializePostDomOnlyViewerPass(PassRegistry&);
|
|
void initializePostDomPrinterPass(PassRegistry&);
|
|
void initializePostDomViewerPass(PassRegistry&);
|
|
void initializePostDominatorTreeWrapperPassPass(PassRegistry&);
|
|
void initializePostMachineSchedulerPass(PassRegistry&);
|
|
void initializePostOrderFunctionAttrsLegacyPassPass(PassRegistry&);
|
|
void initializePostRAHazardRecognizerPass(PassRegistry&);
|
|
void initializePostRASchedulerPass(PassRegistry&);
|
|
void initializePreISelIntrinsicLoweringLegacyPassPass(PassRegistry&);
|
|
void initializePredicateInfoPrinterLegacyPassPass(PassRegistry&);
|
|
void initializePrintBasicBlockPassPass(PassRegistry&);
|
|
void initializePrintFunctionPassWrapperPass(PassRegistry&);
|
|
void initializePrintModulePassWrapperPass(PassRegistry&);
|
|
void initializeProcessImplicitDefsPass(PassRegistry&);
|
|
void initializeProfileSummaryInfoWrapperPassPass(PassRegistry&);
|
|
void initializePromoteLegacyPassPass(PassRegistry&);
|
|
void initializePruneEHPass(PassRegistry&);
|
|
void initializeRABasicPass(PassRegistry&);
|
|
void initializeRegAllocFastPass(PassRegistry&);
|
|
void initializeRAGreedyPass(PassRegistry&);
|
|
void initializeReassociateLegacyPassPass(PassRegistry&);
|
|
void initializeRegBankSelectPass(PassRegistry&);
|
|
void initializeReachingDefAnalysisPass(PassRegistry&);
|
|
void initializeRegToMemPass(PassRegistry&);
|
|
void initializeRegionInfoPassPass(PassRegistry&);
|
|
void initializeRegionOnlyPrinterPass(PassRegistry&);
|
|
void initializeRegionOnlyViewerPass(PassRegistry&);
|
|
void initializeRegionPrinterPass(PassRegistry&);
|
|
void initializeRegionViewerPass(PassRegistry&);
|
|
void initializeRegisterCoalescerPass(PassRegistry&);
|
|
void initializeRenameIndependentSubregsPass(PassRegistry&);
|
|
void initializeResetMachineFunctionPass(PassRegistry&);
|
|
void initializeReversePostOrderFunctionAttrsLegacyPassPass(PassRegistry&);
|
|
void initializeRewriteStatepointsForGCLegacyPassPass(PassRegistry &);
|
|
void initializeRewriteSymbolsLegacyPassPass(PassRegistry&);
|
|
void initializeSafepointIRVerifierPass(PassRegistry&);
|
|
void initializeSCCPLegacyPassPass(PassRegistry&);
|
|
void initializeSCEVAAWrapperPassPass(PassRegistry&);
|
|
void initializeSLPVectorizerPass(PassRegistry&);
|
|
void initializeSROALegacyPassPass(PassRegistry&);
|
|
void initializeSafeStackLegacyPassPass(PassRegistry&);
|
|
void initializeSampleProfileLoaderLegacyPassPass(PassRegistry&);
|
|
void initializeSanitizerCoverageModulePass(PassRegistry&);
|
|
void initializeScalarEvolutionWrapperPassPass(PassRegistry&);
|
|
void initializeScalarizeMaskedMemIntrinPass(PassRegistry&);
|
|
void initializeScalarizerPass(PassRegistry&);
|
|
void initializeScavengerTestPass(PassRegistry&);
|
|
void initializeScopedNoAliasAAWrapperPassPass(PassRegistry&);
|
|
void initializeSeparateConstOffsetFromGEPPass(PassRegistry&);
|
|
void initializeShadowStackGCLoweringPass(PassRegistry&);
|
|
void initializeShrinkWrapPass(PassRegistry&);
|
|
void initializeSimpleInlinerPass(PassRegistry&);
|
|
void initializeSimpleLoopUnswitchLegacyPassPass(PassRegistry&);
|
|
void initializeSingleLoopExtractorPass(PassRegistry&);
|
|
void initializeSinkingLegacyPassPass(PassRegistry&);
|
|
void initializeSjLjEHPreparePass(PassRegistry&);
|
|
void initializeSlotIndexesPass(PassRegistry&);
|
|
void initializeSpeculativeExecutionLegacyPassPass(PassRegistry&);
|
|
void initializeSpillPlacementPass(PassRegistry&);
|
|
void initializeStackColoringPass(PassRegistry&);
|
|
void initializeStackMapLivenessPass(PassRegistry&);
|
|
void initializeStackProtectorPass(PassRegistry&);
|
|
void initializeStackSlotColoringPass(PassRegistry&);
|
|
void initializeStraightLineStrengthReducePass(PassRegistry&);
|
|
void initializeStripDeadDebugInfoPass(PassRegistry&);
|
|
void initializeStripDeadPrototypesLegacyPassPass(PassRegistry&);
|
|
void initializeStripDebugDeclarePass(PassRegistry&);
|
|
void initializeStripGCRelocatesPass(PassRegistry&);
|
|
void initializeStripNonDebugSymbolsPass(PassRegistry&);
|
|
void initializeStripNonLineTableDebugInfoPass(PassRegistry&);
|
|
void initializeStripSymbolsPass(PassRegistry&);
|
|
void initializeStructurizeCFGPass(PassRegistry&);
|
|
void initializeHWAddressSanitizerPass(PassRegistry&);
|
|
void initializeTailCallElimPass(PassRegistry&);
|
|
void initializeTailDuplicatePass(PassRegistry&);
|
|
void initializeTargetLibraryInfoWrapperPassPass(PassRegistry&);
|
|
void initializeTargetPassConfigPass(PassRegistry&);
|
|
void initializeTargetTransformInfoWrapperPassPass(PassRegistry&);
|
|
void initializeThreadSanitizerPass(PassRegistry&);
|
|
void initializeTwoAddressInstructionPassPass(PassRegistry&);
|
|
void initializeTypeBasedAAWrapperPassPass(PassRegistry&);
|
|
void initializeUnifyFunctionExitNodesPass(PassRegistry&);
|
|
void initializeUnpackMachineBundlesPass(PassRegistry&);
|
|
void initializeUnreachableBlockElimLegacyPassPass(PassRegistry&);
|
|
void initializeUnreachableMachineBlockElimPass(PassRegistry&);
|
|
void initializeVerifierLegacyPassPass(PassRegistry&);
|
|
void initializeVirtRegMapPass(PassRegistry&);
|
|
void initializeVirtRegRewriterPass(PassRegistry&);
|
|
void initializeWholeProgramDevirtPass(PassRegistry&);
|
|
void initializeWinEHPreparePass(PassRegistry&);
|
|
void initializeWriteBitcodePassPass(PassRegistry&);
|
|
void initializeWriteThinLTOBitcodePass(PassRegistry&);
|
|
void initializeXRayInstrumentationPass(PassRegistry&);
|
|
void initializeMIRCanonicalizerPass(PassRegistry &);
|
|
|
|
} // end namespace llvm
|
|
|
|
#endif // LLVM_INITIALIZEPASSES_H
|