1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Fix some odd whitespace and formatting errors while making

changes in ConstantsContext.h.

llvm-svn: 237620
This commit is contained in:
Eric Christopher 2015-05-18 21:49:02 +00:00
parent 9afdad64ab
commit 9ba82b24b6

View File

@ -100,7 +100,7 @@ public:
return User::operator new(s, 2); return User::operator new(s, 2);
} }
ExtractElementConstantExpr(Constant *C1, Constant *C2) ExtractElementConstantExpr(Constant *C1, Constant *C2)
: ConstantExpr(cast<VectorType>(C1->getType())->getElementType(), : ConstantExpr(cast<VectorType>(C1->getType())->getElementType(),
Instruction::ExtractElement, &Op<0>(), 2) { Instruction::ExtractElement, &Op<0>(), 2) {
Op<0>() = C1; Op<0>() = C1;
Op<1>() = C2; Op<1>() = C2;
@ -121,7 +121,7 @@ public:
return User::operator new(s, 3); return User::operator new(s, 3);
} }
InsertElementConstantExpr(Constant *C1, Constant *C2, Constant *C3) InsertElementConstantExpr(Constant *C1, Constant *C2, Constant *C3)
: ConstantExpr(C1->getType(), Instruction::InsertElement, : ConstantExpr(C1->getType(), Instruction::InsertElement,
&Op<0>(), 3) { &Op<0>(), 3) {
Op<0>() = C1; Op<0>() = C1;
Op<1>() = C2; Op<1>() = C2;
@ -146,7 +146,7 @@ public:
: ConstantExpr(VectorType::get( : ConstantExpr(VectorType::get(
cast<VectorType>(C1->getType())->getElementType(), cast<VectorType>(C1->getType())->getElementType(),
cast<VectorType>(C3->getType())->getNumElements()), cast<VectorType>(C3->getType())->getNumElements()),
Instruction::ShuffleVector, Instruction::ShuffleVector,
&Op<0>(), 3) { &Op<0>(), 3) {
Op<0>() = C1; Op<0>() = C1;
Op<1>() = C2; Op<1>() = C2;
@ -207,7 +207,6 @@ public:
DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value); DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
}; };
/// GetElementPtrConstantExpr - This class is private to Constants.cpp, and is /// GetElementPtrConstantExpr - This class is private to Constants.cpp, and is
/// used behind the scenes to implement getelementpr constant exprs. /// used behind the scenes to implement getelementpr constant exprs.
class GetElementPtrConstantExpr : public ConstantExpr { class GetElementPtrConstantExpr : public ConstantExpr {
@ -261,65 +260,54 @@ public:
}; };
template <> template <>
struct OperandTraits<UnaryConstantExpr> : struct OperandTraits<UnaryConstantExpr>
public FixedNumOperandTraits<UnaryConstantExpr, 1> { : public FixedNumOperandTraits<UnaryConstantExpr, 1> {};
};
DEFINE_TRANSPARENT_OPERAND_ACCESSORS(UnaryConstantExpr, Value) DEFINE_TRANSPARENT_OPERAND_ACCESSORS(UnaryConstantExpr, Value)
template <> template <>
struct OperandTraits<BinaryConstantExpr> : struct OperandTraits<BinaryConstantExpr>
public FixedNumOperandTraits<BinaryConstantExpr, 2> { : public FixedNumOperandTraits<BinaryConstantExpr, 2> {};
};
DEFINE_TRANSPARENT_OPERAND_ACCESSORS(BinaryConstantExpr, Value) DEFINE_TRANSPARENT_OPERAND_ACCESSORS(BinaryConstantExpr, Value)
template <> template <>
struct OperandTraits<SelectConstantExpr> : struct OperandTraits<SelectConstantExpr>
public FixedNumOperandTraits<SelectConstantExpr, 3> { : public FixedNumOperandTraits<SelectConstantExpr, 3> {};
};
DEFINE_TRANSPARENT_OPERAND_ACCESSORS(SelectConstantExpr, Value) DEFINE_TRANSPARENT_OPERAND_ACCESSORS(SelectConstantExpr, Value)
template <> template <>
struct OperandTraits<ExtractElementConstantExpr> : struct OperandTraits<ExtractElementConstantExpr>
public FixedNumOperandTraits<ExtractElementConstantExpr, 2> { : public FixedNumOperandTraits<ExtractElementConstantExpr, 2> {};
};
DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ExtractElementConstantExpr, Value) DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ExtractElementConstantExpr, Value)
template <> template <>
struct OperandTraits<InsertElementConstantExpr> : struct OperandTraits<InsertElementConstantExpr>
public FixedNumOperandTraits<InsertElementConstantExpr, 3> { : public FixedNumOperandTraits<InsertElementConstantExpr, 3> {};
};
DEFINE_TRANSPARENT_OPERAND_ACCESSORS(InsertElementConstantExpr, Value) DEFINE_TRANSPARENT_OPERAND_ACCESSORS(InsertElementConstantExpr, Value)
template <> template <>
struct OperandTraits<ShuffleVectorConstantExpr> : struct OperandTraits<ShuffleVectorConstantExpr>
public FixedNumOperandTraits<ShuffleVectorConstantExpr, 3> { : public FixedNumOperandTraits<ShuffleVectorConstantExpr, 3> {};
};
DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ShuffleVectorConstantExpr, Value) DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ShuffleVectorConstantExpr, Value)
template <> template <>
struct OperandTraits<ExtractValueConstantExpr> : struct OperandTraits<ExtractValueConstantExpr>
public FixedNumOperandTraits<ExtractValueConstantExpr, 1> { : public FixedNumOperandTraits<ExtractValueConstantExpr, 1> {};
};
DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ExtractValueConstantExpr, Value) DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ExtractValueConstantExpr, Value)
template <> template <>
struct OperandTraits<InsertValueConstantExpr> : struct OperandTraits<InsertValueConstantExpr>
public FixedNumOperandTraits<InsertValueConstantExpr, 2> { : public FixedNumOperandTraits<InsertValueConstantExpr, 2> {};
};
DEFINE_TRANSPARENT_OPERAND_ACCESSORS(InsertValueConstantExpr, Value) DEFINE_TRANSPARENT_OPERAND_ACCESSORS(InsertValueConstantExpr, Value)
template <> template <>
struct OperandTraits<GetElementPtrConstantExpr> : struct OperandTraits<GetElementPtrConstantExpr>
public VariadicOperandTraits<GetElementPtrConstantExpr, 1> { : public VariadicOperandTraits<GetElementPtrConstantExpr, 1> {};
};
DEFINE_TRANSPARENT_OPERAND_ACCESSORS(GetElementPtrConstantExpr, Value) DEFINE_TRANSPARENT_OPERAND_ACCESSORS(GetElementPtrConstantExpr, Value)
template <> template <>
struct OperandTraits<CompareConstantExpr> : struct OperandTraits<CompareConstantExpr>
public FixedNumOperandTraits<CompareConstantExpr, 2> { : public FixedNumOperandTraits<CompareConstantExpr, 2> {};
};
DEFINE_TRANSPARENT_OPERAND_ACCESSORS(CompareConstantExpr, Value) DEFINE_TRANSPARENT_OPERAND_ACCESSORS(CompareConstantExpr, Value)
template <class ConstantClass> struct ConstantAggrKeyType; template <class ConstantClass> struct ConstantAggrKeyType;