projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
On x86 favors folding short immediate into some arithmetic operations (e.g. add,...
[oota-llvm.git]
/
include
/
llvm
/
PassSupport.h
diff --git
a/include/llvm/PassSupport.h
b/include/llvm/PassSupport.h
index 0eae122007f72df9fd91a630d610ee2a4498eb9f..c7ae30024e272af1675f847a46377117ec41f670 100644
(file)
--- a/
include/llvm/PassSupport.h
+++ b/
include/llvm/PassSupport.h
@@
-53,10
+53,10
@@
public:
/// through RegisterPass.
PassInfo(const char *name, const char *arg, intptr_t pi,
NormalCtor_t normal = 0,
/// through RegisterPass.
PassInfo(const char *name, const char *arg, intptr_t pi,
NormalCtor_t normal = 0,
- bool isCFGOnly = false, bool is
A
nalysis = false)
+ bool isCFGOnly = false, bool is
_a
nalysis = false)
: PassName(name), PassArgument(arg), PassID(pi),
IsCFGOnlyPass(isCFGOnly),
: PassName(name), PassArgument(arg), PassID(pi),
IsCFGOnlyPass(isCFGOnly),
- IsAnalysis(is
A
nalysis), IsAnalysisGroup(false), NormalCtor(normal) {
+ IsAnalysis(is
_a
nalysis), IsAnalysisGroup(false), NormalCtor(normal) {
registerPass();
}
/// PassInfo ctor - Do not call this directly, this should only be invoked
registerPass();
}
/// PassInfo ctor - Do not call this directly, this should only be invoked
@@
-137,6
+137,10
@@
public:
protected:
void registerPass();
void unregisterPass();
protected:
void registerPass();
void unregisterPass();
+
+private:
+ void operator=(const PassInfo &); // do not implement
+ PassInfo(const PassInfo &); // do not implement
};
};
@@
-165,10
+169,10
@@
struct RegisterPass : public PassInfo {
// Register Pass using default constructor...
RegisterPass(const char *PassArg, const char *Name, bool CFGOnly = false,
// Register Pass using default constructor...
RegisterPass(const char *PassArg, const char *Name, bool CFGOnly = false,
- bool
IsA
nalysis = false)
+ bool
is_a
nalysis = false)
: PassInfo(Name, PassArg, intptr_t(&passName::ID),
PassInfo::NormalCtor_t(callDefaultCtor<passName>),
: PassInfo(Name, PassArg, intptr_t(&passName::ID),
PassInfo::NormalCtor_t(callDefaultCtor<passName>),
- CFGOnly,
IsA
nalysis) {
+ CFGOnly,
is_a
nalysis) {
}
};
}
};
@@
-181,7
+185,7
@@
struct RegisterPass : public PassInfo {
///
/// If no analysis implementing the interface is available, a default
/// implementation is created and added. A pass registers itself as the default
///
/// If no analysis implementing the interface is available, a default
/// implementation is created and added. A pass registers itself as the default
-/// implementation by specifying 'true' as the
thir
d template argument of this
+/// implementation by specifying 'true' as the
secon
d template argument of this
/// class.
///
/// In addition to registering itself as an analysis group member, a pass must
/// class.
///
/// In addition to registering itself as an analysis group member, a pass must
@@
-240,7
+244,7
@@
struct PassRegistrationListener {
/// Callback functions - These functions are invoked whenever a pass is loaded
/// or removed from the current executable.
///
/// Callback functions - These functions are invoked whenever a pass is loaded
/// or removed from the current executable.
///
- virtual void passRegistered(const PassInfo *
P
) {}
+ virtual void passRegistered(const PassInfo *) {}
/// enumeratePasses - Iterate over the registered passes, calling the
/// passEnumerate callback on each PassInfo object.
/// enumeratePasses - Iterate over the registered passes, calling the
/// passEnumerate callback on each PassInfo object.
@@
-250,7
+254,7
@@
struct PassRegistrationListener {
/// passEnumerate - Callback function invoked when someone calls
/// enumeratePasses on this PassRegistrationListener object.
///
/// passEnumerate - Callback function invoked when someone calls
/// enumeratePasses on this PassRegistrationListener object.
///
- virtual void passEnumerate(const PassInfo *
P
) {}
+ virtual void passEnumerate(const PassInfo *) {}
};
};