mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-20 02:28:23 +00:00
More explicit keywords.
llvm-svn: 40673
This commit is contained in:
parent
8e7234519e
commit
7dd04fb91c
@ -84,7 +84,7 @@ class LPPassManager : public FunctionPass, public PMDataManager {
|
||||
|
||||
public:
|
||||
static char ID;
|
||||
LPPassManager(int Depth);
|
||||
explicit LPPassManager(int Depth);
|
||||
|
||||
/// run - Execute all of the passes scheduled for execution. Keep track of
|
||||
/// whether any of the passes modifies the module, and if so, return true.
|
||||
|
@ -114,7 +114,8 @@ class MachineConstantPool {
|
||||
std::vector<MachineConstantPoolEntry> Constants; ///< The pool of constants.
|
||||
public:
|
||||
/// @brief The only constructor.
|
||||
MachineConstantPool(const TargetData *td) : TD(td), PoolAlignment(1) {}
|
||||
explicit MachineConstantPool(const TargetData *td)
|
||||
: TD(td), PoolAlignment(1) {}
|
||||
~MachineConstantPool();
|
||||
|
||||
/// getConstantPoolAlignment - Return the log2 of the alignment required by
|
||||
|
@ -76,7 +76,7 @@ public:
|
||||
SchedulingForRegPressure // Scheduling for lowest register pressure.
|
||||
};
|
||||
|
||||
TargetLowering(TargetMachine &TM);
|
||||
explicit TargetLowering(TargetMachine &TM);
|
||||
virtual ~TargetLowering();
|
||||
|
||||
TargetMachine &getTargetMachine() const { return TM; }
|
||||
@ -510,7 +510,7 @@ public:
|
||||
SDOperand Old;
|
||||
SDOperand New;
|
||||
|
||||
TargetLoweringOpt(SelectionDAG &InDAG) : DAG(InDAG) {}
|
||||
explicit TargetLoweringOpt(SelectionDAG &InDAG) : DAG(InDAG) {}
|
||||
|
||||
bool CombineTo(SDOperand O, SDOperand N) {
|
||||
Old = O;
|
||||
|
@ -26,7 +26,7 @@ namespace llvm {
|
||||
/// perform the inlining operations that does not depend on the policy.
|
||||
///
|
||||
struct Inliner : public CallGraphSCCPass {
|
||||
Inliner(const void *ID);
|
||||
explicit Inliner(const void *ID);
|
||||
|
||||
/// getAnalysisUsage - For this class, we declare that we require and preserve
|
||||
/// the call graph. If the derived class implements this method, it should
|
||||
|
@ -31,7 +31,7 @@ class CGPassManager : public ModulePass, public PMDataManager {
|
||||
|
||||
public:
|
||||
static char ID;
|
||||
CGPassManager(int Depth)
|
||||
explicit CGPassManager(int Depth)
|
||||
: ModulePass((intptr_t)&ID), PMDataManager(Depth) { }
|
||||
|
||||
/// run - Execute all of the passes scheduled for execution. Keep track of
|
||||
|
@ -33,7 +33,7 @@ namespace {
|
||||
std::string Filename;
|
||||
public:
|
||||
static char ID; // Class identification, replacement for typeinfo
|
||||
LoaderPass(const std::string &filename = "")
|
||||
explicit LoaderPass(const std::string &filename = "")
|
||||
: ModulePass((intptr_t)&ID), Filename(filename) {
|
||||
if (filename.empty()) Filename = ProfileInfoFilename;
|
||||
}
|
||||
|
@ -31,8 +31,8 @@ namespace {
|
||||
/// specified function. Otherwise, it deletes as much of the module as
|
||||
/// possible, except for the function specified.
|
||||
///
|
||||
FunctionExtractorPass(Function *F = 0, bool deleteFn = true,
|
||||
bool relinkCallees = false)
|
||||
explicit FunctionExtractorPass(Function *F = 0, bool deleteFn = true,
|
||||
bool relinkCallees = false)
|
||||
: ModulePass((intptr_t)&ID), Named(F), deleteFunc(deleteFn),
|
||||
reLink(relinkCallees) {}
|
||||
|
||||
|
@ -47,8 +47,8 @@ namespace {
|
||||
bool DontInternalize;
|
||||
public:
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
InternalizePass(bool InternalizeEverything = true);
|
||||
InternalizePass(const std::vector <const char *>& exportList);
|
||||
explicit InternalizePass(bool InternalizeEverything = true);
|
||||
explicit InternalizePass(const std::vector <const char *>& exportList);
|
||||
void LoadFile(const char *Filename);
|
||||
virtual bool runOnModule(Module &M);
|
||||
};
|
||||
|
@ -37,7 +37,7 @@ namespace {
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
unsigned NumLoops;
|
||||
|
||||
LoopExtractor(unsigned numLoops = ~0)
|
||||
explicit LoopExtractor(unsigned numLoops = ~0)
|
||||
: FunctionPass((intptr_t)&ID), NumLoops(numLoops) {}
|
||||
|
||||
virtual bool runOnFunction(Function &F);
|
||||
@ -151,7 +151,7 @@ namespace {
|
||||
std::vector<BasicBlock*> BlocksToNotExtract;
|
||||
public:
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
BlockExtractorPass(std::vector<BasicBlock*> &B)
|
||||
explicit BlockExtractorPass(std::vector<BasicBlock*> &B)
|
||||
: ModulePass((intptr_t)&ID), BlocksToNotExtract(B) {}
|
||||
BlockExtractorPass() : ModulePass((intptr_t)&ID) {}
|
||||
|
||||
|
@ -38,7 +38,7 @@ namespace {
|
||||
bool OnlyDebugInfo;
|
||||
public:
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
StripSymbols(bool ODI = false)
|
||||
explicit StripSymbols(bool ODI = false)
|
||||
: ModulePass((intptr_t)&ID), OnlyDebugInfo(ODI) {}
|
||||
|
||||
virtual bool runOnModule(Module &M);
|
||||
|
@ -40,8 +40,8 @@ namespace {
|
||||
const TargetLowering *TLI;
|
||||
public:
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
CodeGenPrepare(const TargetLowering *tli = 0) : FunctionPass((intptr_t)&ID),
|
||||
TLI(tli) {}
|
||||
explicit CodeGenPrepare(const TargetLowering *tli = 0)
|
||||
: FunctionPass((intptr_t)&ID), TLI(tli) {}
|
||||
bool runOnFunction(Function &F);
|
||||
|
||||
private:
|
||||
|
@ -145,7 +145,7 @@ namespace {
|
||||
|
||||
public:
|
||||
static char ID; // Pass ID, replacement for typeid
|
||||
LoopStrengthReduce(const TargetLowering *tli = NULL) :
|
||||
explicit LoopStrengthReduce(const TargetLowering *tli = NULL) :
|
||||
LoopPass((intptr_t)&ID), TLI(tli) {
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ namespace {
|
||||
bool redoLoop;
|
||||
public:
|
||||
static char ID; // Pass ID, replacement for typeid
|
||||
LoopUnswitch(bool Os = false) :
|
||||
explicit LoopUnswitch(bool Os = false) :
|
||||
LoopPass((intptr_t)&ID), OptimizeForSize(Os), redoLoop(false) {}
|
||||
|
||||
bool runOnLoop(Loop *L, LPPassManager &LPM);
|
||||
|
@ -48,7 +48,7 @@ STATISTIC(NumGlobals, "Number of allocas copied from constant global");
|
||||
namespace {
|
||||
struct VISIBILITY_HIDDEN SROA : public FunctionPass {
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
SROA(signed T = -1) : FunctionPass((intptr_t)&ID) {
|
||||
explicit SROA(signed T = -1) : FunctionPass((intptr_t)&ID) {
|
||||
if (T == -1)
|
||||
SRThreshold = 128;
|
||||
else
|
||||
|
@ -37,7 +37,7 @@ namespace {
|
||||
bool LowerMallocArgToInteger;
|
||||
public:
|
||||
static char ID; // Pass ID, replacement for typeid
|
||||
LowerAllocations(bool LowerToInt = false)
|
||||
explicit LowerAllocations(bool LowerToInt = false)
|
||||
: BasicBlockPass((intptr_t)&ID), MallocFunc(0), FreeFunc(0),
|
||||
LowerMallocArgToInteger(LowerToInt) {}
|
||||
|
||||
|
@ -76,8 +76,8 @@ namespace {
|
||||
|
||||
public:
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
LowerInvoke(const TargetLowering *tli = NULL) : FunctionPass((intptr_t)&ID),
|
||||
TLI(tli) { }
|
||||
explicit LowerInvoke(const TargetLowering *tli = NULL)
|
||||
: FunctionPass((intptr_t)&ID), TLI(tli) { }
|
||||
bool doInitialization(Module &M);
|
||||
bool runOnFunction(Function &F);
|
||||
|
||||
|
@ -34,7 +34,7 @@ namespace {
|
||||
bool OnlyFP; // Only lower FP select instructions?
|
||||
public:
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
LowerSelect(bool onlyfp = false) : FunctionPass((intptr_t)&ID),
|
||||
explicit LowerSelect(bool onlyfp = false) : FunctionPass((intptr_t)&ID),
|
||||
OnlyFP(onlyfp) {}
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
|
Loading…
Reference in New Issue
Block a user