comparison lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp @ 120:1172e4bd9c6f

update 4.0.0
author mir3636
date Fri, 25 Nov 2016 19:14:25 +0900
parents 7d135dc70f03
children 803732b1fca8
comparison
equal deleted inserted replaced
101:34baf5011add 120:1172e4bd9c6f
12 // the size is large or is not a compile-time constant. 12 // the size is large or is not a compile-time constant.
13 // 13 //
14 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===//
15 15
16 #include "NVPTXLowerAggrCopies.h" 16 #include "NVPTXLowerAggrCopies.h"
17 #include "llvm/CodeGen/MachineFunctionAnalysis.h"
18 #include "llvm/CodeGen/StackProtector.h" 17 #include "llvm/CodeGen/StackProtector.h"
19 #include "llvm/IR/Constants.h" 18 #include "llvm/IR/Constants.h"
20 #include "llvm/IR/DataLayout.h" 19 #include "llvm/IR/DataLayout.h"
21 #include "llvm/IR/Function.h" 20 #include "llvm/IR/Function.h"
22 #include "llvm/IR/IRBuilder.h" 21 #include "llvm/IR/IRBuilder.h"
39 static char ID; 38 static char ID;
40 39
41 NVPTXLowerAggrCopies() : FunctionPass(ID) {} 40 NVPTXLowerAggrCopies() : FunctionPass(ID) {}
42 41
43 void getAnalysisUsage(AnalysisUsage &AU) const override { 42 void getAnalysisUsage(AnalysisUsage &AU) const override {
44 AU.addPreserved<MachineFunctionAnalysis>();
45 AU.addPreserved<StackProtector>(); 43 AU.addPreserved<StackProtector>();
46 } 44 }
47 45
48 bool runOnFunction(Function &F) override; 46 bool runOnFunction(Function &F) override;
49 47
50 static const unsigned MaxAggrCopySize = 128; 48 static const unsigned MaxAggrCopySize = 128;
51 49
52 const char *getPassName() const override { 50 StringRef getPassName() const override {
53 return "Lower aggregate copies/intrinsics into loops"; 51 return "Lower aggregate copies/intrinsics into loops";
54 } 52 }
55 }; 53 };
56 54
57 char NVPTXLowerAggrCopies::ID = 0; 55 char NVPTXLowerAggrCopies::ID = 0;