File tree Expand file tree Collapse file tree 4 files changed +3
-8
lines changed
include/llvm/Transforms/Utils Expand file tree Collapse file tree 4 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 18
18
19
19
#include " llvm/Analysis/AssumeBundleQueries.h"
20
20
#include " llvm/IR/PassManager.h"
21
+ #include " llvm/Support/CommandLine.h"
21
22
22
23
namespace llvm {
23
24
class AssumeInst ;
@@ -26,6 +27,8 @@ class Instruction;
26
27
class AssumptionCache ;
27
28
class DominatorTree ;
28
29
30
+ extern cl::opt<bool > EnableKnowledgeRetention;
31
+
29
32
// / Build a call to llvm.assume to preserve informations that can be derived
30
33
// / from the given instruction.
31
34
// / If no information derived from \p I, this call returns null.
Original file line number Diff line number Diff line change @@ -302,7 +302,6 @@ PipelineTuningOptions::PipelineTuningOptions() {
302
302
303
303
namespace llvm {
304
304
extern cl::opt<unsigned > MaxDevirtIterations;
305
- extern cl::opt<bool > EnableKnowledgeRetention;
306
305
} // namespace llvm
307
306
308
307
void PassBuilder::invokePeepholeEPCallbacks (FunctionPassManager &FPM,
Original file line number Diff line number Diff line change @@ -89,12 +89,6 @@ static cl::opt<unsigned> GuardWideningWindow(
89
89
cl::desc(" How wide an instruction window to bypass looking for "
90
90
" another guard" ));
91
91
92
- namespace llvm {
93
- // / enable preservation of attributes in assume like:
94
- // / call void @llvm.assume(i1 true) [ "nonnull"(i32* %PTR) ]
95
- extern cl::opt<bool > EnableKnowledgeRetention;
96
- } // namespace llvm
97
-
98
92
// / Return the specified type promoted as it would be to pass though a va_arg
99
93
// / area.
100
94
static Type *getPromotedType (Type *Ty) {
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ using namespace llvm;
22
22
23
23
namespace llvm {
24
24
extern cl::opt<bool > ShouldPreserveAllAttributes;
25
- extern cl::opt<bool > EnableKnowledgeRetention;
26
25
} // namespace llvm
27
26
28
27
static void RunTest (
You can’t perform that action at this time.
0 commit comments