llvm.org GIT mirror llvm / c2bbfc1
More explicit keywords. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40673 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 12 years ago
17 changed file(s) with 24 addition(s) and 23 deletion(s). Raw diff Collapse all Expand all
8383
8484 public:
8585 static char ID;
86 LPPassManager(int Depth);
86 explicit LPPassManager(int Depth);
8787
8888 /// run - Execute all of the passes scheduled for execution. Keep track of
8989 /// whether any of the passes modifies the module, and if so, return true.
113113 std::vector Constants; ///< The pool of constants.
114114 public:
115115 /// @brief The only constructor.
116 MachineConstantPool(const TargetData *td) : TD(td), PoolAlignment(1) {}
116 explicit MachineConstantPool(const TargetData *td)
117 : TD(td), PoolAlignment(1) {}
117118 ~MachineConstantPool();
118119
119120 /// getConstantPoolAlignment - Return the log2 of the alignment required by
7575 SchedulingForRegPressure // Scheduling for lowest register pressure.
7676 };
7777
78 TargetLowering(TargetMachine &TM);
78 explicit TargetLowering(TargetMachine &TM);
7979 virtual ~TargetLowering();
8080
8181 TargetMachine &getTargetMachine() const { return TM; }
509509 SDOperand Old;
510510 SDOperand New;
511511
512 TargetLoweringOpt(SelectionDAG &InDAG) : DAG(InDAG) {}
512 explicit TargetLoweringOpt(SelectionDAG &InDAG) : DAG(InDAG) {}
513513
514514 bool CombineTo(SDOperand O, SDOperand N) {
515515 Old = O;
2525 /// perform the inlining operations that does not depend on the policy.
2626 ///
2727 struct Inliner : public CallGraphSCCPass {
28 Inliner(const void *ID);
28 explicit Inliner(const void *ID);
2929
3030 /// getAnalysisUsage - For this class, we declare that we require and preserve
3131 /// the call graph. If the derived class implements this method, it should
3030
3131 public:
3232 static char ID;
33 CGPassManager(int Depth)
33 explicit CGPassManager(int Depth)
3434 : ModulePass((intptr_t)&ID), PMDataManager(Depth) { }
3535
3636 /// run - Execute all of the passes scheduled for execution. Keep track of
3232 std::string Filename;
3333 public:
3434 static char ID; // Class identification, replacement for typeinfo
35 LoaderPass(const std::string &filename = "")
35 explicit LoaderPass(const std::string &filename = "")
3636 : ModulePass((intptr_t)&ID), Filename(filename) {
3737 if (filename.empty()) Filename = ProfileInfoFilename;
3838 }
3030 /// specified function. Otherwise, it deletes as much of the module as
3131 /// possible, except for the function specified.
3232 ///
33 FunctionExtractorPass(Function *F = 0, bool deleteFn = true,
34 bool relinkCallees = false)
33 explicit FunctionExtractorPass(Function *F = 0, bool deleteFn = true,
34 bool relinkCallees = false)
3535 : ModulePass((intptr_t)&ID), Named(F), deleteFunc(deleteFn),
3636 reLink(relinkCallees) {}
3737
4646 bool DontInternalize;
4747 public:
4848 static char ID; // Pass identification, replacement for typeid
49 InternalizePass(bool InternalizeEverything = true);
50 InternalizePass(const std::vector & exportList);
49 explicit InternalizePass(bool InternalizeEverything = true);
50 explicit InternalizePass(const std::vector & exportList);
5151 void LoadFile(const char *Filename);
5252 virtual bool runOnModule(Module &M);
5353 };
3636 static char ID; // Pass identification, replacement for typeid
3737 unsigned NumLoops;
3838
39 LoopExtractor(unsigned numLoops = ~0)
39 explicit LoopExtractor(unsigned numLoops = ~0)
4040 : FunctionPass((intptr_t)&ID), NumLoops(numLoops) {}
4141
4242 virtual bool runOnFunction(Function &F);
150150 std::vector BlocksToNotExtract;
151151 public:
152152 static char ID; // Pass identification, replacement for typeid
153 BlockExtractorPass(std::vector &B)
153 explicit BlockExtractorPass(std::vector &B)
154154 : ModulePass((intptr_t)&ID), BlocksToNotExtract(B) {}
155155 BlockExtractorPass() : ModulePass((intptr_t)&ID) {}
156156
3737 bool OnlyDebugInfo;
3838 public:
3939 static char ID; // Pass identification, replacement for typeid
40 StripSymbols(bool ODI = false)
40 explicit StripSymbols(bool ODI = false)
4141 : ModulePass((intptr_t)&ID), OnlyDebugInfo(ODI) {}
4242
4343 virtual bool runOnModule(Module &M);
3939 const TargetLowering *TLI;
4040 public:
4141 static char ID; // Pass identification, replacement for typeid
42 CodeGenPrepare(const TargetLowering *tli = 0) : FunctionPass((intptr_t)&ID),
43 TLI(tli) {}
42 explicit CodeGenPrepare(const TargetLowering *tli = 0)
43 : FunctionPass((intptr_t)&ID), TLI(tli) {}
4444 bool runOnFunction(Function &F);
4545
4646 private:
144144
145145 public:
146146 static char ID; // Pass ID, replacement for typeid
147 LoopStrengthReduce(const TargetLowering *tli = NULL) :
147 explicit LoopStrengthReduce(const TargetLowering *tli = NULL) :
148148 LoopPass((intptr_t)&ID), TLI(tli) {
149149 }
150150
7272 bool redoLoop;
7373 public:
7474 static char ID; // Pass ID, replacement for typeid
75 LoopUnswitch(bool Os = false) :
75 explicit LoopUnswitch(bool Os = false) :
7676 LoopPass((intptr_t)&ID), OptimizeForSize(Os), redoLoop(false) {}
7777
7878 bool runOnLoop(Loop *L, LPPassManager &LPM);
4747 namespace {
4848 struct VISIBILITY_HIDDEN SROA : public FunctionPass {
4949 static char ID; // Pass identification, replacement for typeid
50 SROA(signed T = -1) : FunctionPass((intptr_t)&ID) {
50 explicit SROA(signed T = -1) : FunctionPass((intptr_t)&ID) {
5151 if (T == -1)
5252 SRThreshold = 128;
5353 else
3636 bool LowerMallocArgToInteger;
3737 public:
3838 static char ID; // Pass ID, replacement for typeid
39 LowerAllocations(bool LowerToInt = false)
39 explicit LowerAllocations(bool LowerToInt = false)
4040 : BasicBlockPass((intptr_t)&ID), MallocFunc(0), FreeFunc(0),
4141 LowerMallocArgToInteger(LowerToInt) {}
4242
7575
7676 public:
7777 static char ID; // Pass identification, replacement for typeid
78 LowerInvoke(const TargetLowering *tli = NULL) : FunctionPass((intptr_t)&ID),
79 TLI(tli) { }
78 explicit LowerInvoke(const TargetLowering *tli = NULL)
79 : FunctionPass((intptr_t)&ID), TLI(tli) { }
8080 bool doInitialization(Module &M);
8181 bool runOnFunction(Function &F);
8282
3333 bool OnlyFP; // Only lower FP select instructions?
3434 public:
3535 static char ID; // Pass identification, replacement for typeid
36 LowerSelect(bool onlyfp = false) : FunctionPass((intptr_t)&ID),
36 explicit LowerSelect(bool onlyfp = false) : FunctionPass((intptr_t)&ID),
3737 OnlyFP(onlyfp) {}
3838
3939 virtual void getAnalysisUsage(AnalysisUsage &AU) const {