mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Clean up some strange whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59373 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
70c44f0cce
commit
ac44d25bdd
@ -299,9 +299,8 @@ public:
|
|||||||
return Insert(new StoreInst(Val, Ptr, isVolatile));
|
return Insert(new StoreInst(Val, Ptr, isVolatile));
|
||||||
}
|
}
|
||||||
template<typename InputIterator>
|
template<typename InputIterator>
|
||||||
Value *CreateGEP(Value *Ptr, InputIterator IdxBegin,
|
Value *CreateGEP(Value *Ptr, InputIterator IdxBegin, InputIterator IdxEnd,
|
||||||
InputIterator IdxEnd, const char *Name = "") {
|
const char *Name = "") {
|
||||||
|
|
||||||
if (Constant *PC = dyn_cast<Constant>(Ptr)) {
|
if (Constant *PC = dyn_cast<Constant>(Ptr)) {
|
||||||
// Every index must be constant.
|
// Every index must be constant.
|
||||||
InputIterator i;
|
InputIterator i;
|
||||||
@ -395,7 +394,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
Value *CreateCast(Instruction::CastOps Op, Value *V, const Type *DestTy,
|
Value *CreateCast(Instruction::CastOps Op, Value *V, const Type *DestTy,
|
||||||
const char *Name = "") {
|
const char *Name = "") {
|
||||||
if (V->getType() == DestTy)
|
if (V->getType() == DestTy)
|
||||||
return V;
|
return V;
|
||||||
if (Constant *VC = dyn_cast<Constant>(V))
|
if (Constant *VC = dyn_cast<Constant>(V))
|
||||||
@ -403,7 +402,7 @@ public:
|
|||||||
return Insert(CastInst::Create(Op, V, DestTy), Name);
|
return Insert(CastInst::Create(Op, V, DestTy), Name);
|
||||||
}
|
}
|
||||||
Value *CreateIntCast(Value *V, const Type *DestTy, bool isSigned,
|
Value *CreateIntCast(Value *V, const Type *DestTy, bool isSigned,
|
||||||
const char *Name = "") {
|
const char *Name = "") {
|
||||||
if (V->getType() == DestTy)
|
if (V->getType() == DestTy)
|
||||||
return V;
|
return V;
|
||||||
if (Constant *VC = dyn_cast<Constant>(V))
|
if (Constant *VC = dyn_cast<Constant>(V))
|
||||||
@ -569,7 +568,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
Value *CreateExtractElement(Value *Vec, Value *Idx,
|
Value *CreateExtractElement(Value *Vec, Value *Idx,
|
||||||
const char *Name = "") {
|
const char *Name = "") {
|
||||||
if (Constant *VC = dyn_cast<Constant>(Vec))
|
if (Constant *VC = dyn_cast<Constant>(Vec))
|
||||||
if (Constant *IC = dyn_cast<Constant>(Idx))
|
if (Constant *IC = dyn_cast<Constant>(Idx))
|
||||||
return Folder.CreateExtractElement(VC, IC);
|
return Folder.CreateExtractElement(VC, IC);
|
||||||
@ -586,7 +585,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
Value *CreateShuffleVector(Value *V1, Value *V2, Value *Mask,
|
Value *CreateShuffleVector(Value *V1, Value *V2, Value *Mask,
|
||||||
const char *Name = "") {
|
const char *Name = "") {
|
||||||
if (Constant *V1C = dyn_cast<Constant>(V1))
|
if (Constant *V1C = dyn_cast<Constant>(V1))
|
||||||
if (Constant *V2C = dyn_cast<Constant>(V2))
|
if (Constant *V2C = dyn_cast<Constant>(V2))
|
||||||
if (Constant *MC = dyn_cast<Constant>(Mask))
|
if (Constant *MC = dyn_cast<Constant>(Mask))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user