LLVM  14.0.0git
ObjCARC.h
Go to the documentation of this file.
1 //===-- ObjCARC.h - ObjCARC Scalar Transformations --------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This header file defines prototypes for accessor functions that expose passes
10 // in the ObjCARC Scalar Transformations library.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_TRANSFORMS_OBJCARC_H
15 #define LLVM_TRANSFORMS_OBJCARC_H
16 
17 #include "llvm/IR/PassManager.h"
18 
19 namespace llvm {
20 
21 class Pass;
22 
23 //===----------------------------------------------------------------------===//
24 //
25 // ObjCARCAPElim - ObjC ARC autorelease pool elimination.
26 //
28 
29 //===----------------------------------------------------------------------===//
30 //
31 // ObjCARCExpand - ObjC ARC preliminary simplifications.
32 //
34 
35 //===----------------------------------------------------------------------===//
36 //
37 // ObjCARCContract - Late ObjC ARC cleanups.
38 //
40 
41 //===----------------------------------------------------------------------===//
42 //
43 // ObjCARCOpt - ObjC ARC optimization.
44 //
46 
47 struct ObjCARCOptPass : public PassInfoMixin<ObjCARCOptPass> {
49 };
50 
51 struct ObjCARCContractPass : public PassInfoMixin<ObjCARCContractPass> {
53 };
54 
55 struct ObjCARCAPElimPass : public PassInfoMixin<ObjCARCAPElimPass> {
57 };
58 
59 struct ObjCARCExpandPass : public PassInfoMixin<ObjCARCExpandPass> {
61 };
62 
63 } // End llvm namespace
64 
65 #endif
llvm::PreservedAnalyses
A set of analyses that are preserved following a run of a transformation pass.
Definition: PassManager.h:155
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
M
We currently emits eax Perhaps this is what we really should generate is Is imull three or four cycles eax eax The current instruction priority is based on pattern complexity The former is more complex because it folds a load so the latter will not be emitted Perhaps we should use AddedComplexity to give LEA32r a higher priority We should always try to match LEA first since the LEA matching code does some estimate to determine whether the match is profitable if we care more about code then imull is better It s two bytes shorter than movl leal On a Pentium M
Definition: README.txt:252
Pass
print lazy value Lazy Value Info Printer Pass
Definition: LazyValueInfo.cpp:1966
llvm::PassInfoMixin
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:374
llvm::Function
Definition: Function.h:61
llvm::ObjCARCExpandPass
Definition: ObjCARC.h:59
llvm::ObjCARCAPElimPass::run
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
Definition: ObjCARCAPElim.cpp:176
F
#define F(x, y, z)
Definition: MD5.cpp:56
llvm::createObjCARCExpandPass
Pass * createObjCARCExpandPass()
llvm::ObjCARCOptPass::run
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
Definition: ObjCARCOpts.cpp:2533
llvm::ObjCARCOptPass
Definition: ObjCARC.h:47
llvm::Module
A Module instance is used to store all the information related to an LLVM module.
Definition: Module.h:67
llvm::ObjCARCExpandPass::run
PreservedAnalyses run(Function &M, FunctionAnalysisManager &AM)
Definition: ObjCARCExpand.cpp:119
llvm::ObjCARCContractPass::run
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
Definition: ObjCARCContract.cpp:745
llvm::ObjCARCContractPass
Definition: ObjCARC.h:51
PassManager.h
llvm::ObjCARCAPElimPass
Definition: ObjCARC.h:55
llvm::createObjCARCOptPass
Pass * createObjCARCOptPass()
Definition: ObjCARCOpts.cpp:613
llvm::createObjCARCAPElimPass
Pass * createObjCARCAPElimPass()
llvm::AnalysisManager
A container for analyses that lazily runs them and caches their results.
Definition: InstructionSimplify.h:44
llvm::createObjCARCContractPass
Pass * createObjCARCContractPass()
Definition: ObjCARCContract.cpp:731