llvm.org GIT mirror llvm / c9e750a
Merging r258319: ------------------------------------------------------------------------ r258319 | thomas.stellard | 2016-01-20 07:48:27 -0800 (Wed, 20 Jan 2016) | 8 lines Correctly initialize SIAnnotateControlFlow Reviewers: arsenm Subscribers: arsenm, llvm-commits Differential Revision: http://reviews.llvm.org/D16304 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_38@271483 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 3 years ago
3 changed file(s) with 11 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
8585 void initializeAMDGPUAnnotateUniformValuesPass(PassRegistry&);
8686 extern char &AMDGPUAnnotateUniformValuesPassID;
8787
88 void initializeSIAnnotateControlFlowPass(PassRegistry&);
89 extern char &SIAnnotateControlFlowPassID;
90
8891 extern Target TheAMDGPUTarget;
8992 extern Target TheGCNTarget;
9093
5151 initializeSILoadStoreOptimizerPass(*PR);
5252 initializeAMDGPUAnnotateKernelFeaturesPass(*PR);
5353 initializeAMDGPUAnnotateUniformValuesPass(*PR);
54 initializeSIAnnotateControlFlowPass(*PR);
5455 }
5556
5657 static std::unique_ptr createTLOF(const Triple &TT) {
4343
4444 class SIAnnotateControlFlow : public FunctionPass {
4545
46 static char ID;
47
4846 Type *Boolean;
4947 Type *Void;
5048 Type *Int64;
8987 void closeControlFlow(BasicBlock *BB);
9088
9189 public:
90 static char ID;
91
9292 SIAnnotateControlFlow():
9393 FunctionPass(ID) { }
9494
110110 };
111111
112112 } // end anonymous namespace
113
114 INITIALIZE_PASS_BEGIN(SIAnnotateControlFlow, DEBUG_TYPE,
115 "Annotate SI Control Flow", false, false)
116 INITIALIZE_PASS_END(SIAnnotateControlFlow, DEBUG_TYPE,
117 "Annotate SI Control Flow", false, false)
113118
114119 char SIAnnotateControlFlow::ID = 0;
115120