Fix 80 column violations.

llvm-svn: 50655
This commit is contained in:
Evan Cheng 2008-05-05 17:41:03 +00:00
parent 12c48230f9
commit 281654e4fb

View File

@ -935,14 +935,19 @@ class CallInst : public Instruction {
CallInst(Value *F, const std::string &Name, BasicBlock *InsertAtEnd); CallInst(Value *F, const std::string &Name, BasicBlock *InsertAtEnd);
public: public:
template<typename InputIterator> template<typename InputIterator>
static CallInst *Create(Value *Func, InputIterator ArgBegin, InputIterator ArgEnd, static CallInst *Create(Value *Func, InputIterator ArgBegin,
const std::string &Name = "", Instruction *InsertBefore = 0) { InputIterator ArgEnd,
return new(ArgEnd - ArgBegin + 1) CallInst(Func, ArgBegin, ArgEnd, Name, InsertBefore); const std::string &Name = "",
Instruction *InsertBefore = 0) {
return new(ArgEnd - ArgBegin + 1)
CallInst(Func, ArgBegin, ArgEnd, Name, InsertBefore);
} }
template<typename InputIterator> template<typename InputIterator>
static CallInst *Create(Value *Func, InputIterator ArgBegin, InputIterator ArgEnd, static CallInst *Create(Value *Func, InputIterator ArgBegin,
const std::string &Name, BasicBlock *InsertAtEnd) { InputIterator ArgEnd, const std::string &Name,
return new(ArgEnd - ArgBegin + 1) CallInst(Func, ArgBegin, ArgEnd, Name, InsertAtEnd); BasicBlock *InsertAtEnd) {
return new(ArgEnd - ArgBegin + 1)
CallInst(Func, ArgBegin, ArgEnd, Name, InsertAtEnd);
} }
static CallInst *Create(Value *F, Value *Actual, const std::string& Name = "", static CallInst *Create(Value *F, Value *Actual, const std::string& Name = "",
Instruction *InsertBefore = 0) { Instruction *InsertBefore = 0) {
@ -1078,12 +1083,13 @@ class SelectInst : public Instruction {
setName(Name); setName(Name);
} }
public: public:
static SelectInst *Create(Value *C, Value *S1, Value *S2, const std::string &Name = "", static SelectInst *Create(Value *C, Value *S1, Value *S2,
Instruction *InsertBefore = 0) { const std::string &Name = "",
Instruction *InsertBefore = 0) {
return new(3) SelectInst(C, S1, S2, Name, InsertBefore); return new(3) SelectInst(C, S1, S2, Name, InsertBefore);
} }
static SelectInst *Create(Value *C, Value *S1, Value *S2, const std::string &Name, static SelectInst *Create(Value *C, Value *S1, Value *S2,
BasicBlock *InsertAtEnd) { const std::string &Name, BasicBlock *InsertAtEnd) {
return new(3) SelectInst(C, S1, S2, Name, InsertAtEnd); return new(3) SelectInst(C, S1, S2, Name, InsertAtEnd);
} }
@ -1235,16 +1241,21 @@ public:
return new(3) InsertElementInst(Vec, NewElt, Idx, Name, InsertBefore); return new(3) InsertElementInst(Vec, NewElt, Idx, Name, InsertBefore);
} }
static InsertElementInst *Create(Value *Vec, Value *NewElt, unsigned Idx, static InsertElementInst *Create(Value *Vec, Value *NewElt, unsigned Idx,
const std::string &Name = "",Instruction *InsertBefore = 0) { const std::string &Name = "",
return new(3/*FIXME*/) InsertElementInst(Vec, NewElt, Idx, Name, InsertBefore); Instruction *InsertBefore = 0) {
return new(3/*FIXME*/)
InsertElementInst(Vec, NewElt, Idx, Name, InsertBefore);
} }
static InsertElementInst *Create(Value *Vec, Value *NewElt, Value *Idx, static InsertElementInst *Create(Value *Vec, Value *NewElt, Value *Idx,
const std::string &Name, BasicBlock *InsertAtEnd) { const std::string &Name,
BasicBlock *InsertAtEnd) {
return new(3) InsertElementInst(Vec, NewElt, Idx, Name, InsertAtEnd); return new(3) InsertElementInst(Vec, NewElt, Idx, Name, InsertAtEnd);
} }
static InsertElementInst *Create(Value *Vec, Value *NewElt, unsigned Idx, static InsertElementInst *Create(Value *Vec, Value *NewElt, unsigned Idx,
const std::string &Name, BasicBlock *InsertAtEnd) { const std::string &Name,
return new(3/*FIXME*/) InsertElementInst(Vec, NewElt, Idx, Name, InsertAtEnd); BasicBlock *InsertAtEnd) {
return new(3/*FIXME*/)
InsertElementInst(Vec, NewElt, Idx, Name, InsertAtEnd);
} }
/// isValidOperands - Return true if an insertelement instruction can be /// isValidOperands - Return true if an insertelement instruction can be
@ -1380,7 +1391,8 @@ public:
Instruction *InsertBefore = 0) { Instruction *InsertBefore = 0) {
return new PHINode(Ty, Name, InsertBefore); return new PHINode(Ty, Name, InsertBefore);
} }
static PHINode *Create(const Type *Ty, const std::string &Name, BasicBlock *InsertAtEnd) { static PHINode *Create(const Type *Ty, const std::string &Name,
BasicBlock *InsertAtEnd) {
return new PHINode(Ty, Name, InsertAtEnd); return new PHINode(Ty, Name, InsertAtEnd);
} }
~PHINode(); ~PHINode();
@ -1532,10 +1544,12 @@ public:
static ReturnInst* Create(Value * const* retVals, unsigned N) { static ReturnInst* Create(Value * const* retVals, unsigned N) {
return new(N) ReturnInst(retVals, N); return new(N) ReturnInst(retVals, N);
} }
static ReturnInst* Create(Value * const* retVals, unsigned N, Instruction *InsertBefore) { static ReturnInst* Create(Value * const* retVals, unsigned N,
Instruction *InsertBefore) {
return new(N) ReturnInst(retVals, N, InsertBefore); return new(N) ReturnInst(retVals, N, InsertBefore);
} }
static ReturnInst* Create(Value * const* retVals, unsigned N, BasicBlock *InsertAtEnd) { static ReturnInst* Create(Value * const* retVals, unsigned N,
BasicBlock *InsertAtEnd) {
return new(N) ReturnInst(retVals, N, InsertAtEnd); return new(N) ReturnInst(retVals, N, InsertAtEnd);
} }
static ReturnInst* Create(BasicBlock *InsertAtEnd) { static ReturnInst* Create(BasicBlock *InsertAtEnd) {
@ -1710,11 +1724,13 @@ class SwitchInst : public TerminatorInst {
public: public:
static SwitchInst *Create(Value *Value, BasicBlock *Default, unsigned NumCases, static SwitchInst *Create(Value *Value, BasicBlock *Default, unsigned NumCases,
Instruction *InsertBefore = 0) { Instruction *InsertBefore = 0) {
return new(NumCases/*FIXME*/) SwitchInst(Value, Default, NumCases, InsertBefore); return new(NumCases/*FIXME*/)
SwitchInst(Value, Default, NumCases, InsertBefore);
} }
static SwitchInst *Create(Value *Value, BasicBlock *Default, unsigned NumCases, static SwitchInst *Create(Value *Value, BasicBlock *Default, unsigned NumCases,
BasicBlock *InsertAtEnd) { BasicBlock *InsertAtEnd) {
return new(NumCases/*FIXME*/) SwitchInst(Value, Default, NumCases, InsertAtEnd); return new(NumCases/*FIXME*/)
SwitchInst(Value, Default, NumCases, InsertAtEnd);
} }
~SwitchInst(); ~SwitchInst();
@ -1880,16 +1896,21 @@ class InvokeInst : public TerminatorInst {
} }
public: public:
template<typename InputIterator> template<typename InputIterator>
static InvokeInst *Create(Value *Func, BasicBlock *IfNormal, BasicBlock *IfException, static InvokeInst *Create(Value *Func, BasicBlock *IfNormal,
BasicBlock *IfException,
InputIterator ArgBegin, InputIterator ArgEnd, InputIterator ArgBegin, InputIterator ArgEnd,
const std::string &Name = "", Instruction *InsertBefore = 0) { const std::string &Name = "",
return new(ArgEnd - ArgBegin + 3) InvokeInst(Func, IfNormal, IfException, ArgBegin, ArgEnd, Name, InsertBefore); Instruction *InsertBefore = 0) {
return new(ArgEnd - ArgBegin + 3)
InvokeInst(Func, IfNormal, IfException, ArgBegin, ArgEnd, Name, InsertBefore);
} }
template<typename InputIterator> template<typename InputIterator>
static InvokeInst *Create(Value *Func, BasicBlock *IfNormal, BasicBlock *IfException, static InvokeInst *Create(Value *Func, BasicBlock *IfNormal,
BasicBlock *IfException,
InputIterator ArgBegin, InputIterator ArgEnd, InputIterator ArgBegin, InputIterator ArgEnd,
const std::string &Name, BasicBlock *InsertAtEnd) { const std::string &Name, BasicBlock *InsertAtEnd) {
return new(ArgEnd - ArgBegin + 3) InvokeInst(Func, IfNormal, IfException, ArgBegin, ArgEnd, Name, InsertAtEnd); return new(ArgEnd - ArgBegin + 3)
InvokeInst(Func, IfNormal, IfException, ArgBegin, ArgEnd, Name, InsertAtEnd);
} }
~InvokeInst(); ~InvokeInst();