llvm.org GIT mirror llvm / d69bb1a
Fix 80 column violations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50655 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 11 years ago
1 changed file(s) with 46 addition(s) and 25 deletion(s). Raw diff Collapse all Expand all
934934 CallInst(Value *F, const std::string &Name, BasicBlock *InsertAtEnd);
935935 public:
936936 template
937 static CallInst *Create(Value *Func, InputIterator ArgBegin, InputIterator ArgEnd,
938 const std::string &Name = "", Instruction *InsertBefore = 0) {
939 return new(ArgEnd - ArgBegin + 1) CallInst(Func, ArgBegin, ArgEnd, Name, InsertBefore);
937 static CallInst *Create(Value *Func, InputIterator ArgBegin,
938 InputIterator ArgEnd,
939 const std::string &Name = "",
940 Instruction *InsertBefore = 0) {
941 return new(ArgEnd - ArgBegin + 1)
942 CallInst(Func, ArgBegin, ArgEnd, Name, InsertBefore);
940943 }
941944 template
942 static CallInst *Create(Value *Func, InputIterator ArgBegin, InputIterator ArgEnd,
943 const std::string &Name, BasicBlock *InsertAtEnd) {
944 return new(ArgEnd - ArgBegin + 1) CallInst(Func, ArgBegin, ArgEnd, Name, InsertAtEnd);
945 static CallInst *Create(Value *Func, InputIterator ArgBegin,
946 InputIterator ArgEnd, const std::string &Name,
947 BasicBlock *InsertAtEnd) {
948 return new(ArgEnd - ArgBegin + 1)
949 CallInst(Func, ArgBegin, ArgEnd, Name, InsertAtEnd);
945950 }
946951 static CallInst *Create(Value *F, Value *Actual, const std::string& Name = "",
947952 Instruction *InsertBefore = 0) {
10771082 setName(Name);
10781083 }
10791084 public:
1080 static SelectInst *Create(Value *C, Value *S1, Value *S2, const std::string &Name = "",
1081 Instruction *InsertBefore = 0) {
1085 static SelectInst *Create(Value *C, Value *S1, Value *S2,
1086 const std::string &Name = "",
1087 Instruction *InsertBefore = 0) {
10821088 return new(3) SelectInst(C, S1, S2, Name, InsertBefore);
10831089 }
1084 static SelectInst *Create(Value *C, Value *S1, Value *S2, const std::string &Name,
1085 BasicBlock *InsertAtEnd) {
1090 static SelectInst *Create(Value *C, Value *S1, Value *S2,
1091 const std::string &Name, BasicBlock *InsertAtEnd) {
10861092 return new(3) SelectInst(C, S1, S2, Name, InsertAtEnd);
10871093 }
10881094
12341240 return new(3) InsertElementInst(Vec, NewElt, Idx, Name, InsertBefore);
12351241 }
12361242 static InsertElementInst *Create(Value *Vec, Value *NewElt, unsigned Idx,
1237 const std::string &Name = "",Instruction *InsertBefore = 0) {
1238 return new(3/*FIXME*/) InsertElementInst(Vec, NewElt, Idx, Name, InsertBefore);
1243 const std::string &Name = "",
1244 Instruction *InsertBefore = 0) {
1245 return new(3/*FIXME*/)
1246 InsertElementInst(Vec, NewElt, Idx, Name, InsertBefore);
12391247 }
12401248 static InsertElementInst *Create(Value *Vec, Value *NewElt, Value *Idx,
1241 const std::string &Name, BasicBlock *InsertAtEnd) {
1249 const std::string &Name,
1250 BasicBlock *InsertAtEnd) {
12421251 return new(3) InsertElementInst(Vec, NewElt, Idx, Name, InsertAtEnd);
12431252 }
12441253 static InsertElementInst *Create(Value *Vec, Value *NewElt, unsigned Idx,
1245 const std::string &Name, BasicBlock *InsertAtEnd) {
1246 return new(3/*FIXME*/) InsertElementInst(Vec, NewElt, Idx, Name, InsertAtEnd);
1254 const std::string &Name,
1255 BasicBlock *InsertAtEnd) {
1256 return new(3/*FIXME*/)
1257 InsertElementInst(Vec, NewElt, Idx, Name, InsertAtEnd);
12471258 }
12481259
12491260 /// isValidOperands - Return true if an insertelement instruction can be
13791390 Instruction *InsertBefore = 0) {
13801391 return new PHINode(Ty, Name, InsertBefore);
13811392 }
1382 static PHINode *Create(const Type *Ty, const std::string &Name, BasicBlock *InsertAtEnd) {
1393 static PHINode *Create(const Type *Ty, const std::string &Name,
1394 BasicBlock *InsertAtEnd) {
13831395 return new PHINode(Ty, Name, InsertAtEnd);
13841396 }
13851397 ~PHINode();
15311543 static ReturnInst* Create(Value * const* retVals, unsigned N) {
15321544 return new(N) ReturnInst(retVals, N);
15331545 }
1534 static ReturnInst* Create(Value * const* retVals, unsigned N, Instruction *InsertBefore) {
1546 static ReturnInst* Create(Value * const* retVals, unsigned N,
1547 Instruction *InsertBefore) {
15351548 return new(N) ReturnInst(retVals, N, InsertBefore);
15361549 }
1537 static ReturnInst* Create(Value * const* retVals, unsigned N, BasicBlock *InsertAtEnd) {
1550 static ReturnInst* Create(Value * const* retVals, unsigned N,
1551 BasicBlock *InsertAtEnd) {
15381552 return new(N) ReturnInst(retVals, N, InsertAtEnd);
15391553 }
15401554 static ReturnInst* Create(BasicBlock *InsertAtEnd) {
17091723 public:
17101724 static SwitchInst *Create(Value *Value, BasicBlock *Default, unsigned NumCases,
17111725 Instruction *InsertBefore = 0) {
1712 return new(NumCases/*FIXME*/) SwitchInst(Value, Default, NumCases, InsertBefore);
1726 return new(NumCases/*FIXME*/)
1727 SwitchInst(Value, Default, NumCases, InsertBefore);
17131728 }
17141729 static SwitchInst *Create(Value *Value, BasicBlock *Default, unsigned NumCases,
17151730 BasicBlock *InsertAtEnd) {
1716 return new(NumCases/*FIXME*/) SwitchInst(Value, Default, NumCases, InsertAtEnd);
1731 return new(NumCases/*FIXME*/)
1732 SwitchInst(Value, Default, NumCases, InsertAtEnd);
17171733 }
17181734 ~SwitchInst();
17191735
18791895 }
18801896 public:
18811897 template
1882 static InvokeInst *Create(Value *Func, BasicBlock *IfNormal, BasicBlock *IfException,
1898 static InvokeInst *Create(Value *Func, BasicBlock *IfNormal,
1899 BasicBlock *IfException,
18831900 InputIterator ArgBegin, InputIterator ArgEnd,
1884 const std::string &Name = "", Instruction *InsertBefore = 0) {
1885 return new(ArgEnd - ArgBegin + 3) InvokeInst(Func, IfNormal, IfException, ArgBegin, ArgEnd, Name, InsertBefore);
1901 const std::string &Name = "",
1902 Instruction *InsertBefore = 0) {
1903 return new(ArgEnd - ArgBegin + 3)
1904 InvokeInst(Func, IfNormal, IfException, ArgBegin, ArgEnd, Name, InsertBefore);
18861905 }
18871906 template
1888 static InvokeInst *Create(Value *Func, BasicBlock *IfNormal, BasicBlock *IfException,
1907 static InvokeInst *Create(Value *Func, BasicBlock *IfNormal,
1908 BasicBlock *IfException,
18891909 InputIterator ArgBegin, InputIterator ArgEnd,
18901910 const std::string &Name, BasicBlock *InsertAtEnd) {
1891 return new(ArgEnd - ArgBegin + 3) InvokeInst(Func, IfNormal, IfException, ArgBegin, ArgEnd, Name, InsertAtEnd);
1911 return new(ArgEnd - ArgBegin + 3)
1912 InvokeInst(Func, IfNormal, IfException, ArgBegin, ArgEnd, Name, InsertAtEnd);
18921913 }
18931914
18941915 ~InvokeInst();